cc/td/doc/product/access/acs_fix/750
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

SNMP Commands

SNMP Commands

This chapter describes the commands used to configure System Network Management Protocol (SNMP) parameters, such as management station and traps.

reset snmp trap host

To delete one or all of the configured trap hosts, use the reset snmp trap host command.

REset SNmp TRaphost [ip address | ALl
Syntax Description
ip address IP address of the configured trap host in four-part dotted decimal notation.
all Deletes all configured trap hosts.
Default

None

Command Mode

System mode

Example

The following example deletes one trap host:

Host> reset snmp traphost 150.150.50.25
Related Command

set snmp trap host

set snmp contact

To enter the username of the contact person who has the management information of this node, use the set snmp contact command.

SEt SNmp COntact contact name
Syntax Description
contact name User name of a contact person who has all the management information. Must be between 1 and 64 characters. If it includes spaces, the entire string of characters must be enclosed in quotation marks.
Default

None

Command Mode

System mode

Usage Guidelines

To delete the contact name, enter the command without the contact name.

Examples

The following example configures a contact name to be associated with SNMP information:

Host> set snmp contact "Thomas Doe"

The following example deletes the contact name:

Host> set snmp contact
Related Commands

set snmp location
set snmp trap
set snmp trap host
show snmp

set snmp location

To enter the physical location of the router, use the set snmp location command.

SEt SNmp LOcation location
Syntax Description
location Location name, must be between 1 and 64 characters. If the name includes spaces, the entire string of characters must be enclosed in quotation marks.
Default

None

Command Mode

System mode

Usage Guidelines

To delete the location name, enter the command without the location-name argument.

Examples

The following example configures the location name San Jose to be associated with the router:

Host> set snmp location "San Jose"

The following example deletes the location name:

Host> set snmp location
Related Commands

set snmp contact
set snmp trap
set snmp trap host
show snmp

set snmp trap

To configure when traps are sent to the network management station, use the set snmp trap command.

SEt SNmp TRap [COldstart = ON | OFf] [LInkup= ON | OFf] [LInkdown ON | OFf] [AUthenticationfail ON | OFf]
Syntax Description

on

Traps are sent when any of the listed conditions (coldstart, linkup, linkdown, or authentication failure) occur.

off

Traps are not sent when any of the listed conditions (coldstart, linkup, linkdown, or authentication failure) occur.

coldstart

Coldstart trap is sent when the router is powered on.

linkup A new connection is established. Does not apply to individual B channel establishment.
linkdown A connection is closed. Does not apply to individual B channels closing.
authenticationfail Authentication fails.
Default

Traps are never sent (all off).

Command Mode

System mode

Example

The following example configures the router to send traps when the router is rebooted and when authentication fails:

Host> set snmp trap coldstart on authenticationfail on
Related Commands

set snmp contact
set snmp trap host
show snmp

set snmp trap host

To configure the router with the IP address of a network management station that receives SNMP traps, use the set snmp trap host command.

SEt SNmp TRAPHOst ip address
Syntax Description
ip address IP address of a network management station that receives the SNMP traps in four-part dotted decimal notation. A maximum of eight different IP addresses can be entered with this command.
Default

The default IP address is 0.0.0.0.

Command Mode

System mode

Example

The following example configures the router with the IP address of a network management station that will receive traps from the router:

Host> set snmp traphost 150.150.50.25
Related Commands

reset snmp trap host
set snmp contact
set snmp trap
show snmp



show snmp

To display SNMP configuration for the router, use the show snmp command.

SHow SNmp
Syntax Description

This command has no arguments or keywords.

Default

None

Command Mode

System or profile mode

Example

The following example shows output from the show snmp command:

Host> show snmp
SNMP
Contact "Thomas Doe"
Location "Fremont"
Trap COLDSTART OFF
Trap LINKDOWN OFF
Trap LINKUP OFF
Trap AUTHENTICATIONFAIL ON
Trap Host 150.150.50.25
Trap Host 150.150.30.35

Table 10-1 describes the fields shown in the display.


Table  10-1: Show SNMP Field Descriptions
Field Description
Contact Router's contact name.
Location Router's location.
Coldstart Indicates whether a trap is sent when the unit is rebooted. Can be On or Off.
Linkdown Indicates whether a trap is sent when a connection closes. Can be On or Off.
Linkup Indicates whether a trap is sent when a connection opens. Can be On or Off.
Authentication fail Indicates whether a trap is sent when authentication fails. Can be On or Off.
Trap Host IP address(es) of management stations where traps are sent.

hometocprevnextglossaryfeedbacksearchhelp
Copyright 1989-1997 © Cisco Systems Inc.