Can I automatically test several agents (v1/v2c/v3) by doing some simple setting on the GUI?
Can I automatically test several agents (v1/v2c/v3) in command line interface (CLI) by writing a simple script?
Q Can I automatically test several agents (v1/v2c/v3) by doing some simple setting on the GUI?
A Yes. You can easily do that using Test->Automation Wizard.
The automation wizard may be used to create remote interface scripts that allow for hands off testing and easy re-creation of the test environment. Using this tool you don't need to write any scripts manually. Though it is recommended that you use CLI scripts to automate running tests for better performance and flexibility, sometimes it is handy to use the Automation Wizard for small agents.
To create a new automation script, select New, and a wizard will walk you through the necessary steps. If you have already created automation scripts with the wizard, select Load to browse and load the scripts into the tool. To run, simply highlight the scripts you are interested in running and select run.
Note when the generated script is run (using Tcl source command) from a Tcl shell, you may need to edit it and change the "absolute" path reference to "appropriate" SilverCreek installation.
Q Can I automatically test several agents (v1/v2c/v3) in command line interface (CLI) by writing a simple script?
A Yes. You can use SilverCreek's simple yet powerful command line interface API. to control testing.
The automation is extremely useful if you want to run multiple test suites against multiple SNMP devices with each device has its own set of MIB files.
For example, you can write an automation script to run in command line interface to do the following:
Connect to DUT A, run testsuite 1.0
Connect to DUT B, run testsuite 2.0
Connect to DUT C, run testsuite 1.0, 2.0
The good thing is that the automation script is very easy to write. For instance the following are two scripts that load two different set of MIBs and run tests against different agents. Both scripts can be run simultaneously or sequentially.
See sample scripts and other details at
Help -> Help Topics -> Automation and Integration
-> Running Tests in Batch Mode through the CLI
Here's a sample script that runs tests for SNMP v1, v2c, and v3:
# Load API
# Create a v1 agent context and run some tests
snmptcl::context new -address 192.168.123.1 -rcomm public \
-wcomm "private" -version SNMPv1
# Create a v2c agent context and run some tests
snmptcl::context new -address 192.168.123.2 -rcomm public \
-wcomm "private" -version SNMPv2c
# Create a v3 agent context and run some tests
snmptcl::context new -address 192.168.123.3 -version SNMPv3 \
-user "MD5_DES_User" \
-authprot "HMAC-MD5" -authkey "authpassword"\
-privprot "CBC-DES" -privkey "privpassword"
Want to Know More?