What to Do Next
To display information about configured source interfaces, enter the show snmp source-interface command.
Configuring a Host Receiver for SNMP Notifications
This configuration overrides the global source interface configuration.Note
Complete the following steps to configure a host receiver on a source interface responsible for receiving all
SNMP notifications:
Procedure
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
switch# configure terminal
switch(config)#
Step 1
Configures a host receiver for SNMPv2c
traps or informs. The ip-address can be an
switch(config) # snmp-server host ip-address
source-interface if-type if-number [udp_port
number]
Step 2
IPv4 or IPv6 address. Use ? to determine the
supported interface types.
Example:
switch(config) # snmp-server host 192.0.2.1
source-interface traps ethernet 2/1
To the following example configures a source interface responsible for receiving all SNMP notifications:
switch# config t
switch(config) # snmp-server host 192.0.2.1 source-interface ethernet 2/1
What to Do Next
To display information about configured source interface, enter the show snmp source-interface command.
Configuring SNMP for Inband Access
You can configure SNMP for inband access using the following:
• Using SNMP v2 without context—You can use a community that is mapped to a context. In this case,
the SNMP client does not need to know about the context.
• Using SNMP v2 with context—The SNMP client needs to specify the context by specifying a community;
for example, <community>@<context>.
• Using SNMP v3—You can specify the context.
   Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
160 OL-31641-01   
Configuring SNMP
Configuring a Host Receiver for SNMP Notifications