Skip to Main Content
Cisco IOS in a Nutshell, 2nd Edition
book

Cisco IOS in a Nutshell, 2nd Edition

by James Boney
August 2005
Intermediate to advanced content levelIntermediate to advanced
798 pages
31h 12m
English
O'Reilly Media, Inc.
Content preview from Cisco IOS in a Nutshell, 2nd Edition

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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CISCO IOS in a Nutshell

CISCO IOS in a Nutshell

James Boney
Cisco IOS Cookbook, 2nd Edition

Cisco IOS Cookbook, 2nd Edition

Kevin Dooley, Ian Brown
Cisco Software-Defined Access

Cisco Software-Defined Access

Srilatha Vemula, Jason Gooley, Roddie Hasan

Publisher Resources

ISBN: 0596008694Errata