Name
snmp-server host — global
Synopsis
snmp-server hosthostname
[version {1 | 2c}]community
[udp-portport
]trap-type
no snmp-server hosthostname
Configures
SNMP agent; trap behavior
Default
Disabled
Description
This command defines which host should receive SNMP traps.
-
hostname
The hostname or IP address of the host that should receive traps.
-
version
n
The version of SNMP to use (
1
or2c
).-
community
The SNMP community string to use when sending traps to this host.
-
udp-port
port
The UDP port to use. Default is 162.
-
trap-type
Optional. Specifies which types of traps are sent to this host. If no trap type is specified, all traps are sent to this host. Possible values are listed in Table 15-19, under the command
snmp-server enable traps
.
Example
snmp-server enable traps snmp-server host myhost.xyz.com public
Get CISCO IOS in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.