12
212
Example
The following example displays the configured SNMP filters.
switchxxxxxx#
show snmp filters user-filter
Name
OID Tree
------------
---------------------
user-filter
1.3.6.1.2.1.1
user-filter
1.3.6.1.2.1.1.7
user-filter
1.3.6.1.2.1.2.2.1.*.1
12.12 snmp-server host
Use the snmp-server host Global Configuration mode command to configure the
host for SNMP notifications: (traps/informs). Use the no form of this command to
remove the specified host.
Syntax
{host-ip | hostname} [traps | informs] [version {1 | 2c | 3 [auth |
snmp-server host
noauth | priv]}] community-string [udp-port port] [filter filtername] [timeout
seconds] [retries retries]
no snmp-server host
Parameters
•
host-ip—IP address of the host (the targeted recipient). The default is all IP
addresses. This can be an IPv4 address, IPv6 or IPv6z address. See
Address
Conventions.
•
hostname—Hostname of the host (the targeted recipient). (Range: 1–158
characters. Maximum label size of each part of the host name: 63)
•
trap—Sends SNMP traps to this host (default).
•
informs—Sends SNMP informs to this host. An inform is a trap that requires
acknowledgement. Not applicable to SNMPv1.
•
1—SNMPv1 traps are used.
•
2c—SNMPv2 traps or informs are used
•
3—SNMPv2 traps or informs are used
Network Management Protocol (SNMP) Commands
{ip-address | hostname} [traps | informs] [version {1 | 2c | 3}]
78-21075-01 Command Line Interface Reference Guide
Type
---------
Included
Excluded
Included
IPv6z