Chapter 5 SNMP MIB Installation and Configuration

Setting Up Traps

F I N A L D R A F T - C I S C O C O N F I D E N T I A L

5.5.2 Set Trap Command

Command

snmp row set local cerent15216EdfaCommTrapEntry

Syntax Description snmp row set local cerent15216EdfaCommTrapEntry #

The command followed by a community number permits the user to set the parameters for the SNMP trap. Example 5-9 on page 5-23displays the prompts that appear after entering the command.

Prompts appear for the following settings:

cerent15216EdfaCommTrapCommunity: The trap destination community name.

cerent15216EdfaCommTrapDestIPAddress: The trap destination IP address.

cerent15216EdfaCommTrapDestUDPPort: The trap destination UDP port.

cerent15216EdfaCommTrapViewIndex: The trap destination MIB view index. A trap may be sent to this destination if it is contained in this MIB view. A 0 implies no MIB view.

cerent15216EdfaCommTrapVersion: The trap version number.

cerent15216EdfaCommTrapStatus: The status of this conceptual row in the cerent15216EdfaCommunityTrapTable.

If the data needs to be changed, enter new data after the prompt.

Example 5-9 cerent15216EdfaCommTrapEntry Set Command

ash:hostname:ONS15216 EDFA2> snmp row set local cerent15216EdfaCommTrapEntry 1

cerent15216EdfaCommTrapCommunity "private" cerent15216EdfaCommTrapDestIPAddress 172.22.87.50 cerent15216EdfaCommTrapDestUDPPort 162 cerent15216EdfaCommTrapViewIndex 1 cerent15216EdfaCommTrapVersion v2 cerent15216EdfaCommTrapStatus 4

ash:hostname:ONS15216 EDFA2>

5.5.3 Set Agent Trap Enable

Command

snmp attribute set local cerent15216EdfaAgentTrapEnable

Syntax Description snmp attribute set local cerent15216EdfaAgentTrapEnable control

Enables or disables SNMP traps depending on whether the parameter control is “enabled” or “disabled”.

Cisco ONS 15216 EDFA2 Operations Guide

 

78-16033-01

5-23

 

 

 

Page 85
Image 85
Cisco Systems 15216 EDFA2 manual Set Trap Command, Set Agent Trap Enable, Snmp row set local cerent15216EdfaCommTrapEntry