|
|
Table Of Contents
6.1 Summary of Security Permissions for ASH Commands
6.2.1 srom cfg boot display Command
6.2.2 srom cfg boot modify Command
6.2.3 srom cfg ip display Command
6.2.4 srom cfg ip modify Command
6.2.5 pdm busmode display Command
6.2.6 pdm cfg threshold bus display Command
6.2.7 gain gain display Command
6.2.8 voa power input display Command
6.3.5 login and logoff Commands
6.4.2 shell more enable and disable Commands
6.4.3 shell status display Command
6.4.4 shell type modify Command
6.5 Flash File System Commands
6.6.1 snmp attribute get Command
6.6.2 snmp attribute list Command
6.6.3 snmp attribute set Command
6.6.4 snmp mib display Command
6.6.7 snmp row display Command
6.6.10 snmp subtree display Command
6.6.11 snmp subtree get Command
6.6.12 snmp subtree list Command
6.6.13 snmp table display Command
6.6.15 snmp table list Command
6.6.16 snmp tree attribute list Command
6.7.1 user entry create Command
6.7.3 user entry delete Command
6.7.4 user file display and user name display Commands
6.7.5 user inactivity modify and user inactivity display Commands
6.7.7 user active list Command
6.7.8 user active message send Command
6.8 Manufacturing Information Access Commands
6.8.1 snmp table display local entPhysicalEntry Command
6.8.2 snmp table display local cerent15216EdfaCommTrapEntry Command
6.10.1 manufacturer restore defaults passwords Command
6.10.2 manufacturer restore defaults all Command
ASH Commands
ASH commands are available in the ASH shell command line interface. ASH commands consist of proprietary commands and command-line SNMP instructions. This chapter is a reference of ASH commands that are used in advanced setup and troubleshooting. For provisioning the Cisco ONS 15216 EDFA2 using ASH commands, see "Provisioning with ASH and SNMP."
All commands discussed in this chapter are available to the default CISCO15 user and any other user with read_write_admin (RWA) access privileges. Users with read_write (RW) and read (R) access levels have access to a subset of the commands, as shown in Table 6-1.
6.1 Summary of Security Permissions for ASH Commands
Table 6-1 ASH Commands Security Permissions (Access Levels)
Command Description User Access Levels R RW RWAclear
Clears the shell screen.
See the "clear Command" section.Yes
Yes
Yes
backup system
Backs up configuration information to file.
See the "backup system Command" section.No
No
Yes
debug memory display
Displays memory.
Yes
Yes
Yes
error log display
Displays current error log.
No
Yes
Yes
exit
Exits the shell.
See the "exit Command" section.Yes
Yes
Yes
ffs bams display
Displays flash file system BAMS.
No
Yes
Yes
ffs block compress
Compresses flash file system block into spare.
No
Yes
Yes
ffs block display
Displays flash file system blocks.
No
Yes
Yes
ffs file copy
Copies flash file.
No
Yes
Yes
ffs file delete
Delete flash file.
No
Yes
Yes
ffs file display
Displays contents of flash file.
No
Yes
Yes
ffs file list
Displays the files in flash memory.
See the "ffs file list Command" section.No
Yes
Yes
ffs file rename
Renames flash file.
No
Yes
Yes
ffs format
Formats flash file system.
No
Yes
Yes
ffs status display
Displays current flash file system status.
No
Yes
Yes
ffs tftp get
Copies TFTP file to flash file system.
No
Yes
Yes
ffs tftp put
Copies flash file to TFTP file system.
No
Yes
Yes
ffs tftp record get
Copies record-based TFTP file to flash file.
No
Yes
Yes
ffs tftp record put
Copies record-based flash file to TFTP file.
No
Yes
Yes
flash block display
Displays flash memory.
No
No
Yes
flash boot erase
Erases flash boot sector.
No
No
Yes
flash boot program tftp
Programs flash from TFTP file.
No
No
Yes
flash chip block display
Displays chip block flash memory.
No
No
Yes
flash chip display
Displays flash chip information.
No
No
Yes
gain attenuation display
Displays target attenuation.
Yes
Yes
Yes
gain gain display
Displays gain setting.
See the "gain gain display Command" section.Yes
Yes
Yes
help
Gives help about commands.
See the "help Command" section.Yes
Yes
Yes
history
Displays the history list.
See the "history Command" section.Yes
Yes
Yes
login
Allows the user to log into shell.
See the "login and logoff Commands" section.Yes
Yes
Yes
logoff
Allows the user to log off of the shell.
See the login and logoff Commands.Yes
Yes
Yes
manufacturer clei display
Displays CLEI code.
Yes
Yes
Yes
manufacturer mode enable
Enables access to manufacturer commands.
No
No
Yes
manufacturer restore defaults all
Restores all settings to manufacturer defaults.
See the "manufacturer restore defaults all Command" section.No
No
Yes
manufacturer restore defaults passwords
Restores manufacturer password defaults.
See the "manufacturer restore defaults passwords Command" section.No
No
Yes
network host ftp
FTPs to remote host.
See the "FTP Command Line" sectionNo
Yes
Yes
network host ping
Pings remote host.
No
Yes
Yes
network host telnet
Telnets to remote host
No
Yes
Yes
pdm busmode display
Displays the bus mode (simplex or duplex).
See the "pdm busmode display Command" sectionYes
Yes
Yes
pdm cfg threshold bus display
Displays bus threshold configuration.
Yes
Yes
Yes
processor reset
Resets the CPU.
See the "processor reset Command" section.No
Yes
Yes
restore system
Restores configuration from backup file.
See the "restore system Command" section.No
No
Yes
shell lines set
Sets the number of shell lines.
See the "shell lines set Command" section.Yes
Yes
Yes
shell more disable
Disables more.
See the "shell more enable and disable Commands" section.Yes
Yes
Yes
shell more enable
Enables more.
See the "shell more enable and disable Commands" section.Yes
Yes
Yes
shell rows set
Sets the number of shell rows.
Yes
Yes
Yes
shell status display
Displays the shell status.
See the "shell status display Command" section.Yes
Yes
Yes
shell type display
Displays the default shell type.
Yes
Yes
Yes
shell type modify
Modifies the default shell type.
See the "shell type modify Command" section.No
No
Yes
snmp attribute get
Gets an attribute.
See the "snmp attribute get Command" section.No
Yes
Yes
snmp attribute list
Lists an attribute.
See the "snmp attribute list Command" section.No
Yes
Yes
snmp attribute oid get
get an attribute
No
Yes
Yes
snmp attribute oid set
set an attribute
No
Yes
Yes
snmp attribute set
Sets an attribute.
See the "snmp attribute set Command" section.No
Yes
Yes
snmp host ip get
Gets the IP address from host name.
No
Yes
Yes
snmp host name get
Gets the host name from IP address.
No
Yes
Yes
snmp mib display
Displays a MIB.
See the "snmp mib display Command" section.No
Yes
Yes
snmp mib get
Gets a MIB.
See the "snmp mib get Command" section.No
Yes
Yes
snmp mib list
Lists a MIB.
See the "snmp mib list Command" section.No
Yes
Yes
snmp pdu send
Sends a SNMP protocol data unit (PDU).
No
Yes
Yes
snmp row display
Displays a row.
See the "snmp row display Command" section.No
Yes
Yes
snmp row get
Gets a row.
See the "snmp row get Command" section.No
Yes
Yes
snmp row line set
Dumps a row.
No
Yes
Yes
snmp row oid display
Displays a row.
No
Yes
Yes
snmp row oid get
Gets a row.
No
Yes
Yes
snmp row oid set
Dumps a row.
No
Yes
Yes
snmp row set
Sets a row.
See the "snmp row set Command" section.No
Yes
Yes
snmp session version v1
Sets default SNMP session version to v1.
No
Yes
Yes
snmp session version v2C
Sets default SNMP session version to v2C.
No
Yes
Yes
snmp subtree display
Displays a subtree.
See the "snmp subtree display Command" section.No
Yes
Yes
snmp subtree get
Gets a subtree.
See the "snmp subtree get Command" section.No
Yes
Yes
snmp subtree list
Lists a subtree.
See the "snmp subtree list Command" section.No
Yes
Yes
snmp table display
Displays a table.
See the "snmp table display Command" section. See also "Display Trap Command" section, the "IP Address" section, and the "Alarm Entry" section.No
Yes
Yes
snmp table get
Gets a table.
See the "snmp table get Command" section.No
Yes
Yes
snmp table list
Lists a table.
See the "snmp table list Command" section.No
Yes
Yes
snmp trap send
Sends a SNMP trap.
No
Yes
Yes
snmp tree attribute list
Lists the attributes in the MIB.
See the "snmp tree attribute list Command" section.No
Yes
Yes
snmp tree mib list
Lists the MIBs in the MIB tree.
No
Yes
Yes
snmp tree oid display
Displays object identifier (OID) for a MIB tree object.
No
Yes
Yes
snmp tree syntax display
Displays the syntax of a MIB tree object.
No
Yes
Yes
snmp tree table provided list
Lists provided tables in the MIB tree.
No
Yes
Yes
srom cfg boot display
Displays the serial ROM boot content.
See the "srom cfg boot display Command" section.No
Yes
Yes
srom cfg boot modify
Modifies the serial ROM boot contents.
See the "srom cfg boot modify Command" section.No
Yes
Yes
srom cfg debug display
Displays one config (CFG) ROM byte.
No
No
Yes
srom cfg debug modify
Modifies one CFG ROM byte.
No
No
Yes
srom cfg display
Displays CFG ROM contents.
No
Yes
Yes
srom cfg ip display
Displays the serial ROM IP contents.
See the "srom cfg ip display Command" section.No
Yes
Yes
srom cfg ip modify
Modifies the serial ROM IP contents.
See the "srom cfg ip modify Command" sectionNo
Yes
Yes
srom cfg modify
Modifies CFG ROM contents.
No
Yes
Yes
srom id display
Displays serial ROM contents.
No
Yes
Yes
tl1c
TL1s to host.
Yes
Yes
Yes
user active list
Lists the active users.
See the "user active list Command" section.No
Yes
Yes
user active message send
Sends the message to all active users.
See the "user active message send Command" section.No
Yes
Yes
user entry create
Creates a new user.
See the "user entry create Command" section.No
No
Yes
user entry delete
Deletes the user.
See the "user entry delete Command" section.No
No
Yes
user entry edit
Edits an existing user entry.
See the "user entry edit Command" section.No
No
Yes
user file display
Displays the user names and information.
See the "user file display and user name display Commands" section.No
Yes
Yes
user inactivity display
Displays user inactivity times.
See the "user inactivity modify and user inactivity display Commands" section.Yes
Yes
Yes
user inactivity modify
Modifies user inactivity time.
See the "user inactivity modify and user inactivity display Commands" section.No
No
Yes
user name display
Displays the user name.
See the "user file display and user name display Commands" section.Yes
Yes
Yes
user passwd set
Sets the user password.
See the "user passwd set Command" section.Yes
Yes
Yes
user passwd set username
Sets another user's password.
See the "user passwd set Command" section.No
No
Yes
voa power input display
Displays VOA power input.
See the "voa power input display Command" section.Yes
Yes
Yes
6.2 Configuration Commands
The following commands are useful in configuring the ONS 15216 EDFA2:
•
srom cfg boot display Command
•
srom cfg boot modify Command
•
pdm cfg threshold bus display Command
•
voa power input display Command
6.2.1 srom cfg boot display Command
Command Types
srom cfg boot display
Syntax Description
srom cfg boot displayDisplays the serial ROM boot contents. Data displayed includes the IP address and file names. See Example 6-1.
Example 6-1 srom cfg boot display Command
ash:hostname:ONS15216 EDFA2> srom cfg boot displayBoot Count 2Boot Record 0 type 2 FlashIP Address 0.0.0.0Filename 15216EdfaSw_x.x.x_binBoot Record 1 type 2 FlashIP Address 0.0.0.0Filename 15216EdfaSw_y.y.y_binCRC-32 8bd3cb566.2.2 srom cfg boot modify Command
Command Types
srom cfg boot modify
Syntax Description
srom cfg boot modifyModifies the contents of the ROM boot. See Example 6-2.
Example 6-2 srom cfg boot modify Command
ash:hostname:ONS15216 EDFA2> srom cfg boot modifyBoot Count = 2Boot Record 0 type 1 TFTP2Filename = users/name/15216EdfaSw_x.x.x15216EdfaSw_x.x.xBoot Record 1 type 2 Flash2Filename = orion42715216EdfaSw_y.y.y
Note
Boot type 1 = TFTP and boot type 2 = Flash.
6.2.3 srom cfg ip display Command
Command Types
srom cfg ip display
Syntax Description
srom cfg ip displayDisplays the serial ROM IP contents. The ROM IP contents are shown, including IP address, subnet mask, default router address, and hostname. See Example 6-3.
Example 6-3 srom cfg ip display Command
ash:hostname:ONS15216 EDFA2> srom cfg ip displayShelf ID = 1IP Address = 192.168.60.168Subnet Mask = 255.255.255.0Default Router IP Address = 192.168.60.254Hostname = hostnameSW Config = 0x00000000CRC32 = 0x54f863a26.2.4 srom cfg ip modify Command
Command Types
srom cfg ip modify
Syntax Description
srom cfg ip modifyModifies the serial ROM IP contents. The user is prompted, row by row, to change the items listed in Example 6-4 .
Example 6-4 srom cfg ip modify Command
ash:hostname:ONS15216 EDFA2> srom cfg ip modifyShelf ID = 1IP Address = 192.168.60.168Subnet Mask = 255.255.255.0Default Router IP Address = 192.168.60.254Hostname = hostnameSW Config = 0x000000006.2.5 pdm busmode display Command
Command Types
pdm busmode display
Syntax Description
pdm busmode displayDisplays power bus mode (simplex or duplex).
6.2.6 pdm cfg threshold bus display Command
Command Types
pdm cfg threshold bus display
Syntax Description
pdm cfg threshold bus displayDisplays the minimum and maximum allowable power bus DC voltage.
Example 6-5 pdm cfg threshold bus display Command
ash:hostname:ONS15216 EDFA2> pdm cfg threshold bus displayBUS Threshold Low = 40000(mV)BUS Threshold High = 57000(mV)6.2.7 gain gain display Command
Command Types
gain gain display
Syntax Description
gain gain displayDisplays the gain setting for the ONS 15216 EDFA2.
Example 6-6 gain gain display Command
ash:hostname:ONS15216 EDFA2> gain gain displayTarget = 22000(mdB), Actual = 21985(mdB)6.2.8 voa power input display Command
Command Types
voa power input display
Syntax Description
voa power input displayDisplays variable optical attenuator (VOA) power input.
6.3 Administrative Commands
The following commands are useful in administering the ONS 15216 EDFA2:
6.3.1 clear Command
Command Types
clear
Syntax Description
clearClears content from the terminal window. An empty screen with a cursor appears.
6.3.2 exit Command
Command Types
exit
Syntax Description
exitEnds the session with the ONS 15216 EDFA2.
6.3.3 help Command
Command Types
help
Syntax Description
helpDisplays a list of all CLI commands for current user security level.
6.3.4 history Command
Command Types
history
Syntax Description
historyDisplays a list of commands issued by the user during that specific session. See Example 6-7.
Example 6-7 history Command
ash:hostname:ONS15216 EDFA2> historyuser active listuser active message send hiuser file displayuser entry createuser entry delete albertuser file displayuser name displayuser passwd sethelphistory6.3.5 login and logoff Commands
Command Types
login or logoff
Syntax Description
login or logoffUsed to access and exit communication with the ONS 15216 EDFA2. Logging into the module requires both a user name and a password. Only use these commands if you have stopped the booting process or are displaying the format for logging into the module. Type the command, the first few letters of the attribute, and press the Tab key to view a list of attributes that can be set. See Example 6-8.
Example 6-8 login Command
ash:hostname:ONS15216 EDFA2> loginParametersuser_name (string[0..10]) name of user6.3.6 processor reset Command
Command Types
processor reset
Syntax Description
processor resetResets the processor on the ONS 15216 EDFA2. Although the performance of the amplifier is not affected, the user must log in again.
6.4 Shell Commands
The following commands are useful in working with the shell within the ONS 15216 EDFA2 SNMP manager:
•
shell more enable and disable Commands
•
shell status display Command
6.4.1 shell lines set Command
Command Types
shell lines set
Syntax Description
shell lines set #linesSets the number of lines that can be viewed on the screen without pressing Enter. 40 lines per screen is recommended (maximum is 999).
6.4.2 shell more enable and disable Commands
Command Types
shell more enable or shell more disable
Syntax Description
shell more {enable | disable}The shell more enable command enables the more function, limiting the output that appears on the screen. When the more function is enabled, press Enter to view additional information on the screen.
The shell more disable command disables the more function.
6.4.3 shell status display Command
Command Types
shell status display
Syntax Description
shell status displayDisplays the current shell settings, including the number of shell lines, the number of shell rows, and whether the more setting is enabled or disabled. See Example 6-9.
Example 6-9 shell status display Command
ash:hostname:ONS15216 EDFA2> shell status displayShell Lines: 22Shell Rows : 80More : On6.4.4 shell type modify Command
Command Types
shell type modify
Syntax Description
shell type modify {tl1 | ash}Sets the shell type to TL1 or ASH for the ONS 15216 EDFA2's RS-232 (EIA/TIA-232) port (accessed via HyperTerminal) and the default TCP/IP port on the ONS 15216 EDFA2's LAN port (accessed via Telnet). The default is TL1. This command requires a system reboot using the processor reset command for changes to take effect.
To return to the ASH shell from the TL1 shell, use the command ED-NE-GEN. (See Step 3 in the "4.3 Log In via LAN Port Using Telnet (Optional), page 4-3" section.)6.5 Flash File System Commands
The flash file system (FFS) file commands allow the user to manage the number of files that are on the ONS 15216 EDFA2 Flash memory. Never erase the following files:
•
Two current versions of software (15216EdfaSw_x.x.x)
•
snmp.cfg
•
passwd
Because the snmp.cfg file contains important SNMP attributes, deleting this file would mean that the community and view tables would have to be reset before a remote user could access the ONS 15216 EDFA2 via SNMP.
EDFA software image files are named using a special naming convention. Do not change the file name when image files are downloaded from an FTP server onto the box in the field when using the FTP command shell of the ONS 15216 EDFA2.
6.5.1 ffs file list Command
Command Types
ffs file list
Syntax Description
ffs file listList the files on the ONS 15216 EDFA2 Flash memory. See Example 6-10.
Example 6-10 ffs file list Command
ash:hostname:ONS15216 EDFA2> ffs file list--------name-------- type status length rename_bam attributes15216EdfaSw_2.3.0 1 fffc xxxxxxx ffffffff ffffffffsnmp.bak 1 fffc 1709 00140001 ffffffffpasswd 2 fffc -1 ffffffff ffffffffsnmp.cfg 1 fffc 1709 ffffffff ffffffff15216EdfaSw_2.1.0 1 fffc 1681923 ffffffff ffffffff6.6 SNMP Commands
The SNMP commands are useful in working with the SNMP protocol to provision and configure the ONS 15216 EDFA2. When issuing these SNMP commands, the command syntax requires that the command must be followed by either the ONS 15216 EDFA2 IP address or the word "local".
SNMP commands are listed as follows:
•
snmp subtree display Command
•
snmp tree attribute list Command
6.6.1 snmp attribute get Command
Command Types
snmp attribute get
Syntax Description
snmp attribute get {IP_address | local} attribute_name indexAccesses and displays a specific MIB attribute. See Example 6-11.
Example 6-11 snmp attribute get Command
ash:hostname:ONS15216 EDFA2> snmp attribute get local sysDescrattributessysDescr "hostname, Hardware Rev B0, ONS15216 EDFA2, v2.1.9, Serial No DIT05470008, MAC Addr 00059a383d11"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-12.
Example 6-12 snmp attribute get Command List
ash:hostname:ONS15216 EDFA2> snmp attribute get local cerentcerent15216EdfaCommIndexcerent15216EdfaCommNamecerent15216EdfaCommViewIndexcerent15216EdfaCommPrivilegescerent15216EdfaCommSrcIPAddrcerent15216EdfaCommNetMaskcerent15216EdfaCommStatuscerent15216EdfaCommTrapIndexcerent15216EdfaCommTrapCommunitycerent15216EdfaCommTrapDestIPAddresscerent15216EdfaCommTrapDestUDPPortcerent15216EdfaCommTrapViewIndexcerent15216EdfaCommTrapVersioncerent15216EdfaCommTrapStatuscerent15216EdfaViewIndexcerent15216EdfaViewSubtreecerent15216EdfaViewMaskcerent15216EdfaViewTypecerent15216EdfaViewStatuscerent15216EdfaAgentTrapEnable...6.6.2 snmp attribute list Command
Command Types
snmp attribute list
Syntax Description
snmp attribute list {IP_address | local} attribute_nameLists the value of an attribute for all table rows. See Example 6-13.
Example 6-13 snmp attribute list Command
ash:hostname:ONS15216 EDFA2> snmp attribute list local cerent15216EdfaAlarmIDcerent15216EdfaAlarmID.1 = lcrnt1;cerent15216EdfaAlarmID.2 = lcrnt2;cerent15216EdfaAlarmID.3 = ltmp1;cerent15216EdfaAlarmID.4 = ltmp2;cerent15216EdfaAlarmID.5 = lpout;cerent15216EdfaAlarmID.6 = lpin;cerent15216EdfaAlarmID.7 = gain;cerent15216EdfaAlarmID.8 = ctmp;cerent15216EdfaAlarmID.9 = powerBusA;cerent15216EdfaAlarmID.10 = powerBusB;6.6.3 snmp attribute set Command
Command Types
snmp attribute set
Syntax Description
snmp attribute set {IP_address | local} attribute_name index new_valueSets the attribute for a MIB item. 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-14.
Example 6-14 snmp attribute set Command
ash:hostname:ONS15216 EDFA2> snmp attribute set local cerent15216EdfaAgentTrapEnable enabledsysContactsysNamesysLocationifAdminStatusatIfIndexatPhysAddressatNetAddressipForwardingipDefaultTTLipRouteDestipRouteIfIndexipRouteMetric1ipRouteMetric2ipRouteMetric3ipRouteMetric4ipRouteNextHopipRouteTypeipRouteAgeipRouteMaskipRouteMetric5...6.6.4 snmp mib display Command
Command Types
snmp mib display
Syntax Description
snmp mib display {IP_address | local} -allDisplays all writable MIB attributes (or all accessible attributes if the -all option is used).
6.6.5 snmp mib get Command
Command Types
snmp mib get
Syntax Description
snmp mib get {IP_address | local}Displays all MIB attributes. The data is output in two columns. The first column lists the attributes and indices and the second column lists the data. See Example 6-15.
Example 6-15 snmp mib get Command
ash:hostname:ONS15216 EDFA2> snmp mib get localattributessysDescr "mntuboot v0.0.0 ONS15216 EDFA2 v1.3.0, MAC Addr 0010b4000525"sysObjectID cerent15216EdfaNodesysUpTime 24703705sysContact ""sysName "sysname"sysLocation ""sysServices 0sysORLastChange 90indexsysORIndex 1attributessysORID snmpBasicCompliancesysORDescr ""sysORUpTime 24704075
6.6.6 snmp mib list Command
Command Types
snmp mib list
Syntax Description
snmp mib list {IP_address | local}Displays the values of all attributes supported by the SNMP agent. Example 6-16.
Example 6-16 snmp mib list Command
ash:hostname:ONS15216 EDFA2> snmp mib list localsysDescr.0 = "hostname v3.0.0 ONS15216 EDFA2 v2.1.1, Serial No DIT0533000P, MACAddr 00059a383d10";sysObjectID.0 = { cerent15216EdfaNode };sysUpTime.0 = 355920;sysContact.0 = "";sysName.0 = "sysname";sysLocation.0 = "";sysServices.0 = 0;sysORLastChange.0 = 135;sysORID.1 = { snmpBasicCompliance };sysORID.2 = { rs232Compliance };sysORDescr.1 = "";sysORDescr.2 = "";sysORUpTime.1 = 355925;sysORUpTime.2 = 355925;ifNumber.0 = 3;ifIndex.300 = 300;ifIndex.302 = 302;ifIndex.350 = 350;ifDescr.300 = "Intra-machine interface";ifDescr.302 = "Ethernet Interface";ifDescr.350 = "RS232 Interface";ifType.300 = softwareLoopback;ifType.302 = ethernetCsmacd;ifType.350 = rs232;ifMtu.300 = 0;ifMtu.302 = 1500;ifMtu.350 = 0;ifSpeed.300 = 0;ifSpeed.302 = 10000000;ifSpeed.350 = 19171;...6.6.7 snmp row display Command
Command Types
snmp row display
Syntax Description
snmp row display {IP_address | local} row_name indexDisplays a row. Use this command to obtain information to use with other commands. Type the command, the first few letters of the attribute, and press Tab to view a list of attributes that can be set. Type an attribute from the list to view its row data. See Example 6-17.
Example 6-17 snmp row display Command
ash:hostname:ONS15216 EDFA2> snmp row display local cerent15216Edfacerent15216EdfaCfgGroupcerent15216EdfaPumpCfgEntrycerent15216EdfaAlarmControlcerent15216EdfaStatusGroupcerent15216EdfaPumpStatusEntrycerent15216EdfaAlarmEntrycerent15216EdfaOpGroupash:hostname:ONS15216 EDFA2> snmp row display local cerent15216EdfaCfgGroupCLASS CERENT-MIB.cerent15216EdfaCfgGroup ::={cerent15216EdfaCfgSaved = true;cerent15216EdfaLpoutSetpoint = 1000;cerent15216EdfaLpoutDeviation = 200;cerent15216EdfaLpoutHysteresis = 100;cerent15216EdfaLOSThreshold = -2400;cerent15216EdfaLOSHysteresis = 100;cerent15216EdfaCtmpMin = 5;cerent15216EdfaCtmpMinHysteresis = 1;cerent15216EdfaCtmpMax = 65;cerent15216EdfaCtmpMaxHysteresis = 1;cerent15216EdfaCLEI = "CLEI";cerent15216EdfaPowerBusMode = duplex;cerent15216EdfaPowerBusDCVoltageMin = 480;cerent15216EdfaPowerBusDCVoltageMax = 570;cerent15216EdfaALSMode = enabled;6.6.8 snmp row get Command
Command Types
snmp row get
Syntax Description
snmp row get {IP_address | local} row_name indexAccesses a row. Use this command to obtain information to use with other commands. See Example 6-18.
Example 6-18 snmp row get Command
ash:hostname:ONS15216 EDFA2> snmp row get local cerent15216EdfaCfgGroupCfgSa Lpo Lpo Lpo LOST LOS C C Ct C CLEI PowerBu Pow Pow юALSModetrue 0 200 100 -3000 100 -5 1 65 1 ю"cisco" юduplex 420 570 disabled6.6.9 snmp row set Command
Command Types
snmp row set
Syntax Description
snmp row set {IP_address | local} row_name indexSets data within a row. Use the snmp row display command first to view the contents of data within a row. See Example 6-19.
Example 6-19 snmp row set Command
ash:hostname:ONS15216 EDFA2> snmp row set local cerent15216EdfaAlarmEntry 1cerent15216EdfaAlarmEnableStatus enabledcerent15216EdfaAlarmCfgPriority minor6.6.10 snmp subtree display Command
Command Types
snmp subtree display
Syntax Description
snmp subtree display {IP_address | local} subtreeDisplays the attributes below a node in a SNMP tree. See Example 6-20.
Example 6-20 snmp subtree display Command
ash:hostname:ONS15216 EDFA2> snmp subtree display local cerent15216EdfaCommunityEntryBEGIN-HOST "testhost" 0.0.0.0 "private"CLASS CERENT-15216-EDFA-MIB.cerent15216EdfaCommunityEntry ::={cerent15216EdfaCommIndex = 1;cerent15216EdfaCommName = "public";cerent15216EdfaCommViewIndex = 1;cerent15216EdfaCommPrivileges = 247;cerent15216EdfaCommSrcIPAddr = 0.0.0.0;cerent15216EdfaCommNetMask = 255.255.255.255;cerent15216EdfaCommStatus = active;};CLASS CERENT-15216-EDFA-MIB.cerent15216EdfaCommunityEntry ::={cerent15216EdfaCommIndex = 2;cerent15216EdfaCommName = "private";cerent15216EdfaCommViewIndex = 1;cerent15216EdfaCommPrivileges = 255;cerent15216EdfaCommSrcIPAddr = 0.0.0.0;cerent15216EdfaCommNetMask = 255.255.255.255;cerent15216EdfaCommStatus = active;...6.6.11 snmp subtree get Command
Command Types
snmp subtree get
Syntax Description
snmp subtree get {IP_address | local} subtreeAccesses a subtree. See Example 6-21.
Example 6-21 snmp subtree get Command
ash:hostname:ONS15216 EDFA2> snmp subtree get local sysDescrindexsysORIndex 1attributessysORID snmpBasicCompliancesysORDescr ""sysORUpTime 391985indexsysORIndex 2attributessysORID rs232CompliancesysORDescr ""sysORUpTime 3919903indexifIndex 300attributesifDescr "Intra-machine interface"ifType softwareLoopbackifMtu 0...6.6.12 snmp subtree list Command
Command Types
snmp subtree list
Syntax Description
snmp subtree list {IP_address | local}Lists the attributes below a node in a SNMP tree. See Example 6-22.
Example 6-22 snmp subtree list Command
ash:hostname:ONS15216 EDFA2> snmp subtree list localRootccittzeroDotZeroisoorgdodinternetdirectorymgmtmib-2systemsysDescrsysObjectIDsysUpTimesysContactsysNamesysLocationsysServicessysORLastChangesysORTable...ash:hostname:ONS15216 EDFA2> snmp subtree list local internetsysDescr.0 = "hostname v3.0.0 ONS15216 EDFA2 v2.3.0, Serial No DIT0533000P, MACAddr 00059a383d10";sysObjectID.0 = { cerent15216EdfaNode };sysUpTime.0 = 35913255;sysContact.0 = "";sysName.0 = "sysname";sysLocation.0 = "";sysServices.0 = 0;sysORLastChange.0 = 120;sysORID.1 = { snmpBasicCompliance };...6.6.13 snmp table display Command
Command Types
snmp table display
Syntax Description
snmp table display {IP_address | local}Displays table data for the ONS 15216 EDFA2. Example 6-23 displays the command entered without a table. After typing the command without a table and pressing the Tab key, a list of tables appears. Type the command with a table name to display the table and its data. Data displayed using this command are per rows. Attributes are grouped together in rows. See Example 6-23.
Example 6-23 snmp table display Command
ash:hostname:ONS15216 EDFA2> snmp table display localsystemsysOREntryinterfacesifEntryatEntryipipAddrEntryipRouteEntryipNetToMediaEntryipForwardipForwardEntryipCidrRouteEntryicmptcptcpConnEntryudpudpEntryegp...ash:hostname:ONS15216 EDFA2> snmp table display local systemCLASS SNMPv2-MIB.system ::={sysDescr = "hostname v3.0.0 ONS15216 EDFA2 v2.3.0, Serial No DIT0533000P, MAC Addr 00059a383d10";sysObjectID = { cerent15216EdfaNode };sysUpTime = 35942955;sysContact = "";sysName = "sysname";sysLocation = "";sysServices = 0;sysORLastChange = 120;};6.6.14 snmp table get Command
Command Types
snmp table get
Syntax Description
snmp table get {IP_address | local} tableAccesses table data. See Example 6-24.
Example 6-24 snmp table get Command
ash:hostname:ONS15216 EDFA2> snmp table get local systemattributessysDescr "hostname, Hardware Rev A1, ONS15216 EDFA2,v2.3.0, Serial No DIT0533000P, MAC Addr 00059a383d10"sysObjectID cerent15216EdfaNodesysUpTime 1330310sysContact "username"sysName "sysname"sysLocation "Lab"sysServices 0sysORLastChange 1256.6.15 snmp table list Command
Command Types
snmp table list
Syntax Description
snmp table list {IP_address | local} tableLists all the data within a table. Example 6-25 below displays the command for the UDP (User Datagram Protocol) table. This command displays data by attribute.
Example 6-25 snmp table list Command
ash:hostname:ONS15216 EDFA2> snmp table list local udpudpInDatagrams.0 = 11341;udpNoPorts.0 = 135;udpInErrors.0 = 1983;udpOutDatagrams.0 = 9233;udpLocalAddress.172.22.82.19.161 = 172.22.82.19;udpLocalPort.172.22.82.19.161 = 161;6.6.16 snmp tree attribute list Command
Command Types
snmp tree attribute list
Syntax Description
snmp tree attribute listLists all the attributes implemented by the SNMP agent. See Example 6-26.
Example 6-26 snmp tree attribute list Command
ash:hostname:ONS15216 EDFA2> snmp tree attribute listsysDescrsysObjectIDsysUpTimesysContactsysNamesysLocationsysServicessysORLastChangesysORIndexsysORIDsysORDescrsysORUpTimeifNumberifIndexifDescrifTypeifMtuifSpeedifPhysAddressifAdminStatusifOperStatus...6.7 User Commands
The following commands are useful in setting up and maintaining user accounts for the ONS 15216 EDFA2:
•
user file display and user name display Commands
•
user inactivity modify and user inactivity display Commands
•
user active message send Command
6.7.1 user entry create Command
Command Types
user entry create
Syntax Description
user entry create name user_modeCreates a new user. The parameters required to create a new user are user name, access level, and password.
The user_mode (access privilege level) is set by entering either read, read_write, or read_write_admin. See Table 6-1 for the command privileges of each user level. The password must be an ASCII string of up to 10 characters, where at least 2 are non-alphabetic characters with at least one special character. Special characters are +, #, and %. See Example 6-27.
Example 6-27 user entry create Command
ash:hostname:ONS15216 EDFA2> user entry create jdoe read_writeNew Password =**********Confirm New Password =**********6.7.2 user entry edit Command
Command Types
user entry edit
Syntax Description
user entry edit usernameEdit a user's parameters (name, password, and access level). This command uses the optional parameters shown at the beginning of Example 6-28. The -user_mode parameter changes the access level (read, read_write, or read_write_admin). If the password is not to be changed, hit the Enter key when the new password is requested and confirmed, as shown in Example 6-29. This keeps the password unchanged.
Example 6-28 user entry edit Command (Change Password)
ash:hostname:ONS15216 EDFA2> user entry editOptions-new_user_name (string[0..10]) new name of user-user_mode (string[0..16]) mode of userParametersuser_name (string[0..10]) name of userash:hostname:ONS15216 EDFA2> user entry edit jsmithNew Password =******Confirm New Password =******Example 6-29 user entry edit Command (Change Access Level)
ash:hostname:ONS15216 EDFA2> user entry edit jsmith -user_mode read_writeNew Password =Confirm New Password =6.7.3 user entry delete Command
Command Types
user entry delete
Syntax Description
user entry delete usernameDelete users. See Example 6-30.
Example 6-30 user entry delete Command
ash:hostname:ONS15216 EDFA2> user entry delete jdoe6.7.4 user file display and user name display Commands
Command Types
user file display or user name display
Syntax Description
user file display or user name displayType the user file display command to display a list of all the users and user information. Type the user name display command to display the name of the current user.
The access privilege level is set by entering either read, read_write, or read_write_admin. See Table 6-1 for the command privileges of each user level. Inactivity is the length of time of user inactivity before the user is automatically logged off. See Example 6-31.
Example 6-31 user file display Command
ash:hostname:ONS15216 EDFA2> user file displayUser Mode InactivityCISCO15 read_write_admin 15janedoe read_write 30jdoe read_write 30johndoe read 606.7.5 user inactivity modify and user inactivity display Commands
Command Types
user inactivity modify or user inactivity display
Syntax Description
user inactivity modify levelvalue or user inactivity displayInactivity is the length of time of user inactivity before the user is automatically logged off. Type the user inactivity modify command to change the inactivity values. Type the user inactivity display command to display the current inactivity values.
The default inactivity values for the read, read_write, and read_write_admin user access levels are 60, 30, and 15 minutes, respectively. Possible values are 0 to 99 (in minutes). A value of 0 means no timeout. See Example 6-32 and Example 6-33.
Example 6-32 user inactivity modify Command
ash:hostname:ONS15216 EDFA2> user inactivity modify read 75Example 6-33 user inactivity display Command
ash:hostname:ONS15216 EDFA2> user inactivity displayMode Inactivityread_write_admin 15read_write 30read 756.7.6 user passwd set Command
To restrict access to the ONS 15216 EDFA2, use the user passwd set command to change the default user password. Example 6-34 displays the user passwd set syntax for a current user. Example 6-35 displays the user passwd set username command for changing another user's password.
The password must be an ASCII string of up to 10 characters, where at least 2 are non-alphabetic characters with at least one special character. Special characters are +, #, and %. With the exception of the read_write_admin level user, the user can only modify their own password.
Example 6-34 Changing Current User's Password
ash:hostname:ONS15216 EDFA2> user passwd setPassword =*****New Password =*******Confirm New Password =*******Example 6-35 Changing Another User's Password
ash:hostname:ONS15216 EDFA2> user passwd set jdoePassword =****New Password =******Confirm New Password =******
Note
The default user name for the administrator level is CISCO15 with no default password. To start a session for this user name, press Enter.
6.7.7 user active list Command
Command Types
user active list
Syntax Description
user active listDisplays a list of the active users. See Example 6-36.
Example 6-36 user active list Command
ash:hostname:ONS15216 EDFA2> user active listUsersCISCO156.7.8 user active message send Command
Command Types
user active message send
Syntax Description
user active message send ["message"]Sends a message to all current users on the system. See Example 6-37.
Example 6-37 user active message send Command
ash:hostname:ONS15216 EDFA2> user active message sendParametersmessage (string[0..32]) message to sendash:hostname:ONS15216 EDFA2> user active message send "hello world"*** Broadcast Message:*** hello world6.8 Manufacturing Information Access Commands
6.8.1 snmp table display local entPhysicalEntry Command
Command Types
snmp table display local entPhysicalEntry
Syntax Description
snmp table display local entPhysicalEntryDisplays the entity information. See Example 6-38.
Example 6-38 snmp table display local entPhysicalEntry Command
ash:hostname:ONS15216 EDFA2> snmp table display local entPhysicalEntryCLASS ENTITY-MIB.entPhysicalEntry ::={entPhysicalIndex = 1;entPhysicalDescr = "ONS15216 EDFA2";entPhysicalVendorType = { cerent15216EdfaChassis };entPhysicalContainedIn = 0;entPhysicalClass = chassis;entPhysicalParentRelPos = -1;entPhysicalName = "hostname";entPhysicalHardwareRev = "A0";entPhysicalFirmwareRev = "v2.3.15";entPhysicalSoftwareRev = "v2.4.0";entPhysicalSerialNum = "DIT0533000P";entPhysicalMfgName = "Cisco Systems";entPhysicalModelName = "216EDFA2-A";entPhysicalAlias = "";entPhysicalAssetID = "";entPhysicalIsFRU = true;};6.8.2 snmp table display local cerent15216EdfaCommTrapEntry Command
Command Types
snmp table display local cerent15216EdfaCommTrapEntry
Syntax Description
snmp table display local cerent15216EdfaCommTrapEntryDisplays information about autonomous messages (SNMP traps) going to destination manager's location (IP address).
Example 6-39 snmp table display local cerent15216EdfaCommTrapEntry Command
ash:hostname:ONS15216 EDFA2> snmp table display local cerent15216EdfaCommTrapEntryCLASS CERENT-15216-EDFA-MIB.cerent15216EdfaCommTrapEntry ::={cerent15216EdfaCommTrapIndex = 1;cerent15216EdfaCommTrapCommunity = "private";cerent15216EdfaCommTrapDestIPAddress = 172.22.87.50;cerent15216EdfaCommTrapDestUDPPort = 162;cerent15216EdfaCommTrapViewIndex = 1;cerent15216EdfaCommTrapVersion = v2;cerent15216EdfaCommTrapStatus = active;};CLASS CERENT-15216-EDFA-MIB.cerent15216EdfaCommTrapEntry ::={cerent15216EdfaCommTrapIndex = 2;cerent15216EdfaCommTrapCommunity = "private";cerent15216EdfaCommTrapDestIPAddress = 172.22.87.254;cerent15216EdfaCommTrapDestUDPPort = 162;cerent15216EdfaCommTrapViewIndex = 1;cerent15216EdfaCommTrapVersion = v2;cerent15216EdfaCommTrapStatus = active;};6.9 Restore Commands
6.9.1 backup system Command
Command Types
backup system
Syntax Description
backup system filenameCreates a backup file on the FFS with the configuration information of the ONS 15216 EDFA2. This file contains manufacturing information about the unit that is being backed up (such as part number and serial number), setup information for the unit (such as IP address and host name), all configuration information (such as alarm thresholds and pump mode), and the user database.
6.9.2 restore system Command
Command Types
restore system
Syntax Description
restore system filenameRestores the configuration information from a backup file on the FFS to the ONS 15216 EDFA2. During this process, all configuration information (such as alarm thresholds and pump mode) and the user database from the file are replaced in the ONS 15216 EDFA2 memory and FFS. Before the restore begins, a cyclic redundancy code (CRC) check is performed to ensure data integrity.
6.10 Manufacturer Mode
A manufacturer mode enable command is available. It raises the root access level to the fifth and highest manufacturer level to allow undocumented commands that are used only for manufacturing purposes.
Warning
Customers are strongly cautioned not to use this mode.
6.10.1 manufacturer restore defaults passwords Command
Command Types
manufacturer restore defaults passwords
Syntax Description
manufacturer restore defaults passwordsRestores the manufacturing factory default passwords to the ONS 15216 EDFA2.
Note
If the password for the CISCO15 user is lost and there are not other users with read_write_admin access level in the system, the password for CISCO15 can be reset by following the procedure in "Lost Password" section.
6.10.2 manufacturer restore defaults all Command
Command Types
manufacturer restore defaults all
Syntax Description
manufacturer restore defaults allRestores the manufacturing factory settings to the ONS 15216 EDFA2 and resets the unit. The files on the flash file system (FFS), the date and time, and the values of manufacturing calibration are not affected. When this command is entered the unit resets itself.
Warning
This command resets the IP address, resets the hostname, deletes the user directory, reverts CISCO15 to the default password, and resets other parameters to restore the unit to its state as shipped from manufacturing.
Posted: Sun Apr 2 01:49:49 PST 2006
All contents are Copyright © 1992--2006 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.