29.04.2019 Views

OS6860(E)_AOS_8.1.1.R01_Switch_Management_Guide

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using SNMP<br />

Working with SNMP Traps<br />

Authentication Trap<br />

The authentication trap is sent when an SNMP authentication failure is detected. This trap is a signal to the<br />

management station that the switch received a message from an unauthorized protocol entity. This<br />

normally means that a network entity attempted an operation on the switch for which it had insufficient<br />

authorization. When the SNMP authentication trap is enabled, the switch will forward a trap to the<br />

management station. The following command will enable the authentication trap:<br />

-> snmp authentication trap enable<br />

The trap will be suppressed if the SNMP authentication trap is disabled.<br />

Trap <strong>Management</strong><br />

Several CLI commands allow you to control trap forwarding from the agent in the switch to the SNMP<br />

management station.<br />

Replaying Traps<br />

The switch normally stores all traps that have been sent out to the SNMP management stations. You can<br />

list the last stored traps by using the show snmp-trap replay-ip command. This command lists the traps<br />

along with their sequence number. The sequence number is a record of the order in which the traps were<br />

previously sent out.<br />

You may want to replay traps that have been stored on the switch for testing or troubleshooting purposes.<br />

This is useful in the event when any traps are lost in the network. To replay stored traps, use the snmp<br />

trap replay command followed by the IP address for an SNMP management station. This command<br />

replays (or re-sends) all stored traps from the switch to the specified management station on demand.<br />

If you do not want to replay all of the stored traps, you can specify the sequence number from which the<br />

trap replay will start. The switch will start the replay with a trap sequence number greater than or equal to<br />

the sequence number given in the CLI command. The number of traps replayed depends on the number of<br />

traps stored for this station.<br />

Absorbing Traps<br />

The switch may send the same traps to the management station many, many times. You can suppress the<br />

transmission of identical repetitive traps by issuing the snmp-trap absorption command. When trap<br />

absorption is enabled, traps that are identical to traps previously sent will be suppressed and therefore not<br />

forwarded to the SNMP management station. The following command will enable SNMP trap absorption:<br />

-> snmp trap absorption enable<br />

To view or verify the status of the Trap Absorption service, use the show snmp-trap config command.<br />

Sending Traps to WebView<br />

When WebView forwarding is enabled, all traps sent by switch applications are also forwarded to<br />

WebView. The following command allows a WebView session to retrieve the trap history log:<br />

-> snmp trap to webview enable<br />

Omni<strong>Switch</strong> <strong>AOS</strong> Release 8 <strong>Switch</strong> <strong>Management</strong> <strong>Guide</strong> May 2014 page 9-13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!