snmp-server enable traps
Use this command to enable or disable SNMP traps and inform requests.
For CMMD, Critical logs in the console are equivalent to Alert traps & Alert logs on the console is equivalent to critical trap in SNMP.
Command Syntax
snmp-server enable traps (link(|linkDown|linkUp|include-interface-name)|snmp(|authentication)| mpls|pw|pwdelete|ospf|bgp|isis|vxlan|vrrp|ospf6|syslog)
no snmp-server enable traps (link(|linkDown|linkUp|include-interface-name)|snmp(|authentication)| mpls|pw|pwdelete|ospf|bgp|isis|vxlan|vrrp|ospf6|syslog)
Parameters
bgp
bgp notification trap
isis
isis notification trap
link
Module notifications enable
linkDown
IETF Link state down notification
linkUp
IETF Link state up notification
snmp
Enable RFC 1157 notifications
syslog
Syslog notification trap
authentication
Send SNMP authentication failure notifications
mpls
mpls notification trap
mplsl3vpn
mpls-l3vpn notification trap
ospf
ospf notification trap
ospf6
ospf6 notification trap
pw
pw notification trap
pwdelete
pwdelete notification trap
rib
rib notification trap
rsvp
rsvp notification trap
vrrp
vrrp notification trap
vxlan
vxlan notification trap
linkDown
IETF link state down notification
linkup
IETF link state up notification
include-interface-name
Enable this option to include interface name in the Linkup/Linkdown trap's varbind
Default
Enabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3 and was updated inOcNOS version 6.6.0.
Examples
(config)#snmp-server enable traps snmp
(config)#snmp-server enable traps mpls
(config)#snmp-server enable traps mplsl3vpn
(config)#snmp-server enable traps rsvp
(config)#snmp-server enable traps ospf
(config)#snmp-server enable traps ospf6
(config)#snmp-server enable traps vrrp
(config)#snmp-server enable traps vxlan
(config)#snmp-server enable traps snmp authentication
(config)#snmp-server enable traps syslog