Simple Network Management Protocol (SNMP) and Syslog | 589
Defaults
As shown
Command Modes
CONFIGURATION
Command
History
Usage
Information
In order to configure the router to send SNMP notifications, you must enter at least one snmp-server
host
command. If you enter the command with no keywords, all trap types are enabled for the host. If
you do not enter an snmp-server host command, no notifications are sent.
In order to enable multiple hosts, you must issue a separate snmp-server host command for each host.
You can specify multiple notification types in the command for each host.
When multiple snmp-server host commands are given for the same host and type of notification (trap
or inform), each succeeding command overwrites the previous command. Only the last snmp-server
host
command will be in effect. For example, if you enter an snmp-server host inform command for
a host and then enter another snmp-server host inform command for the same host, the second
command will replace the first.
The snmp-server host command is used in conjunction with the snmp-server enable command. Use
the snmp-server enable command to specify which SNMP notifications are sent globally. For a host to
receive most notifications, at least one snmp-server enable command and the snmp-server host
command for that host must be enabled.
udp-port port-number (OPTIONAL) Enter the keywords udp-port followed by the port number of the
remote host to use.
Range: 0 to 65535.
Default: 162
notification-type
(OPTIONAL) Enter one of the following keywords for the type of trap to be sent
to the host:
•
ecfm - Notification of ECFM state changes
•
entity - Notification of entity changes
•
envmon - Environment monitor trap
•
eoam - Notificaiton of EOAM state changes
•
ets - Notification of ets trap changes
•
fips - Notification of FIP snooping state changes
•
lacp - Notificaiton of LACP state changes
•
pfc - Notification of pfc trap changes
•
snmp - SNMP notification (RFC 1157)
•
stp - Spanning Tree protocol notification (RFC 1493)
•
vrrp - State change in a VRRP group
•
xstp - State change in MSTP (802.1s), RSTP (802.1w), and PVST+
Default: All trap types are sent to host.
Version 8.3.16.1 Introduced on MXL 10/40GbE Switch IO Module
Note: For v1 / v2c trap configuration, if the community-string is not defined using the
snmp-server community command prior to using this command, the default form of the
snmp-server community command will automatically be configured, with the
community-name the same as specified in the snmp-server host command.