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 kind of things using Test->Automation Wizard.
The automation wizard may be used to create remote interface scripts that allow for hands off testing and easy recreation 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 auto mate running tests for better performance and flexibility, sometimes it is handy to use Automation Wizard for small agents.
To create a new automation script select new and a wizard will walk you through the steps necessary. 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 "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 DUTC, 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
A quick example:
For example, if you want to create one script that runs tests for v1, v2, and v3,
you need to create a script like following:
# 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?