Configuring A Source Interface For Snmp Notifications - Cisco Nexus 7000 Series Configuration Manual

Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring SNMP
Step 3
Step 4
Step 5

Configuring a Source Interface for SNMP Notifications

You can configure SNMP to use the IP address of an interface as the source IP address for notifications. When
a notification is generated, its source IP address is based on the IP address of this configured interface.
You can configure a source interface as follows:
• All notifications sent to all SNMP notification receivers.
• All notifications sent to a specific SNMP notification receiver. This configuration overrides the global
Configuring the source interface IP address for outgoing trap packets does not guarantee that the device
Note
will use the same interface to send the trap. The source interface IP address defines the source address
inside of the SNMP trap, and the connection is opened with the address of the egress interface as source.
Command or Action
snmp-server host ip-address {traps |
informs} version 2c community [udp_port
number]
Example:
switch(config)# snmp-server host
192.0.2.1 informs version 2c public
snmp-server host ip-address {traps |
informs} version 3 {auth | noauth | priv}
username [udp_port number]
Example:
switch(config)# snmp-server host
192.0.2.1 informs version 3 auth NMS
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
source interface configuration.
Configuring a Source Interface for SNMP Notifications
Purpose
Configures a host receiver for SNMPv2c traps or
informs. The ip-address can be an IPv4 or IPv6
address. The community can be any alphanumeric
string up to 255 characters. The UDP port number
range is from 0 to 65535.
Configures a host receiver for SNMPv3 traps or
informs. The ip-address can be an IPv4 or IPv6
address. The username can be any alphanumeric string
up to 255 characters. The UDP port number range is
from 0 to 65535.
Note
(Optional)
Copies the running configuration to the startup
configuration.
Cisco Nexus 7000 Series NX-OS System Management Configuration Guide
The SNMP manager must know the user
credentials (authKey/PrivKey) based on the
SNMP engine ID of the Cisco NX-OS device
to authenticate and decrypt the SNMPv3
messages.
187

Advertisement

Table of Contents
loading

Table of Contents