Traps/Notifications are generated when there is a significant change in the state of agent. SNMP Agent Tester provides facility for testing the generated Traps/Notifications. Testing is mainly done to check if the traps/notifications generated by the agent are compliant with the RFC standards. Please note that it does not check whether traps/notifications are generated; it only checks whether the generated traps are compliant with the Standards.
Basis of Validation
Traps are validated for the following:
Checks all v1 Traps, v2c Notifications, and v2c Informs received from the Agent.
Checks whether the Trap Headers (Enterprise OID, Generic Trap Value, Specific Trap Value) match
Checks whether the varbinds in the Trap (OID and value) match.
Checks whether Informs are sent from the trap port to the agent port.
The received trap/notification is checked for the trap ID.
Checks the trap properties for the matching OID in the MIBs loaded with that in the trap varbind
In case, the OID in the trap varbind does not match, then the particular trap is defined as an unidentified trap and placed under Unidentified Traps.
In case of Informs, the acknowledgment message to the agent will be sent by the port in which SNMP Agent Tester listens for traps/notifications.
Steps Involved in Trap Validation
To perform validation on the agent for traps/notifications follow the steps given below:
Create a project.
Load the MIBs containing the OIDs of the trap varbind.
By default, SNMP Agent Tester listens for traps at port 8003. To change this to a different port, please specify in the project settings.
Select Trap from the project tree. The Trap Validation Panel is displayed on the right.
Click Start Testing to begin validation.
After validation is started, if any traps are received, they will be validated and updated in the Report Viewer tab.
Note: Trial users can only receive and validate 10 traps.
Viewing the Validation Reports
The result of the validation can be viewed by selecting the Report Viewer tab. You have the following options to view the report:
The trap notifications are classified based on the information available in the loaded MIBs. You can view the reports based on this classification by selecting the respective node from the project tree.
You can view the reports based on the result status by selecting the required option from the Select a view combo box.
You van view the details of a specific test case by selecting a row from the report.
You have an option to view the graphical representation of the reports by clicking the bar graph or pie chart icon.
The report summary and the summary of the failed test cases are displayed at the bottom of the report viewer based on the node selected in the project tree.
You can also generate HTML reports of the performed validation.
Clearing the Validation Reports
To clear the validation reports, select Trap node from the project tree and then select Reports --> Clear Reports --> Clear Trap Reports from the menu bar.