![]() |
Cisco ONS 15200 Command Line Interface Administrator Manual, Release 1.0
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Chapter 4, Commands and Procedures
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table of ContentsCommands and Procedures4.1 Commit
4.1.1 Purpose
4.2 Configure System4.1.2 Input Format 4.1.3 Input Parameters 4.1.4 Normal Response 4.1.5 Error Response 4.1.6 Response Parameters 4.1.7 Normal Response Example 4.2.1 Purpose
4.3 Configure User4.2.2 Input Format 4.2.3 Normal Response Format 4.2.4 Error Response Format 4.2.5 Response Parameters 4.2.6 Normal Response Example 4.3.1 Purpose
4.4 Create User4.3.2 Input Format 4.3.3 Input Parameters 4.3.4 Normal Response Format 4.3.5 Error Response Format 4.3.6 Response Parameters 4.3.7 Normal Response Example 4.4.1 Purpose
4.5 Delete User4.4.2 Input Format 4.4.3 Input Parameters 4.4.4 Normal Response Format 4.4.5 Error Response Format 4.4.6 Normal Response Example 4.5.1 Purpose
4.6 Display User4.5.2 Input Format 4.5.3 Input Parameters 4.5.4 Normal Response Format 4.5.5 Error Response Format 4.5.6 Response Parameters 4.5.7 Normal Response Example 4.6.1 Purpose
4.7 Exit4.6.2 Input Format 4.6.3 Input Parameters 4.6.4 Normal Response Format 4.6.5 Error Response Format 4.6.6 Response Parameters 4.6.7 Normal Response Example 4.8 <parameter> 4.8.1 Purpose
4.9 Password4.8.2 Input format 4.8.3 Input Parameters 4.8.4 Normal Response 4.8.5 Error Response 4.8.6 Response Parameters 4.8.7 Normal Response Example 4.8.8 Response Example 4.9.1 Purpose
4.10 Show User4.9.2 Input Format 4.9.3 Normal Response Format 4.9.4 Response Parameters 4.9.5 Normal Response Example 4.9.6 Error Response Example 4.10.1 Purpose
4.11 Whoami4.10.2 Input Format 4.10.3 Input Parameters 4.10.4 Normal Response Format 4.10.5 Error Response Format 4.10.6 Response Parameters 4.10.7 Normal Response Example 4.11.1 Purpose
4.12 System Configuration Commands4.11.2 Input Format 4.11.3 Input Parameters 4.11.4 Normal Response Format 4.11.5 Error Response Format 4.11.6 Response Parameters 4.11.7 Normal Response Example 4.12.1 Defrag
4.13 QDBS Database Access Commands4.12.1.1 Purpose
4.12.2 Format4.12.1.2 Input Format 4.12.1.3 Input Parameters 4.12.1.4 Normal Response Format 4.12.1.5 Error Response Format 4.12.1.6 Response Parameters 4.12.1.7 Normal Response Example 4.12.2.1 Purpose
4.12.3 FSCHK4.12.2.2 Input Format 4.12.2.3 Input Parameters 4.12.2.4 Normal Response Format 4.12.2.5 Error Response Format 4.12.2.6 Response Parameters 4.12.2.7 Normal Response Example 4.12.3.1 Purpose
4.12.4 Ipconf4.12.3.2 Input Format 4.12.3.3 Input Parameters 4.12.3.4 Normal Response Format 4.12.3.5 Error Response Format 4.12.3.6 Response Parameters 4.12.3.7 Normal Response Example 4.12.4.1 Purpose
4.12.5 lpfilt4.12.4.2 Input Format 4.12.4.3 Input Parameters 4.12.4.4 Normal Response Format 4.12.4.5 Error Response Format 4.12.4.6 Response Parameters 4.12.4.7 Normal Response Example 4.12.5.1 Purpose
4.12.6 ldboot4.12.5.2 Input Format 4.12.5.3 Input Parameters 4.12.5.4 Normal Response Format 4.12.5.5 Error Response Format 4.12.5.6 Response Parameters 4.12.5.7 Normal Response Example 4.12.6.1 Purpose
4.12.7 List4.12.6.2 Input Format 4.12.6.3 Input Parameters 4.12.6.4 Normal Response Format 4.12.6.5 Error Response Format 4.12.6.6 Response Parameters 4.12.6.7 Normal Response Example 4.12.7.1 Purpose
4.12.8 Macaddr4.12.7.2 Input Format 4.12.7.3 Input Parameters 4.12.7.4 Normal Response Format 4.12.7.5 Error Response Format 4.12.7.6 Response Parameters 4.12.7.7 Normal Response Example 4.12.8.1 Purpose
4.12.9 Page4.12.8.2 Input Format 4.12.8.3 Input Parameters 4.12.8.4 Normal Response Format 4.12.8.5 Error Response Format 4.12.8.6 Response Parameters 4.12.8.7 Normal Response Example 4.12.9.1 Purpose
4.12.10 Reboot4.12.9.2 Input Format 4.12.9.3 Input Parameters 4.12.9.4 Normal Response Format 4.12.9.5 Error Response Format 4.12.9.6 Response Parameters 4.12.9.7 Normal Response Example 4.12.10.1 Purpose
4.12.11 Remove4.12.10.2 Input Format 4.12.10.3 Input Parameters 4.12.10.4 Normal Response Format 4.12.10.5 Error Response Format 4.12.10.6 Response Parameters 4.12.10.7 Normal Response Example 4.12.11.1 Purpose
4.12.12 Syslog4.12.11.2 Input Format 4.12.11.3 Input Parameters 4.12.11.4 Normal Response Format 4.12.11.5 Error Response Format 4.12.11.6 Response Parameters 4.12.11.7 Normal Response Example 4.12.12.1 Purpose
4.12.13 Time4.12.12.2 Input Format 4.12.12.3 Input Parameters 4.12.12.4 Normal Response Format 4.12.12.5 Error Response Format 4.12.12.6 Response Parameters 4.12.12.7 Normal Response Example 4.12.13.1 Purpose
4.12.14 Version4.12.13.2 Input Format 4.12.13.3 Input Parameters 4.12.13.4 Normal Response Format 4.12.13.5 Error Response Format 4.12.13.6 Response Parameters 4.12.13.7 Normal Response Example 4.13.1 List
4.14 Procedure: Back Up the Database (Windows)4.13.1.1 Purpose
4.13.2 Source4.13.1.2 Input Format 4.13.1.3 Input Parameters 4.13.1.4 Normal Response Format 4.13.1.5 Error Response Format 4.13.1.6 Response Parameters 4.13.1.7 Normal Response Example 4.15 Procedure: Upgrade the Sub-Network Manager (Windows) Commands and ProceduresThis chapter provides detailed descriptions of the ONS 15200 Command Line Interface commands supported by ONS 15200 system network elements (NE), as well as procedures for some commonly performed tasks. Commands are sent asynchronously during active sessions. To issue ONS 15200 Command Line Interface commands, the user must be connected to an NE and must have adequate permission. ONS 15200 Command Line Interface commands are divided into several groups. These groups allow the user to quickly identify the type of command and the level at which the command is issued. 4.1 Commit
4.1.1 PurposeThe commit command stores the current properties of an object in the flash memory of the Network Control Board (NCB) module. A committed object will automatically be restored after the system has been restarted. If <name> is omitted, all objects of the specified type are committed. 4.1.2 Input Formatcommit <object type> [<name>] 4.1.3 Input Parameters
4.1.4 Normal ResponseA normal response to the commit command is a blank command line. 4.1.5 Error ResponseResponses indicating errors have the following format:
4.1.6 Response Parameters
4.1.7 Normal Response ExampleNCB:> commit user myuser NCB:> 4.2 Configure System
4.2.1 PurposeThe configure system command is used to enter the system configuration mode. In system configuration mode, the operator can perform tasks such as defragmenting the file system, setting page lengths, executing command files, and other similar system functions. The functions are: defrag <dev>: Defrag file system exit: Exit system mode format <dev> Format file system fschk <dev>: Check file system ipconf [<ipaddr><mask><gateway>]: Get/set the IP address ldboot [<dev> <filename> <count>]: View/Load/Unload boot ipfilt add|list|remove|set|commit: Update the IP filter c [<drive> <filename> <tries>]: View/load/unload boot vector list <dev>: List files macaddr: System MAC address page [<len>]: Get/set page length password: Set new password remove <dev> <filename> Remove files reboot: System reboot source <filename>: Execute a command file syslog: Display system log time [<yyyy:mm:dd> <hh:mm:ss>]: Get/set system time version: Display software and hardware version whoami: Current user 4.2.2 Input Formatconfigure system 4.2.3 Normal Response FormatNCB:>configure system NCB:= 4.2.4 Error Response Format-- Not enough access -- -- Path not found -- -- Insufficient size -- 4.2.5 Response ParametersNone. 4.2.6 Normal Response ExampleNCB:>configure system NCB:=? defrag <dev> exit format <dev> fschk <dev> ipconf [<ipaddr><mask><gateway>] ipfilt add|list|remove|set|commit| ldboot [<dev> <filename> <count>] list <dev> macaddr page [<len>] password reboot remove <dev><filename> source <filename> syslog time [<yyyy:mm:dd><hh:mm:ss>] version whoami NCB:= 4.3 Configure User
4.3.1 PurposeThe configure user command is used to modify the properties of a user. Table 4-1 shows the user parameters. Table 4-1: User Privileges
4.3.2 Input Formatconfigure user <user name> See Table 4-1 for a description of the parameters. 4.3.3 Input Parameters
4.3.4 Normal Response FormatConfigure `<user name>' <user name>:# 4.3.5 Error Response Format-- Not enough access -- -- Wrong number of arguments [configure user <user name>] -- -- Missing argument -- -- Unexpected reply code <error code> -- 4.3.6 Response Parameters
4.3.7 Normal Response ExampleNCB:>configure user testguest Configure `testguest' testguest:#list value testguest: password *** privileges guest state offline timeout 30 4.4 Create User
4.4.1 PurposeThe create user command is used to add a new system user. Each user has a set of parameters. See Table 4-1 for a description of the user parameters. Note The user name cannot begin with a digit. 4.4.2 Input Formatcreate user <user name> 4.4.3 Input Parameters
4.4.4 Normal Response FormatNCB:>create user <user name> <user name>:# 4.4.5 Error Response Format-- Not enough access -- -- Path not found -- -- Insufficient size -- -- Wrong number of arguments [create user <name>] -- -- Missing argument -- -- Could not create `name' -- -- User name `name' too short; minimum 6 characters -- -- User name `name' too long; maximum 30 characters -- -- Item named `name' already exists -- -- Name `name' does not follow naming convention -- -- Unexpected reply code <error code> -- 4.4.6 Normal Response ExampleNCB:>create user myuser myuser:#l v myuser: password **** privileges guest state offline timeout 30 myuser:#password firstpassword myuser:#privileges operator myuser:#l v myuser: password **** privileges operator state offline timeout 30 myuser:# 4.5 Delete User
4.5.1 PurposeThe delete user command is used to remove users from the system database. 4.5.2 Input Formatdelete user <user name> 4.5.3 Input Parameters
4.5.4 Normal Response FormatNCB:>delete user <user name> Deleted: `<user name>' NCB:> 4.5.5 Error Response Format-- Not enough access -- -- Item not found -- -- Wrong number of arguments [delete user <name>] -- -- Unexpected reply code <error code> -- 4.5.6 Response Parameters
4.5.7 Normal Response ExampleNCB:>delete user myuser Deleted: `myuser' NCB:> 4.6 Display User
4.6.1 PurposeThe display user command lists properties of a user. 4.6.2 Input Formatdisplay user <user name> 4.6.3 Input Parameters
4.6.4 Normal Response FormatNCB:>display user <user name> Display `<user name>' <user name>:> 4.6.5 Error Response Format-- Not enough access -- -- Insufficient size -- -- Wrong number of arguments [display user <name>] -- -- Missing argument -- -- Unexpected reply code <error code> -- 4.6.6 Response Parameters
4.6.7 Normal Response ExampleNCB:>display user sdsguest Display 'sdsguest' sdsguest:> 4.7 Exit
4.7.1 PurposeThe exit command closes the current ONS 15200 Command Line Interface mode. When this command is issued at the NCB:> prompt, the telnet session is terminated. 4.7.2 Input Formatexit 4.7.3 Normal Response FormatNCB:=exit NCB:> 4.7.4 Normal Response Examplemyuser:>exit NCB:> 4.8 <parameter>
4.8.1 PurposeThe objects in the SNM database have tree structures. They consist of nodes and leaves, where the leaves contain the parameter values. The nodes and leaves may have different access rights. Some leaves may be possible to modify while other may contain read-only values. The values and structure of the objects can be viewed by the list command described above or by simply typing the relative path (the <parameter> command). Typing the path of a leaf followed by a `?' character prints the list of possible value to write. Printing a valid value will write the value to the leaf, omitting it will read the current value. 4.8.2 Input format[<path>]*<parameter> [<path>]*<parameter> <new value> 4.8.3 Input Parameters
4.8.4 Normal ResponseThe value of the read parameter 4.8.5 Error Response-- Not enough access -- -- Path not found -- 4.8.6 Response ParametersNone. 4.8.7 Normal Response Examplemyuser:#privileges operator 4.8.8 Response Examplemyuser:#privileges 4.9 Password
4.9.1 PurposeThe password command is used to change the password of the current logged-in user. The command will prompt for the new password and then will ask for a confirmation of the new password. If the two passwords are identical, the new password is automatically committed. he password can be set to any string that contains at least 6 characters and up to 30 characters. Valid characters are a through z, 0 through 9, A through Z, and the "_" (underscore) character. 4.9.2 Input Formatpassword 4.9.3 Normal Response FormatNCB:>password Type new password: ****** Confirm new password: ****** NCB:> 4.9.4 Response Parameters
4.9.5 Normal Response ExampleNCB:>password Type new password: ****** Confirm new password: ****** NCB:> 4.9.6 Error Response Example-- Confirmation failed, password not changed -- -- Password too short, minimum length is 6 characters -- -- Aborted, password not changed -- 4.10 Show User
4.10.1 PurposeThe show user command lists all users in the network. Information about privilege level and logon status (i.e. online, offline, suspended, or disabled) also appears. If only a specific user is of interest, that user's name can be specified as a parameter. If all is specified as a parameter, all internal users are listed. See Table 4-1 for more information on user parameters. 4.10.2 Input Formatshow user [all|<name>] 4.10.3 Input ParametersNone. 4.10.4 Normal Response Format
4.10.5 Error Response FormatNone. 4.10.6 Response Parameters
4.10.7 Normal Response ExampleThe normal response example is identical to the response format in Paragraph 4.10.4. 4.11 Whoami
4.11.1 PurposeThe whoami command displays the current user and user privilege (administrator, operator, guest user). 4.11.2 Input Formatwhoami 4.11.3 Input ParametersNone. 4.11.4 Normal Response Format[user name] [user access level] 4.11.5 Error Response FormatNone. 4.11.6 Response Parameters
4.11.7 Normal Response ExampleThe normal response example is identical to the response format in Paragraph 4.10.4. 4.12 System Configuration CommandsThis group of commands is used to configure the system on the lowest level. This level includes items such as the real-time clock, IP address, boot sequence, and other related commands. A list of the available commands follows. These commands are available after using the configure system command (Paragraph 4.2). 4.12.1 Defrag
4.12.1.1 PurposeThe defrag command is used to remove files from the file system on the NCB module. When a file is deleted, it is marked for deletion, but it is not removed until the defrag command is run or the system is rebooted. Note This command can take up to 30 seconds to complete. 4.12.1.2 Input Formatdefrag <device> 4.12.1.3 Input Parameters
4.12.1.4 Normal Response FormatNCB:=defrag 0 4.12.1.5 Error Response FormatNone. 4.12.1.6 Response ParametersNone. 4.12.1.7 Normal Response ExampleNCB:>defrag 0 Defragmentation in progress... NCB:= 4.12.2 Format
4.12.2.1 PurposeThe format command reformats the specified device and erases all files. 4.12.2.2 Input Formatformat <device> 4.12.2.3 Input Parameters
4.12.2.4 Normal Response FormatNCB:= format 0 Format in progress... NCB:= 4.12.2.5 Error Response FormatWhen a nonexisting device number is entered: -- Error, no such device -- When no device is specified: -- Wrong number of arguments [format <dev>] -- 4.12.2.6 Response ParametersNone. 4.12.2.7 Normal Response ExampleNCB:= format 0 Format in progress... NCB:= 4.12.3 FSCHK
4.12.3.1 PurposeThe fschk command displays information, contents, and the status of the specified device of the file system. 4.12.3.2 Input Formatfschk <device> 4.12.3.3 Input Parameters
4.12.3.4 Normal Response FormatNCB:= fschk 0 Number of files: 5 Number of deleted files: 0 1147467 bytes used 949681 bytes left NCB:= 4.12.3.5 Error Response FormatWhen the device number is wrong: -- Error, no such device -- When no device is specified: -- Missing argument [fschk <dev>] -- 4.12.3.6 Response ParametersNone. 4.12.3.7 Normal Response ExampleNCB:= fschk 0 Number of files: 5 Number of deleted files: 0 1147467 bytes used 949681 bytes left NCB:= 4.12.4 Ipconf
4.12.4.1 PurposeThe ipconf command is used to set or modify the IP properties of the Subnetwork Manager (SNM). This command assigns an IP address, a subnet mask, and a default gateway to the NCB module. When the module is started for the first time it does not have an IP address. The only way to communicate with the module is via the RS232 port using the ipconf command. 4.12.4.2 Input Formatipconf [<ip address> <subnet mask> <default gateway>] 4.12.4.3 Input Parameters
4.12.4.4 Normal Response FormatNCB:=ipconf IP address: 10.52.18.225 Subnet mask: 255.255.255.0 Default gateway: 10.52.18.1 NCB:= ------------------------------------------------------------------------- NCB:=ipconf 192.10.23.45 255.255.255.0 192.10.23.1 IP address set, please reboot... NCB:= 4.12.4.5 Error Response Format-- Error, could not read IP address parameters -- -- Error, invalid IP address -- -- Error, invalid subnet mask -- -- Error, invalid default gateway -- 4.12.4.6 Response ParametersNone. 4.12.4.7 Normal Response ExampleNCB:=ipconf IP address: 10.52.18.225 Subnet mask: 255.255.255.0 Default gateway: 10.52.18.1 NCB:= ------------------------------------------------------------------------- NCB:=ipconf 192.10.23.45 255.255.255.0 192.10.23.1 IP address set, please reboot... NCB:= 4.12.5 lpfilt
4.12.5.1 PurposeThe ipfilt command is used to control which IP addresses are accepted by the system. By default the system will allow IP packages from any host to enter the system, but this can be insecure. The system has the ability to accept only hosts or host IP addresses that match a specified mask. There are five subcommands related to the ipfilt command: The ipfilt add command adds individual acceptable IP addresses. The ipfilt set command adds or modifies an IP address mask (note that only one mask is allowed). IP addresses that match the mask are either accepted or rejected depending on the <code> parameter. The ipfilt list command displays the current filter list. All entries, apart from the filter, are assigned an entry number. The ipfilt remove command removes selected IP addresses from the filter list. All entries in the list are assigned an entry number that must be specified when the ipfilt remove command is issued. The ipfilt commit command stores the current settings. The filtering mechanism will not allow the presence of filters (masks) that prevent the current user from accessing the system, unless access is explicitly granted by a separate IP address entry. This safeguard prevents the user from creating a filter that block the user's username. 4.12.5.2 Input Formatipfilt add <ipaddress> ipfilt commit ipfilt list ipfilt remove <entryno> ipfilt set <mask> <code> 4.12.5.3 Input Parameters
4.12.5.4 Normal Response FormatNCB:=ipfilt list IP filter mask: 0 IP filter code: 0 0: 10.52.18.225 1: 144.254.121.137 NCB:= --------------------------- NCB:=ipfilt remove 0 NCB:= --------------------------- NCB:=ipfilt set 0 2432596361 NCB:= -------------------------- NCB:=ipfilt commit NCB:= 4.12.5.5 Error Response Formatipfilt set -- Error, new filter will not accept your IP address -- -- Wrong number of arguments [ipfilt set <mask> <code>] -- ipfilt add -- Wrong number of arguments [ipfilt add <ipaddr>] -- ipfilt remove -- Wrong number of arguments [ipfilt remove <ipaddr seqno>] -- -- Error, new filter will not accept your IP address -- -- Error, IP address number out of range -- 4.12.5.6 Response ParametersNone. 4.12.5.7 Normal Response ExampleNCB:=ipfilt list IP filter mask: 4294967295 IP filter code: 0 0: 127.0.0.1 NCB:=ipfilt remove 0 NCB:= --------------------------- NCB:=ipfilt remove 0 NCB:= --------------------------- NCB:=ipfilt set 0 2432596361 NCB:= -------------------------- NCB:=ipfilt commit NCB:= 4.12.6 ldboot
4.12.6.1 PurposeThe ldboot command is used to specify which application program to start when the system is booting. After setting up the NCB module, the boot software searches for an application to run. The application is specified by the ldboot command followed by a drive number and a number of tries. Currently, only drive 0 is supported. The number of tries prevents a malfunctioning application from blocking the system. An application is only granted a specified number of tries. When the number of tries has been exceeded, the system will enter boot mode again and the user can replace the malfunctioning combination of database (qdbs.cfg) and binary (snm.out) files. Note The recommended number of tries is 10. Running the ldboot command without arguments will display the current boot record settings, while running the ldboot command with arguments will update the boot record settings. 4.12.6.2 Input Formatldboot [<drive> <filename> <tries>] 4.12.6.3 Input Parameters
4.12.6.4 Normal Response FormatNCB:=ldboot Boot image: /0/snm.out [2] NCB:= ------- NCB:=ldboot 0 snm.out 2 NCB:= 4.12.6.5 Error Response Format-- Wrong number of arguments [ldboot [<drive> <filename> <tries>]] -- -- Error, no such device -- 4.12.6.6 Response ParametersNone. 4.12.6.7 Normal Response ExampleNCB:=ldboot Boot image: /0/snm.out [2] NCB:= ------- NCB:=ldboot 0 snm.out 2 NCB:= 4.12.7 List
4.12.7.1 PurposeThe list command displays a list of the files in the onboard file system. The NCB module has an onboard file system that contains the application and configuration files. Currently, only device 0 is available. 4.12.7.2 Input Formatlist <device> 4.12.7.3 Input Parameters
4.12.7.4 Normal Response FormatNCB:=list 0 Thu Sep 4 19:47:14 1980 2582 network.cfg Thu Sep 4 17:58:25 1980 41 sys_inet.sys Fri Mar 3 20:12:49 1972 39213 qdbs.cfg Thu Sep 4 19:30:54 1980 1104832 snm.out Tue Feb 20 18:58:42 2001 599 users.cfg NCB:= 4.12.7.5 Error Response Format-- Error, no such device -- -- Wrong number of arguments [list <dev>] -- 4.12.7.6 Response ParametersNone. 4.12.7.7 Normal Response ExampleNCB:=list 0 Thu Sep 4 19:47:14 1980 2582 network.cfg Thu Sep 4 17:58:25 1980 41 sys_inet.sys Fri Mar 3 20:12:49 1972 39213 qdbs.cfg Thu Sep 4 19:30:54 1980 1104832 snm.out Tue Feb 20 18:58:42 2001 599 users.cfg NCB:= 4.12.8 Macaddr
4.12.8.1 PurposeThe macaddr command displays the MAC address (i.e., the Ethernet address) of the NCB module. The MAC address is set when the module is manufactured and cannot be changed. 4.12.8.2 Input Formatmacaddr 4.12.8.3 Input ParametersNone. 4.12.8.4 Normal Response FormatNCB:=macaddr MAC address: 00-01-64-ff-c7-03 NCB:= 4.12.8.5 Error Response Format-- Error, invalid MAC address -- 4.12.8.6 Response ParametersNCB:=macaddr MAC address: 00-01-64-ff-c7-03 NCB:= 4.12.8.7 Normal Response Examplemacaddr 4.12.9 Page
4.12.9.1 PurposeThe page command sets the maximum number of rows printed before the user is prompted. Some command replies are extensive in length. In such cases, a limited number of rows are printed to the screen before the user is prompted. At the prompt the user can press the Enter key to obtain one more row, or the Spacebar to obtain one more page. The length of a page is specified by the page command. 4.12.9.2 Input Formatpage <len> 4.12.9.3 Input Parameters
4.12.9.4 Normal Response FormatNCB:=page -- Current page length is 24 rows -- NCB:= ------------------ NCB:=page 26 -- New page length is 26 rows -- NCB:= 4.12.9.5 Error Response FormatNone. 4.12.9.6 Response ParametersNone. 4.12.9.7 Normal Response ExampleNCB:=page -- Current page length is 24 rows -- NCB:= ------------------ NCB:=page 26 -- New page length is 26 rows -- NCB:= 4.12.10 Reboot
4.12.10.1 PurposeThe reboot command restarts the system. The current Telnet or RS-232 connection is lost and must be re-established after the system restarts. Note The restart takes approximately one minute. 4.12.10.2 Input Formatreboot 4.12.10.3 Input ParametersNone. 4.12.10.4 Normal Response FormatNone. 4.12.10.5 Error Response FormatNone. 4.12.10.6 Response ParametersNone. 4.12.10.7 Normal Response ExampleNCB:=reboot 4.12.11 Remove
4.12.11.1 PurposeThe remove command deletes files from the NCB module file system. This command does not actually delete the file; it marks it for deletion. The file is deleted when the defrag command is issued or when the system is rebooted. 4.12.11.2 Input Formatremove <drive> <file> 4.12.11.3 Input Parameters
4.12.11.4 Normal Response Formatremove 0 netconf.cfg 4.12.11.5 Error Response Format-- Wrong number of arguments [remove <drive> <file>] -- -- Error, no such file -- -- Error, no such device -- 4.12.11.6 Response ParametersNone. 4.12.11.7 Normal Response ExampleNCB:=remove 0 file.txt NCB:= 4.12.12 Syslog
4.12.12.1 PurposeThe syslog command shows the internal low-level system log. The internal low-level system log contains low-level system events and errors. 4.12.12.2 Input Formatsyslog 4.12.12.3 Input ParametersNone. 4.12.12.4 Normal Response FormatNCB:=syslog Thu Jul 22 17:58:24 2000 Booted NMS 1.0(0.4) Sat Feb 3 01:02:02 2001 New time: 2001:02:03 01:02:02 Tue Feb 20 15:45:00 2001 New time: 2001:02:20 15:45:00 NCB:= 4.12.12.5 Error Response FormatNone. 4.12.12.6 Response ParametersNone. 4.12.12.7 Normal Response ExampleNCB:=syslog Thu Jul 22 17:58:24 2000 Booted NMS 1.0(0.4) Sat Feb 3 01:02:02 2001 New time: 2001:02:03 01:02:02 Tue Feb 20 15:45:00 2001 New time: 2001:02:20 15:45:00 NCB:= 4.12.13 Time
4.12.13.1 PurposeThe time command is used to read and set the current system time. When the time command is issued without parameters, the current time is presented. Both the date and time must be specified in order to set the current time. 4.12.13.2 Input Formattime [<yyyy:mm:dd> <hh:mm:ss>] 4.12.13.3 Input Parameters
4.12.13.4 Normal Response FormatIf no parameters are specified, the response is the current system time, in <yyy:mm:dd><hh:mm:ss> format. 4.12.13.5 Error Response Format-- Syntax error -- -- Wrong number of arguments [time or time <yyyy:mm:dd> <hh:mm:ss>] -- 4.12.13.6 Response ParametersNone. 4.12.13.7 Normal Response ExampleNCB:=time Thu Feb 22 13:59:01 2001 NCB:= ---------------------- NCB:=time 2001:02:22 13:44:00 NCB:= 4.12.14 Version
4.12.14.1 PurposeThe version command displays the following:
4.12.14.2 Input Formatversion 4.12.14.3 Input ParametersNone. 4.12.14.4 Normal Response FormatNCB:=version NCB Part No: 800-09474-01 NCB Revision No: 01 NCB Serial No: QEY05100217 SNM Part No: 36A0012 SNM Version No: 1.0(3.19) NCB:= 4.12.14.5 Error Response FormatNone. 4.12.14.6 Response ParametersNone. 4.12.14.7 Normal Response ExampleSee the "Normal Response Format" section above. 4.13 QDBS Database Access CommandsThis group of commands is used to manipulate the objects in the network database (QDBS). 4.13.1 List
4.13.1.1 PurposeThe list command lists all parameters at the current focus. The list command has three options: list parameter names, list parameter values, and list recurse values. The list parameter command displays only the parameter names. The list value command displays the parameter names and their current values. The list recurse command lists parameter names and their current values by recursively scanning the subnodes found. The list command also allows the user to specify a relative path to display other parameters below those at the current focus. 4.13.1.2 Input Formatlist parameter [<path>|..] list value [<path>|..] list recurse [<path>|..] 4.13.1.3 Input Parameters
4.13.1.4 Normal Response Formatclip_301:# list parameter status value hat hwt lwt lat unit pmvalue clip_301:# --------------------------- clip_301:#list value status normal value -18.8 dbm hat -5.3 dbm hwt -12.6 dbm lwt -21.0 dbm lat -27.5 dbm unit dmb pmvalue - - -20.1 -18.7 -17.8 clip_301: 4.13.1.5 Error Response Format-- Path not found-- 4.13.1.6 Response ParametersNone. 4.13.1.7 Normal Response ExampleSee the "Normal Response Format" section. 4.13.2 Source
4.13.2.1 PurposeThe source command changes the input stream. This command enables the Command Line Interface to read commands from a file specified by the <name> parameter. When the Command Line Interface reads an end-of-file (EOF) character, it automatically switches back to the original input stream. 4.13.2.2 Input Formatsource <file name> 4.13.2.3 Input Parameters
4.13.2.4 Normal Response FormatThe individual printouts from the commands in the specified file. 4.13.2.5 Error Response Format-- Error, no such file -- 4.13.2.6 Response ParametersNone. 4.13.2.7 Normal Response ExampleNCB:=source myfile.cmd 4.14 Procedure: Back Up the Database (Windows)Before you can back up the database, you must know the IP address of the system, as well as make sure your PC is properly configured to communicate to the 15200 system. Contact your system administrator for more information on your network configuration. If you want the database files to be saved in a particular folder, make sure the destination folder is created on your PC's C:\ drive. Perform the following steps to back up the 15200 database: Step 1 To open a command prompt window, select Start>Programs and select Command Prompt (it may be under Accessories). Step 2 At the C:\ prompt, type cd <foldername>, where foldername is the destination folder to which you want to save the database files. Press Enter. Step 3 To ftp the 15200, type ftp <ipaddress>, where ipaddress is the IP address of the 15200 system database you want to back up. Press Enter. Step 4 At the ftp prompt, log on as a user with administrator privileges. Step 5 To list all of the database files, type dir and press Enter. Step 6 Type get <filename>, where filename is the name of the first file that appears in the list, and press Enter. Step 7 Repeat Step 6 for all of the files listed after the dir command. Step 8 In your C:\ directory, find the destination folder and verify that all of the files you extracted are there. Step 9 Close the ftp window. The procedure for backing up the database is complete. 4.15 Procedure: Upgrade the Sub-Network Manager (Windows)Before you upgrade the Sub-Network Manager (SNM), perform the database back up procedure above, and obtain the location of the SNM upgrade files on your PC. You must also be connected to the 15200 via Ethernet over a cross-over or straight cable, depending on how you are connected to the network. Perform the following steps to upgrade the SNM: Step 1 To telnet the 15200, type telnet <ipaddress>, where ipaddress is the IP address of the 15200 system to which you want to log in. Press Enter. Step 2 Log on as a user with administrator privileges. Step 3 At the NCB:> prompt, type configure system and press Enter. Step 4 At the NCB:= prompt, type remove 0 qdbs.cfg and press Enter. Step 5 Type remove 0 snm.out, where snm.out is the name of the boot file, and press Enter. Step 6 Type defrag 0 and press Enter. (This process may take up to a minute.) Step 7 Type ldboot 0 snm.out 10 and press Enter. Step 8 Close the telnet session. Step 9 To copy the SNM upgrade files from your local drive, open a command prompt window by selecting Start>Programs and select Command Prompt (it may be under Accessories). Step 10 At the C:\ prompt, type cd <foldername>, where foldername is the folder where the new snm.out and qdbs.cfg files reside. Press Enter. Step 11 To ftp the 15200, type ftp <ipaddress>, where ipaddress is the IP address of the 15200 system to which you want to copy the SNM upgrade. Press Enter. Step 12 At the ftp prompt, log on as a user with administrator privileges. Step 13 Type ascii and press Enter. Step 14 Type put qdbs.cfg and press Enter. Step 15 Type bin and press Enter. Step 16 Type put snm.out and press Enter. Step 17 Close the ftp window. Step 18 To telnet the 15200, type telnet<ipaddress>, where ipaddress is the IP address of the 15200 system to which you want to log in. Press Enter. Step 19 Log in as a user with administrative privileges. Step 20 At the NCB:> prompt, type configure system and press Enter. Step 21 At the NCB:= prompt, type reboot and press Enter. The system will reboot with the upgraded SNM. The procedure for upgrading the SNM is complete.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|