SNMP Trap Stormer

 



 

Overview

 

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.

 

Starting Trap Stormer

 

To start the Trap Stormer

Configuring Traps in SNMP Trap Stormer

  1. Select the Table -> Add option on the menu bar. The Trap Configuration dialog is displayed.

  2. Specify the following Manager Details :

  3. Specify the following Trap Details.

  4. 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,

  5. 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.

  6. Specify the Number of Times you want to send the configured trap. For example, 100.

  7. Specify the Time Interval between the traps that are to be sent. The time interval option is available in  Milliseconds. For example, 1000 Milliseconds.  

  8. 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.

  1. Click OK to add the configuration to the Trap Stormer Table.

  2. 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.

  3. To delete an existing trap configuration, select the trap entry and select the option Table -> Delete.

Configuring Agent IP Address

 

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.

Sending and Viewing Traps

 

To send the configured traps,

  1. Select the trap entry/entries to be sent, from the SNMP Trap Stormer dialog.

  2. 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.

  3. To stop sending traps, click Run -> Stop option from the menu bar.

  4. 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

  1. Select View -> Trap Viewer option from the menu bar or select the Trap viewer icon on the toolbar. This will invoke the trap viewer.

  2. Specify the Port number and Community. Add the Port number to the TrapList by selecting the Add button.

  3. 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,

  1. Select File -> Save option.

  2. Specify the required file name and click OK.

  3. The configuration will be saved in the specified file in XML format in <SimulatorHome>/trapstormer directory.

To load the file in the Trap Stormer,

  1. Select File -> Load option.

  2. 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.  

 



Copyright © 1996-2006, AdventNet Inc. All Rights Reserved.