![]() ![]() ![]() |
The trap recorder records SNMP v1 and SNMP v2c traps by listening for traps at the specified port. All the traps sent to the port will be recorded and displayed. The output of the Trap Recorder will give you the traps in the order they were received, with time stamps and the variables included in the trap PDU.
The recorded traps can be stored in XML files and replayed in the simulator as request-based, threshold-based or time-based traps.
Recording Traps in Trap Recorder
Start the Trap Recorder by invoking SnmpTrapRecorder.bat/sh from <SimulatorHome>/bin directory.
Enter the following details in the UI.
Specify the port number from where the traps will be recorded
Specify the community of the agent from which you want to record traps.
Click Add to add the port number to the trap list.
Click Start. The Trap Recorder starts listening for traps and you can view the recorded traps.
Storing the Recorded Traps in XML Files
To store the recorded traps in XML files,
Select Save option in the Trap Recorder dialog. This prompts a dialog to enter the file name.
Enter the filename and click OK button. The file will be saved in XML format in <SimulatorHome>/rectraps directory.
Note:
|
The recorded traps which are stored in XML files can be loaded in the trap configuration dialog of the SNMP Agent Simulator and Network Designer as request-based, threshold-based and timer-based traps.
To replay the recorded traps in SNMP agent simulator / Network designer,
Start the SNMP Agent Simulator / Network Designer
Invoke the Trap Configurations dialog by selecting Configure -> Traps option from the menu bar.
Select the trap type as request-based, threshold-based or timer-based from the icons displayed on the right-side. Click Add to configure traps The Trap Configuration wizard is displayed
For request-based and threshold-based traps, browse and select the required scalar/columnar node from the MIB tree and click OK. The OID of the selected node will be displayed as the trap variable.
Click Load to load the recorded trap configuration in this dialog.
The Recorded Traps dialog displays all the recorded traps file. Selecting a file will display all the recorded trap entries in the file. Select a trap entry and click OK.
The recorded trap configuration will be displayed in the Trap Configurations dialog. (i.e) the trap version, generic type, specific type, enterprise OID and variable bindings will be updated.
Specify the other configurations and click OK to add the entry to the list.
Refer to Configuring Traps, to know more about configuring traps.
![]() ![]() ![]() |