Specifications

6-11
Cisco ONS 15216 EDFA2 Operations Guide
78-13908-02
Chapter 6 CLI Commands
SNMP Commands
Syntax: snmp attribute get hostname {attribute_name | index}
Description: Accesses and displays a specific MIB attribute. See Example 6-9.
Example 6-9 snmp attribute get Command
hostname:ONS15216 EDFA2> snmp attribute get local sysDescr
attributes
sysDescr "ONS15216 vx.x.x ONS15216 vx.x.x, Serial No
00000000100520, MAC Addr 0010b4000b12"
Type the command, the first few letters of the attribute, and press Tab to view a list of attributes that can
be set. See Example 6-10.
Example 6-10 snmp attribute get Command List
hostname:ONS15216 EDFA2> snmp attribute get local cerent
cerent15216EdfaCommIndex
cerent15216EdfaCommName
cerent15216EdfaCommViewIndex
cerent15216EdfaCommPrivileges
cerent15216EdfaCommSrcIPAddr
cerent15216EdfaCommNetMask
cerent15216EdfaCommStatus
cerent15216EdfaCommTrapIndex
cerent15216EdfaCommTrapCommunity
cerent15216EdfaCommTrapDestIPAddress
cerent15216EdfaCommTrapDestUDPPort
cerent15216EdfaCommTrapViewIndex
cerent15216EdfaCommTrapVersion
cerent15216EdfaCommTrapStatus
cerent15216EdfaViewIndex
cerent15216EdfaViewSubtree
cerent15216EdfaViewMask
cerent15216EdfaViewType
cerent15216EdfaViewStatus
cerent15216EdfaAgentTrapEnable
...
snmp attribute list Command
Command: snmp attribute list
Syntax: snmp attribute list {hostname attribute_name}
Description: Lists the attribute value of an attribute for all table rows. See Example 6-11.
Example 6-11 snmp attribute list Command
hostname:ONS15216 EDFA2> snmp attribute list local cerent15216EdfaAlarmID
cerent15216EdfaAlarmID.1 = lcrnt1;
cerent15216EdfaAlarmID.2 = lcrnt2;
cerent15216EdfaAlarmID.3 = ltmp1;
cerent15216EdfaAlarmID.4 = ltmp2;
cerent15216EdfaAlarmID.5 = lpout;
cerent15216EdfaAlarmID.6 = lpin;
cerent15216EdfaAlarmID.7 = gain;
cerent15216EdfaAlarmID.8 = ctmp;