|
The SNMP Trap Stormer is a simple, intuitive, easy-to-use tool, exclusively designed to configure and send SNMP v1/v2c traps. Using this tool you can configure to send any number of traps at the specified time-interval or at the burst mode, without specifying the time-interval.
This tool is capable of sending a maximum of 1800 v1/v2 traps per second in the burst mode with 4 varbinds and 400 traps per second with 2 varbinds in the normal mode, in Linux OS with 2.4 GHz.
You can use this tool to test the reliability of your management application for receiving any number of traps at the specified time interval or at the burst mode.
To start the Trap Stormer
Go to <Simulator_Home>/bin directory.
Invoke the SnmpTrapStormer.bat for Windows OS and SnmpTrapStormer.sh for Linux/Solaris OS.
Configuring Traps in SNMP Trap Stormer
Select the Table -> Add option on the menu bar. The Trap Configuration dialog is displayed.
Specify the following Manager Details :
Manager Name : Specify the manager name. If the Manager is running on the same machine it will contain the value localhost. If the Manager is running on a different machine specify the manager name or IP address of that machine.
Manager Port : The default manage port is 162. If the manager is running on a different port, specify the port number.
Community : Specify the community name of the manager.
Specify the following Trap Details.
Trap Version : Select the Trap Version from the list displayed. If the trap version is v1, the trap type must be specified as either Generic type or Specific type. The default trap version is SNMPv1.
Generic Type : If the trap type value is zero through five, then the trap is one of the generic SNMP traps defined by the snmp group of MIB-II and the Specific trap type will be zero. If the trap type value is six, then the trap is an enterprise-specific trap that is defined in a private MIB.
coldStart (0),
warmStart (1),
linkDown (2),
linkUp (3),
authenticationFailure (4),
egpNeighborLoss (5),
enterpriseSpecific (6).
Specific Type : Specify an integer value for the enterprise-specific trap that is defined in a private MIB.
Enterprise OID : The OID specified in the Enterprises field indicates exactly which management enterprise defines the trap.
Configure Varbinds for the trap : This option will be enabled only if MIBs are loaded in the trap stormer. To load MIBs, select File -> Load MIB option. The loaded mibs will be displayed in the UI for reference. Variable Bindings or Varbinds are additional information that is sent to the manager along with the trap. It can be value of the selected MIB nodes. This value is sent to the manager along with the trap or Inform. To configure variable bindings,
Click Configure button. The Configure Varbinds dialog pops up with the MIB tree displayed on the right-side.
Select a varbind (only leaf nodes) in the MIB tree and click Add. The Configure varbinds dialog pops up displaying the OID and instance of the selected varbind .
Select the varbind value as either agent value or custom value. If custom value is selected, the value must be specified in the appropriate format based on the datatype of the selected node.
Click OK to add the varbind(s).
Select the option Send All in One Burst, to send the configured traps, the specified number of times, at one burst. If this option is selected the Time interval option will be disabled.
Specify the Number of Times you want to send the configured trap. For example, 100.
Specify the Time Interval between the traps that are to be sent. The time interval option is available in Milliseconds. For example, 1000 Milliseconds.
To send traps with the configured agent ip address, select the Device Type. Refer to Configuring Agent IP address.
|
|
Note: Time Interval cannot be specified if the option Send All in One Burst is selected. |
Click OK to add the configuration to the Trap Stormer Table.
To modify the trap configuration, select the trap entry and select the option Table -> Modify, to modify the entry. Alternatively, you can also double-click on the trap to modify the same.
To delete an existing trap configuration, select the trap entry and select the option Table -> Delete.
By default, traps will be sent with the IP Address or host name of the system from which the traps are generated.
The Trap Stormer provides option to configure "Device Types" and multiple "Agent IP addresses" for each device type. When traps are configured, each trap can be assigned to a specific device type. Traps will be sent with all the ip address configured for the device type.
Select Table -> Agent Details option.
Select Add Device, specify a new device type and click OK
Specify the starting IP address and the number of IPs to be created for the device type. Click Add. The specified number of IPs will be created by incrementing the starting ip address.
To send the configured traps,
Select the trap entry/entries to be sent, from the SNMP Trap Stormer dialog.
Click Send button or choose Run -> Send option from the menu bar. This will start sending the configured traps for the specified number of times at the specified time interval. To send multiple traps, select multiple traps entries from the table and select Send.
To stop sending traps, click Run -> Stop option from the menu bar.
To stop sending all the traps, select Run -> Stop All option from the menu bar.
The traps can be viewed from the Manager application at the specified host name and Trap port number. For example, to view traps from the Mib Browser application bundled with Simulation Toolkit, the Trap Viewer must be started before sending the traps.
To start the Trap Viewer
Select View -> Trap Viewer option from the menu bar or select the Trap viewer icon on the toolbar. This will invoke the trap viewer.
Specify the Port number and Community. Add the Port number to the TrapList by selecting the Add button.
Select the Start button. Now, the Trap viewer is started and listening for traps at the specified port.
Saving and Loading the Configuration
The configured traps can be saved in XML files and later loaded in the trap stormer tool.
To save the traps,
Select File -> Save option.
Specify the required file name and click OK.
The configuration will be saved in the specified file in XML format in <SimulatorHome>/trapstormer directory.
To load the file in the Trap Stormer,
Select File -> Load option.
Browse and select the required file from <SimulatorHome>/trapstormer directory.
Command Line SNMP Trap Stormer
The command line SNMP Trap Stormer is a non GUI tool that can be used to configure and send SNMP v1/v2 traps from command line. To start the command line Trap Stormer, execute the shell/bat file StormTraps.sh /StormTraps.bat present under the <Simulator_Home>/bin/cmdline directory with the following options.
Options :
| Options | Explanation |
|---|---|
|
-b |
To send traps at burst Mode <true / false> |
|
-v |
Version of the Trap < v1 or v2 >. |
|
-n |
Number of traps that has to be sent. |
|
-mn |
The list of manager names to whom the traps must be sent in the following format - mgr1,mgr2,mgr3. ( Even if the managers are same they must be specified separately for each port. For example, -mn a, a, a -mp p1, p2, p3) |
|
-mp |
The port number of the managers specified in the -mn option. It should be in the following format - p1, p2, p3 (Even if the managers have the same port number, they must be specified for each manager separately) |
|
-mc |
The Community of the manager. |
|
-var |
Varbinds Property File name with absolute path. The property file must be in the following format:
<varbind name> : < oid >, < instance >, < data type >, <varbind value>
The data type must be the specified by the following values given below : STRING - 4 OBJID - 6 INTEGER - 2 NULLOBJ - 5 IPADDRESS - 64 NETWORKADDRESS - 64 COUNTER - 65 GAUGE - 66 UNSIGNED32 - 66 TIMETICKS - 67 OPAQUE - 68 COUNTER64 - 70 UINTEGER32 - 66 |
|
-f |
The from IP Address of the Trap. |
Option to be specified for SNMPv1 Traps :
| Options | Explanation |
|---|---|
|
-g |
Generic Type of the trap ( 0 ... 6 ) |
|
-s |
Specific Type of the trap( if generic type is 6 ) |
|
-e |
Enterprise OID ( if generic type is 6 ) |
Option to be specified for SNMPv2 Traps :
| Options | Explanation |
|---|---|
|
-t |
SNMP Trap OID |
Option to be specified if traps are to be sent at non-burst mode without -b option :
| Options | Explanation |
|---|---|
|
-i |
Time Interval between Traps. The time interval option must be specified in Milliseconds. For example, 1000 Milliseconds. |
|