Configure an SNMP-Trap Receiver IP Address

You can configure an agent with the SNMP-trap destination information and community.

Before you begin

This command is available only to users with the admin role.

About this task

You can enable SNMPv1, SNMPv2c, or SNMPv3 traps for a given host, community, or user combination. A maximum of 12 hosts per community are supported.

Procedure

  1. Enter the Config mode.
    device# configure terminal
    device(config)# 
  2. Configure the required SNMP-trap:
    • SNMPv1
    • SNMPv2c
    • SNMPv3
    snmp-server { host [ ip-address | host ] comm-user udp-port version [ 1 | 2c | 3 ] } 
    device(config)# snmp-server host 10.23.17.128 public 162 version 2c
    Domain name, IPv4 address, and IPv6 address are supported as host.