Using the simulator
Command Line Interface
Go to the ireasoning/simulator/bin directory.
runSimulator.bat/runSimulator.sh
Usage: runSimulator projectFile
This script runs a project file, the same type of file used by the GUI. A project file defines simulator properties, including data files and initial states. A simulator whose initial state is “up” starts when the script runs.
runSnmpTrapRecorder.bat/runSnmpTrapRecorder.sh
Usage: runSnmpTrapRecorder [options...]
Available options:
-? print this Usage
-h print this Usage
-f output file name
-p <p> port number, 162 by default.
-m <m> mib files to load. Use ',' or ';' to separate multiple files
Example:
runSnmpTrapRecorder -f output.xml
runSnmpTrapRecorder -f output.xml -p 1620
This script records SNMP traps and saves them to an XML file. Press Ctrl+C to stop recording.
runSnmpWalkRecorder.bat/runSnmpWalkRecorder.sh
Usage: runSnmpWalkRecorderCmd [options...] <hostname> [<startingOID> <endingOID>]
<startingOID> starting object identifiers, .1.3 by default. Or MIB node name if MIB loaded
<endingOID> ending object identifiers, .1.3 by default. Or MIB node name if MIB loaded
Available options:
-? print this Usage
-h print this Usage
-f output file name
-i interval of walks, in seconds
-t times of walks
-c <c> community name
-v <1|2|3> specifies SNMP version to use, default is 1
-p <p> port number, 161 by default.
-m <m> mib files to load. Use ',' or ';' to separate multiple files
SnmpV3 options:
-u <u> user name
-a <a> authentication algorithm, one of md5 or sha. md5 by default.
-A <A> authentication password
-x <x> privacy algorithm, either "DES" or "AES". DES by default.
-X <X> privacy password
Example:
runSnmpWalkRecorderCmd -f output.xml localhost .1.3
runSnmpWalkRecorderCmd localhost -f output.xml -v 3 -u newUser -A abc12345 -X abc12345 .1.3
runSnmpWalkRecorderCmd -f output.xml localhost .1.3.6.1.2.1 .1.3.6.1.5.1
runSnmpWalkRecorderCmd -i 30 -t 2 -f output.xml localhost .1.3.6.1.2.1 .1.3.6.1.5.1
This script records SNMP walk data and saves it to an XML file. Press Ctrl+C to stop recording.
netsnmp.bat
Converts Net-SNMP walk output to a data file.