If you enter this
command with no optional keywords, the default is to send all notification-type
traps to the host. No informs will be sent to the host.
SNMP
notifications can be sent as traps or inform requests. Traps are unreliable
because the receiver does not send acknowledgments when it receives traps. The
sender cannot determine if the traps were received. However, an SNMP entity
that receives an inform request acknowledges the message with an SNMP response
protocol data unit (PDU). If the sender never receives the response, the inform
request can be sent again. Thus, informs are more likely to reach their
intended destination than traps.
Compared to
traps, informs consume more resources in the agent and in the network. Unlike a
trap, which is discarded as soon as it is sent, an inform request must be held
in memory until a response is received or the request times out. Also, traps
are sent only once; an inform may be tried several times. The retries increase
traffic and contribute to a higher overhead on the network.
The availability
of notification-type options depends on the router type and the Cisco IOS
software features supported on the router. For example, the
envmon
notification type is available only if the environmental monitor is part of the
system. To see what notification types are available on your system, use the
command help
? at the end
of the
snmp-server
host command.
In the case of
the NMS sending the query having a correct SNMP community but not having a read
or a write view, the SNMP agent returns the following error values:
The notification
type can be one or more of the following keywords.
-
aaa
server
--Sends SNMP authentication, authorization, and accounting
(AAA) traps.
-
adslline
--Sends Asymmetric Digital Subscriber Line (ADSL) LINE-MIB
traps.
-
atm
--Sends ATM notifications.
-
authenticate-fail
--Sends an SNMP 802.11 Authentication Fail trap.
-
auth-framework
--Sends SNMP CISCO-AUTH-FRAMEWORK-MIB notifications.
-
bgp
--Sends Border Gateway Protocol (BGP) state change
notifications.
-
bridge
--Sends SNMP STP Bridge MIB notifications.
-
bstun
--Sends Block Serial Tunneling (BSTUN) event notifications.
-
bulkstat
--Sends Data-Collection-MIB notifications.
-
c6kxbar
--Sends SNMP crossbar notifications.
-
callhome
--Sends Call Home MIB notifications.
-
calltracker
-- Sends Call Tracker call-start/call-end notifications.
-
casa
--Sends Cisco Appliances Services Architecture (CASA) event
notifications.
-
ccme
--Sends SNMP Cisco netManager Event (CCME) traps.
-
cef
--Sends notifications related to Cisco Express Forwarding.
-
chassis
--Sends SNMP chassis notifications.
-
cnpd
--Sends Cisco Network-based Application Recognition (NBAR)
Protocol Discovery (CNPD) traps.
-
config
--Sends configuration change notifications.
-
config-copy
--Sends SNMP config-copy notifications.
-
config-ctid
--Sends SNMP config-ctid notifications.
-
cpu
--Sends CPU-related notifications.
-
csg
--Sends SNMP Content Services Gateway (CSG) notifications.
-
deauthenticate
--Sends an SNMP 802.11 Deauthentication trap.
-
dhcp-snooping
--Sends DHCP snooping MIB notifications.
-
director
--Sends notifications related to DistributedDirector.
-
disassociate
--Sends an SNMP 802.11 Disassociation trap.
-
dlsw
--Sends data-link switching (DLSW) notifications.
-
dnis
--Sends SNMP Dialed Number Identification Service (DNIS)
traps.
-
dot1x
--Sends 802.1X notifications.
-
dot11-mibs
--Sends dot11 traps.
-
dot11-qos
--Sends SNMP 802.11 QoS Change trap.
-
ds1
--Sends SNMP digital signaling 1 (DS1) notifications.
-
ds1-loopback
--Sends ds1-loopback traps.
-
dspu
--Sends downstream physical unit (DSPU) notifications.
-
eigrp
--Sends Enhanced Interior Gateway Routing Protocol (EIGRP)
stuck-in-active (SIA) and neighbor authentication failure notifications.
-
energywise
--Sends SNMP energywise notifications.
-
entity
--Sends Entity MIB modification notifications.
-
entity-diag
--Sends SNMP entity diagnostic MIB notifications.
-
envmon
--Sends Cisco enterprise-specific environmental monitor
notifications when an environmental threshold is exceeded.
-
errdisable
--Sends error disable notifications.
-
ethernet-cfm
--Sends SNMP Ethernet Connectivity Fault Management (CFM)
notifications.
-
event-manager
--Sends SNMP Embedded Event Manager notifications.
-
firewall
--Sends SNMP Firewall traps.
-
flash
--Sends flash media insertion and removal notifications.
-
flexlinks
--Sends FLEX links notifications.
-
flowmon
--Sends flow monitoring notifications.
-
frame-relay
--Sends Frame Relay notifications.
-
fru-ctrl
--Sends entity field-replaceable unit (FRU) control
notifications.
-
hsrp
--Sends Hot Standby Routing Protocol (HSRP) notifications.
-
icsudsu
--Sends SNMP ICSUDSU traps.
-
iplocalpool
--Sends IP local pool notifications.
-
ipmobile
--Sends Mobile IP notifications.
-
ipmulticast
--Sends IP multicast notifications.
-
ipsec
--Sends IP Security (IPsec) notifications.
-
isakmp
--Sends SNMP ISAKMP notifications.
-
isdn
--Sends ISDN notifications.
-
l2tc
--Sends SNMP L2 tunnel configuration notifications.
-
l2tun-pseudowire-status
--Sends pseudowire state change notifications.
-
l2tun-session
--Sends Layer 2 tunneling session notifications.
-
license
--Sends licensing notifications as traps or informs.
-
llc2
--Sends Logical Link Control, type 2 (LLC2) notifications.
-
mac-notification
--Sends SNMP MAC notifications.
-
memory
--Sends memory pool and memory buffer pool notifications.
-
module
--Sends SNMP module notifications.
-
module-auto-shutdown
--Sends SNMP module autoshutdown MIB notifications.
-
mpls-fast-reroute
--Sends SNMP Multiprotocol Label Switching (MPLS) traffic
engineering fast reroute notifications.
-
mpls-ldp
--Sends MPLS Label Distribution Protocol (LDP)
notifications indicating status changes in LDP sessions.
-
mpls-traffic-eng
--Sends MPLS traffic engineering notifications, indicating
changes in the status of MPLS traffic engineering tunnels.
-
mpls-vpn
--Sends MPLS VPN notifications.
-
msdp
--Sends SNMP Multicast Source Discovery Protocol (MSDP)
notifications.
-
mvpn
--Sends multicast VPN notifications.
-
nhrp
--Sends Next Hop Resolution Protocol (NHRP) notifications.
-
ospf
--Sends Open Shortest Path First (OSPF) sham-link
notifications.
-
pim
--Sends Protocol Independent Multicast (PIM) notifications.
-
port-security
--Sends SNMP port-security notifications.
-
power-ethernet
--Sends SNMP power Ethernet notifications.
-
public
storm-control
--Sends SNMP public storm-control notifications.
-
pw-vc
--Sends SNMP pseudowire virtual circuit (VC) notifications.
-
p2mp-traffic-eng--Sends SNMP MPLS Point to
Multi-Point MPLS-TE notifications.
-
repeater
--Sends standard repeater (hub) notifications.
-
resource-policy
--Sends CISCO-ERM-MIB notifications.
-
rf
--Sends SNMP RF MIB notifications.
-
rogue-ap
--Sends an SNMP 802.11 Rogue AP trap.
-
rsrb
--Sends remote source-route bridging (RSRB) notifications.
-
rsvp
--Sends Resource Reservation Protocol (RSVP) notifications.
-
rtr
--Sends Response Time Reporter (RTR) notifications.
-
sdlc
--Sends Synchronous Data Link Control (SDLC) notifications.
-
sdllc
--Sends SDLC Logical Link Control (SDLLC) notifications.
-
slb
--Sends SNMP server load balancer (SLB) notifications.
-
snmp
--Sends any enabled RFC 1157 SNMP linkUp, linkDown,
authenticationFailure, warmStart, and coldStart notifications.
Note |
To enable
RFC-2233-compliant link up/down notifications, you should use the
snmp
server
link
trap command.
|
-
sonet
--Sends SNMP SONET notifications.
-
srp
--Sends Spatial Reuse Protocol (SRP) notifications.
-
stpx
--Sends SNMP STPX MIB notifications.
-
srst
--Sends SNMP Survivable Remote Site Telephony (SRST) traps.
-
stun
--Sends serial tunnel (STUN) notifications.
-
switch-over
--Sends an SNMP 802.11 Standby Switchover trap.
-
syslog
--Sends error message notifications (Cisco Syslog MIB). Use
the
logging
history
level command to specify the level of messages to
be sent.
-
syslog
--Sends error message notifications (Cisco Syslog MIB). Use
the
logging
history
level command to specify the level of messages to
be sent.
-
tty
--Sends Cisco enterprise-specific notifications when a TCP
connection closes.
-
udp-port
--Sends the notification host’s UDP port number.
-
vlan-mac-limit
--Sends SNMP L2 control VLAN MAC limit notifications.
-
vlancreate
--Sends SNMP VLAN created notifications.
-
vlandelete
--Sends SNMP VLAN deleted notifications.
-
voice
--Sends SNMP voice traps.
-
vrrp
--Sends Virtual Router Redundancy Protocol (VRRP)
notifications.
-
vsimaster
--Sends Virtual Switch Interface (VSI) Master
notifications.
-
vswitch
--Sends SNMP virtual switch notifications.
-
vtp
--Sends SNMP VLAN Trunking Protocol (VTP) notifications.
-
wlan-wep
--Sends an SNMP 802.11 Wireless LAN (WLAN) Wired Equivalent
Privacy (WEP) trap.
-
x25
--Sends X.25 event notifications.
-
xgcp
--Sends External Media Gateway Control Protocol (XGCP)
traps.
This syntax
difference is necessary to ensure that the CLI interprets the
notification-type keyword of the
snmp-server
host command as a unified, single-word construct,
which preserves the capability of the
snmp-server
host command to accept multiple
notification-type keywords in the command line. The
snmp-server
enable
traps commands, however, often use two-word
constructs to provide hierarchical configuration options and to maintain
consistency with the command syntax of related commands. The table below maps
some examples of
snmp-server
enable
traps commands to the keywords used in the
snmp-server
host command.