|
Trap Viewer is a graphical tool to view the traps received from one or more SNMP agents. Trap Viewer can listen to one or more port at a time and the traps can be sent from any host. Trap Viewer can handle inform requests as well. Inform requests can be sent from a manager to another manager. Trap Viewer can receive and display inform messages. By default, the inform requests are sent to the port 162 of the manager station.
To open Trap Viewer, click the Trap Viewer icon on the toolbar or select View-->Trap Viewer from the menu. You can also use the shortcut key combination Alt + P.
The image depicted below is a screen shot of Trap Viewer.

Trap Viewer has a table that depicts the trap information and the text fields where the values for common parameters are entered. There are other options, such as Start, Stop, Trap Details, Delete Trap, and ParserEditor.
Follow these steps to know more about the available options.
The value in the Port text field is set to162 by default. Enter the desired port in this field.
The default value of the Community field is public. Set the community of the incoming traps as desired.
Click the Add button to add the Port and Community list to the Trap list. This is visible in the TrapList list box.
The Port and Community list can be deleted by clicking the Del button.
Click the Load button to load the trap parser file.
In order to receive the traps now, click the Start button. Trap Viewer begins to receive traps from the specified port and community.
The traps when received are listed in the trap table. The trap table has the following five columns.
The Class column defines the severity of the trap.
The Type column defines the type of the trap or the inform request.
The Source column represents the IP address of the source from where the traps were sent.
The Date column shows the date and time when the trap was received.
The Message column has the VarBind list of the trap, if any.
The status of the trap is displayed in the status pane at the bottom of the dialog box. Moreover, the Trap count and the inform count is displayed in the status pane.
To log the received traps, select the Enable Logging check box. All the incoming traps are logged to a file. The default name of the log file is trap.log.
The details of the traps can be viewed by clicking the Trap Details button. You can also right-click the trap in the trap table and select 'View Trap Details'. The image below is the screen shot of the Trap details.

|
|
Note: Note that v3 traps are received only if the corresponding entry is present in the v3 table. Refer Setting Common Parameters for more information on adding v3 entries. |
The various details available in the Trap Details frame are listed in the table below.
| Trap Details | Description |
|---|---|
|
TimeStamp |
This field shows the value stored in the MIB-II sysUpTime variable converted into hours, minutes and seconds. It is a 32-bit unsigned value indicating the number of centiseconds that have elapsed since the (re)start of the SNMP agent and the sending of the trap. |
|
Enterprise |
This field shows the OID of the management enterprise that defines the trap message. The value is represented as an OBJECT IDENTIFIER value and has a variable length. |
|
Generic Type |
This field shows the value based on the type of trap. The value is categorized and numbered 0 to 6. They are 0-coldStart,1-warmStart, 2-linkDown, 3-linkUp, 4-authenticationFailure, and 5-egpNeighborLoss. The trap type value 6 is identified as an enterprise-specific value. |
|
Specific Type |
This field can have values from 0 to 2147483647. The specific trap type indicates the specific trap as defined in an enterprise-specific MIB. If the Generic Type value is 6, this field shows a value greater than 0. If the Generic Type value is a value other than 6, then the field shows a value 0. |
|
Message |
This is a text field. By default, this field always contains the Varbinds in the Trap PDU. This can be replaced with the text. |
|
Severity |
This field shows the severity or the intensity of the trap. It could be 0-All, 1-Critical, 2-Major, 3-Minor, 4-warning, 5-Clear, and 6-Info. |
|
Entity |
This field contains the source IP address from which the Trap was sent. |
|
RemotePort |
This field reveals the port from which the Trap was sent by the originator. |
|
Community |
This field contains the Community string. |
|
Node |
Source |
|
TimeReceived |
This field contains the date and time when the trap was received. |
|
HelpURL |
The URL shown here gives more details of the received trap. By default, the URL is <generic-type value> - <specific-type value>.html |
You can stop listening to the port by clicking the Stop button.
When you need to delete a trap, select the trap and click the Delete Trap button. You can also right-click the trap in the trap table and select 'Delete the Selected Rows'.
Another option in Trap Viewer is the ParserEditor. Trap Viewer can filter the incoming traps according to certain criterion called the Parser Criteria. The configuration of the criterion is made possible by using the ParserEditor. A detailed overview has been given in the Parsing Traps section.
|