Configuring Snmp To Send Traps Using An Inband Port - Cisco Nexus 9000 Series Configuration Manual

Nx-os system management configuration guide, release 6.x
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Configuring SNMP
Step 3
Step 4

Configuring SNMP to Send Traps Using an Inband Port

You can configure SNMP to send traps using an inband port. To do so, you must configure the source interface
(at the global or host level) and the VRF used to send the traps.
Procedure
Step 1
Step 2
Command or Action
[no] snmp-server host ip-address
filter-vrf vrf-name [udp_port
number]
Example:
switch(config)# snmp-server
host 192.0.2.1 filter-vrf Red
copy running-config
startup-config
Example:
switch(config)# copy
running-config startup-config
Command or Action
configure terminal
Example:
switch# configure terminal
switch(config)#
snmp-server source-interface traps
if-type if-number
Example:
switch(config)# snmp-server
source-interface traps ethernet
1/2
Cisco Nexus 9000 Series NX-OS System Management Configuration Guide, Release 6.x
Configuring SNMP to Send Traps Using an Inband Port
Purpose
Filters notifications to the notification host receiver based on
the configured VRF. The ip-address can be an IPv4 or IPv6
address. The VRF name can be any alphanumeric string up to
255 characters. The UDP port number range is from 0 to 65535.
This command adds an entry into the ExtSnmpTargetVrfTable
of the CISCO-SNMP-TARGET-EXT-MB.
The no form of this command removes the VRF filter
information for the configured host and removes the entry from
the ExtSnmpTargetVrfTable of the
CISCO-SNMP-TARGET-EXT-MB.
This command does not remove the host
Note
configuration.
(Optional)
Copies the running configuration to the startup configuration.
Purpose
Enters global configuration mode.
Globally configures a source interface for sending out
SNMP traps. Use ? to determine the supported interface
types.
You can configure the source interface at the global level
or at a host level. When the source interface is configured
globally, any new host configuration uses the global
configuration to send the traps.
To configure a source interface at the host level,
Note
use the snmp-server host ip-address
source-interface if-type if-number command.
123

Advertisement

Table of Contents
loading

Table of Contents