LAN Analyzer and Protocol Decoder - CommView

Prev Page Next Page
About CommView
What's New
Using the Program
Selecting Network Interface for Monitoring
Latest IP Connections
Viewing Logs
Advanced Rules
Reconstructing TCP Sessions
Reconstructing UDP Streams
Searching Packets
Statistics and Reports
Using Aliases
Packet Generator
Visual Packet Builder
NIC Vendor Identifier
Using Remote Agent
Capturing Loopback Traffic
Port Reference
Setting Options
Frequently Asked Questions
VoIP Analysis
Working with VoIP Analyzer
SIP and H.323 Sessions
RTP Streams
Call Logging
Call Playback
Viewing VoIP Logs
Working with Lists in VoIP Analyzer
NVF Files
Advanced Topics
Capturing High Volume Traffic
Working with Multiple Instances
Running CommView in Invisible Mode
Command Line Parameters
Exchanging Data with Your Application
Custom Decoding
CommView Log Files Format
Sales and Support

Command Line Parameters

You can use command line parameters to perform the following operations when the program is being launched:

· Load and activate a rule set from a file. Use the "/ruleset" switch followed by the file name and full path, e.g.:

CV.EXE /ruleset "C:\Program Files\CommView\Rules\POP3Rules.rls"

If a file name or its path contains spaces, it must be enclosed in quotation marks (" ").

· Open an adapter and start capturing. Use the "/adapter" switch followed by the adapter name, e.g.:

CV.EXE /adapter "Intel(R) PRO/1000 T Desktop Adapter"

The adapter name must be enclosed in quotation marks (" "). Since adapter names are typically long, you might want to copy the adapter name from the program's adapter selection box rather than type it. To copy the adapter name, select the adapter in the adapter selection box and press Ctrl-C.

· Use the specified folder for storing log files. Use the /logdir switch followed by the full path to the folder, e.g.

CV.EXE /logdir "C:\Program Files\CommView\Logs"

· Connect to one or several remote agents. Use the "/ra" switch followed by the IP address or hostname of the Remote Agent you'd like to connect to, followed by the password in quotation marks, followed by the adapter number that should be monitored (the adapter index is 1-based, i.e. if you need to monitor the first adapter, use "1"), e.g:

CV.exe /ra "MyPassword" 1

To connect to multiple Remote Agents from the same CommView instance, first make sure that multiple CommView instances are not allowed in the application options, and then use a batch file that should look like this:

START "CV" "C:\Program Files\CommView\CV.exe"

PING -n 1 -w 5000 >NUL

START "CV" "C:\Program Files\CommView\CV.exe" /ra "pwd1" 2

PING -n 1 -w 1000 >NUL

START "CV" "C:\Program Files\CommView\CV.exe" /ra "pwd2" 1

PING -n 1 -w 1000 >NUL

START "CV" "C:\Program Files\CommView\CV.exe" /ra "pwd3" 1

PING -n 1 -w 1000 >NUL

This script launches CommView, waits for 5 seconds to make sure that the application is loaded (we use the PING command to pause because there is no direct way of telling a .BAT file to pause), then we pass to the application the IP addresses, passwords, and adapter numbers of three Remote Agents (with  one-second pauses).

You can use all of these parameters, except the last one, at the same time.