snmp-server host


snmp-server host [ipv4–addr|ipv6–addr] <community name>


Configures a destination network management station to receive SNMPv1/v2c traps and (optionally) Event Log messages sent as traps from the switch, using the specified community name and destination IPv4 or IPv6 address. You can specify up to ten trap receivers (network management stations.) <COMMUNITY NAME> defaults to public.

Configure a trap receiver

To configure a trap receiver in a community named "red-team" with an IP address of to receive only "critical" event log messages, you can enter the following command:

switch# snmp-server host red-team critical