Use this procedure to configure an SNMP notification recipient (host) to receive SNMP traps from the device.
Enable SNMP notification delivery by specifying the host and parameters for receiving SNMP traps and notifications from your network device.
Starting with Cisco IOS XR Release 26.3.1,
-
SNMP secure-v3 enforces authentication and encryption for every configured user. For more information, see Configure SNMP secure-v3.
-
Legacy SNMPv1, SNMPv2c, and SNMPv3 configurations are deprecated but remain supported. If a deprecated SNMP configuration remains active, the router logs a deprecation warning every 30 days.
Configuring the SNMP notification recipient allows the network device to send event notifications (traps or informs) to a designated SNMP manager for monitoring and management.
Before you begin
-
Ensure SNMP is enabled on the device.
-
Obtain the IP address of the SNMP manager (recipient).
-
Determine the SNMP version and community string to be used.
Procedure
Example:
Router(config)#snmp-server host 223.255.254.249 traps version 2c cebridge1 udp-port
|
If... |
Then... |
|---|---|
|
You want to specify a custom port |
Include |
|
Using SNMP version 3 |
Supply the correct v3 user and security parameters |
|
SNMP manager IP changes |
Update the host IP in the |