|
|
This chapter describes the commands used to configure System Network Management Protocol (SNMP) parameters, such as management station and traps.
To delete one or all of the configured trap hosts, use the reset snmp trap host command.
REset SNmp TRaphost [ip address | ALl| ip address | IP address of the configured trap host in four-part dotted decimal notation. |
| all | Deletes all configured trap hosts. |
None
System mode
The following example deletes one trap host:
Host> reset snmp traphost 150.150.50.25
set snmp trap host
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| 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. |
None
System mode
To delete the contact name, enter the command without the contact name.
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
set snmp location
set snmp trap
set snmp trap host
show snmp
To enter the physical location of the router, use the set snmp location command.
SEt SNmp LOcation location| 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. |
None
System mode
To delete the location name, enter the command without the location-name argument.
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
set snmp contact
set snmp trap
set snmp trap host
show snmp
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]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. |
Traps are never sent (all off).
System mode
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
set snmp contact
set snmp trap host
show snmp
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| 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. |
The default IP address is 0.0.0.0.
System mode
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
reset snmp trap host
set snmp contact
set snmp trap
show snmp
To display SNMP configuration for the router, use the show snmp command.
SHow SNmpThis command has no arguments or keywords.
None
System or profile mode
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.
| 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. |
|
|