|
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
192.168.0.5 "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 1.1.1.1
-n 1 -w 5000 >NUL
START "CV"
"C:\Program Files\CommView\CV.exe" /ra 192.168.0.1 "pwd1" 2
PING 1.1.1.1
-n 1 -w 1000 >NUL
START "CV"
"C:\Program Files\CommView\CV.exe" /ra 192.168.0.2 "pwd2" 1
PING 1.1.1.1
-n 1 -w 1000 >NUL
START "CV"
"C:\Program Files\CommView\CV.exe" /ra 192.168.0.3 "pwd3" 1
PING 1.1.1.1
-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.
|