S e n d c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
-SM-311
Cisco Nexus 3000 Series NX-OS System Management Command Reference
OL-29557-04
Chapter System Management Commands
snmp-server host
Command Modes
Global configuration mode
Command History
Usage Guidelines
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 PDU. If the sender never receives the response, the inform request can be sent again.
Therefore, informs are more likely to reach their intended destination.
Examples
This example shows how to sends the SNMP traps to the host specified by the IPv4 address 192.168.0.10.
The community string is defined as my_acl_for_public:
switch#
configure terminal
switch(config)#
snmp-server community public use-acl my_acl_for_public
switch(config)#
snmp-server host 192.168.0.10 my_acl_for_public
switch(config)#
This example shows how to send all inform requests to the host myhost.cisco.com using the community
string my_acl_for_public:
switch#
configure terminal
switch(config)#
snmp-server enable traps
switch(config)#
snmp-server host myhost.cisco.com informs version 2c my_acl_for_public
switch(config)#
Related Commands
Release
Modification
5.0(3)U1(1)
This command was introduced.
Command
Description
show snmp host
Displays information about the SNMP host.