O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

snmp-server host — global

Synopsis

snmp-server host hostname [version {1 | 2c}] community [udp-port port] trap-
type
no snmp-server host hostname

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 or 2c).

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 17-22, under the command snmp-server enable traps.

Example

snmp-server enable traps
snmp-server host myhost.xyz.com public

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required