The text of a manual · part 18 of 26
ORiNOCO AP-700 User Guide: Command Line Interface (CLI), pages 157 to 165
Pages 157 to 165 of 231, from ORiNOCO AP-700 User Guide
The original document is the PDF (4.6 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Proxim AP-700
Page 157
AP-700 User Guide
Command Line Interface (CLI)
A
This section discusses the following: •
General Notes
•
Command Line Interface (CLI) Variations
•
CLI Command Types
•
Using Tables and Strings
•
Configuring the AP using CLI commands
•
Set Basic Configuration Parameters using CLI Commands
•
Other Network Settings
•
CLI Monitoring Parameters
•
Parameter Tables
•
CLI Batch File
CLI commands can be used to initialize, configure, and manage the Access Point. •
CLI commands may be entered in real time through a keyboard or submitted with CLI scripts.
•
A CLI Batch file is a user-editable configuration file that provides a user-friendly way to change the AP configuration through a file upload. The CLI Batch file is an ASCII file that facilitates Auto Configuration because it does not require the user to access one of the AP’s management interfaces to make configuration changes as is required with the proprietary LTV format configuration file.
•
The CLI is available through both the Serial Port interface and over the Ethernet interface using Telnet.
NOTE: All CLI commands and parameters are case-sensitive.
157
Page 158
Command Line Interface (CLI) General Notes
AP-700 User Guide
General Notes Prerequisite Skills and Knowledge To use this document effectively, you should have a working knowledge of Local Area Networking (LAN) concepts, network access infrastructures, and client-server relationships. In addition, you should be familiar with software setup procedures for typical network operating systems and servers.
Notation Conventions •
Computer prompts are shown as constant width type. For example: [Device-Name]>
•
Information that you input as shown is displayed in bold constant width type. For example: [Device name]> set ipaddr 10.0.0.12
•
The names of keyboard keys, software buttons, and field names are displayed in bold type. For example: Click the Configure button.
•
Screen names are displayed in bold italics. For example, the System Status screen.
Important Terminology •
Configuration Files - Database files containing the current Access Point configuration. Configuration items include the IP Address and other network-specific values. Config files may be downloaded to the Access Point or uploaded for backup or troubleshooting.
•
Download vs. Upload - Downloads transfer files to the Access Point. Uploads transfer files from the Access Point. The TFTP server performs file transfers in both directions.
•
Group - A logical collection of network parameter information. For example, the System Group is composed of several related parameters. Groups can also contain Tables. All items for a given Group can be displayed with a show <Group> CLI Command.
•
Image File - The Access Point software executed from RAM. To update an Access Point you typically download a new Image File. This file is often referred to as the “AP Image”.
•
Parameter - A fundamental network value that can be displayed and may be changeable. For example, the Access Point must have a unique IP Address and the Wireless interface must be assigned an SSID. Change parameters with the CLI set Command, and view them with the CLI show Command.
•
Table - Tables hold parameters for several related items. For example, you can add several potential managers to the SNMP Table. All items for a given Table can be displayed with a show <Table> CLI Command.
•
TFTP - Refers to the TFTP Server, used for file transfers.
Navigation and Special Keys This CLI supports the following navigation and special key functions to move the cursor along the prompt line. Key Combination Delete or Backspace Ctrl-A Ctrl-E Ctrl-F Ctrl-B Ctrl-D Ctrl-U Ctrl-P Ctrl-N Ctrl-W
Operation Delete previous character Move cursor to beginning of line Move cursor to end of line Move cursor forward one character Move cursor back one character Delete the character the cursor is on Delete all text to left of cursor Go to the previous line in the history buffer Go to the next line in the history buffer Delete the previous word 158
Page 159
Command Line Interface (CLI) General Notes Key Combination Tab ?
AP-700 User Guide
Operation Complete the command line List available commands
CLI Error Messages The following table describes the error messages associated with improper inputs or expected CLI behavior. Error Message Description Syntax Error Invalid syntax entered at the command prompt. Invalid Command A non-existent command has been entered at the command prompt. Invalid Parameter Name An invalid parameter name has been entered at the command prompt. Invalid Parameter Value An invalid parameter value has been entered at the command prompt. Invalid Table Index An invalid table index has been entered at the command prompt. Invalid Table Parameter An invalid table parameter has been entered at the command prompt. Invalid Table Parameter Value An invalid table parameter value has been entered at the command prompt. Read Only Parameter User is attempting to configure a read-only parameter. Incorrect Password An incorrect password has been entered in the CLI login prompt. Download Unsuccessful The download operation has failed due to incorrect TFTP server IP Address or file name. Upload Unsuccessful The upload operation has failed due to incorrect TFTP server IP Address or file name.
159
Page 160
Command Line Interface (CLI) Command Line Interface (CLI) Variations
AP-700 User Guide
Command Line Interface (CLI) Variations Administrators use the CLI to control Access Point operation and monitor network statistics. The AP supports two types of CLI: the Bootloader CLI and the normal CLI. The Bootloader CLI provides a limited command set, and is used when the current AP Image is bad or missing. The Bootloader CLI allows you to assign an IP Address and download a new image. Once the image is downloaded and running, the Access Point uses the normal CLI. This guide covers the normal CLI unless otherwise specified.
Bootloader CLI The Bootloader CLI is a minimal subset of the normal CLI used to perform initial configuration of the AP. This interface is only accessible via the serial interface if the AP does not contain a software image or a download image command over TFTP has failed. The Bootloader CLI provides you with the ability to configure the initial setup parameters as well as download a software image to the device. The following functions are supported by the Bootloader CLI: • configuration of initial device parameters using the set command
• show command to view the device’s configuration parameters
• help command to provide additional information on all commands supported by the Bootloader CLI
• reboot command to reboot the device
The parameters supported by the Bootloader CLI (for viewing and modifying) are: •
System Name
•
IP Address Assignment Type
•
IP Address
•
IP Mask
•
Gateway IP Address
•
TFTP Server IP Address
•
Image File Name (including the file extension)
The following lists display the results of using the help command in the Bootloader CLI:
Figure A-1 Results of “help” bootloader CLI command The following lists display the results of using the show command in the Bootloader CLI:
160
Page 161
Command Line Interface (CLI) Command Line Interface (CLI) Variations
AP-700 User Guide
Figure A-2 Results of “show” bootloader CLI command
161
Page 162
Command Line Interface (CLI) CLI Command Types
AP-700 User Guide
CLI Command Types This guide divides CLI Commands into two categories: Operational and Parameter Controls.
Operational CLI Commands These commands affect Access Point behavior, such as downloading, rebooting, and so on. After entering commands (and parameters, if any) press the Enter key to execute the Command Line. Operational commands include: •
?: Typing a question mark lists CLI Commands or parameters, depending on usage (you do not need to type Enter after typing this command)
• done, exit, quit: Terminates the CLI session
• download: Uses a TFTP server to download “image” files, “config” files, “bootloader upgrade” files, a “license” file, “SSL certificates”, “SSL private keys”, “SSH public keys”, “SSH private keys”, or “CLI Batch Files” to the Access Point
• help: Displays general CLI help information or command help information, such as command usage and syntax
• history: Remembers commands to help avoid re-entering complex statements
• passwd: Sets the Access Point’s CLI password
• reboot: Reboots the Access Point in the specified time
• search: Lists the parameters in a specified Table
• upload: Uses TFTP server to upload “config” files from Access Point to TFTP default directory or specified path
? (List Commands) This command can be used in a number of ways to display available commands and parameters. The following table lists each operation and provides a basic example. Following the table are detailed examples and display results for each operation. Operation Display the Command List (Example 1) Display commands that start with specified letters (Example 2) Display parameters for set and show Commands (Examples 3a and 3b) Prompt to enter successive parameters for Commands (Example 4)
Basic Example [Device-Name]>? [Device-Name]>s? [Device-Name]>set ? [Device-Name]>show ipa? [Device-Name]>download ?
Example 1. Display Command list To display the Command List, enter ?. [Device-Name]>?
Figure A-3 Result of “?” CLI command
162
Page 163
Command Line Interface (CLI) CLI Command Types
AP-700 User Guide
Example 2. Display specific Commands To show all commands that start with specified letters, enter one or more letters, then ? with no space between letters and ?. [Device-Name]>s?
Figure A-4 Result of “s?” CLI command Example 3. Display parameters for set and show Example 3a allows you to see every possible parameter for the set (or show) commands. Notice from example 3a that the list is very long. Example 3b shows how to display a subset of the parameters based on initial parameter letters. Example 3a. Display every parameter that can be changed [Device-Name]>set ?
. . . .
Figure A-5 Result of “set ?” CLI command Example 3b. Display parameters based on letter sequence This example shows entries for parameters that start with the letter “i”. The more letters you enter, the fewer the results returned. Notice that there is no space between the letters and the question mark. [Device-Name]> show ipa?
Figure A-6 Result of “show ipa?” CLI command [Device-Name]> show iparp?
163
Page 164
Command Line Interface (CLI) CLI Command Types
AP-700 User Guide
Figure A-7 Result of “show iparp?” CLI command Example 4. Display Prompts for Successive Parameters Enter the command, a space, and then ?. Then, when the parameter prompt appears, enter the parameter value. The parameter is changed and a new CLI line is echoed with the new value (in the first part of the following example, the value is the IP Address of the TFTP server). After entering one parameter, you may add another ? to the new CLI line to see the next parameter prompt, and so on until you have entered all of the required parameters. The following example shows how this is used for the download Command. The last part of the example shows the completed download Command ready for execution. [Device-Name]> download ? <TFTP IP Address> [Device-Name]> download 192.168.0.101 ? <File Name> [Device-Name]> download 192.168.0.101 apimage ? <file type (config/img/bootloader)> [Device-Name]> download 192.168.0.101 apimage img <CR> done, exit, quit Each of the following commands ends a CLI session: [Device-Name]> done [Device-Name]> exit [Device-Name]> quit download Downloads the specified file from a TFTP server to the Access Point. Executing download in combination with the asterisks character (“*”) will make use of the previously set TFTP parameters. Executing download without parameters will display command help and usage information. 1. Syntax to download a file: [Device-Name]>download <tftp server address> <path and filename> <file type> Example: [Device-Name]>download 192.168.1.100 APImage2 img 2. Syntax to display help and usage information: [Device-Name]>download 3. Syntax to execute the download Command using previously set (stored) TFTP Parameters: [Device-Name]>download *
164
Page 165
Command Line Interface (CLI) CLI Command Types
AP-700 User Guide help Displays instructions on using control-key sequences for navigating a Command Line and displays command information and examples. 1. Using help as the only argument: [Device-Name]>help
Figure A-8 Results of “help” CLI command 2. Complete command description and command usage can be provided by: [Device-Name]>help <command name> [Device-Name]><command name> help history Shows content of Command History Buffer. The Command History Buffer stores command statements entered in the current session. To avoid re-entering long command statements, use the keyboard “up arrow” (Ctrl-P) and “down arrow” (Ctrl-N) keys to recall previous statements from the Command History Buffer. When the desired statement reappears, press the Enter key to execute, or you may edit the statement before executing it. [Device-Name]> history passwd Changes the CLI Password. [Device-Name]> passwd oldpassword newpassword newpassword reboot Reboots Access Point after specified number of seconds. Specify a value of 0 (zero) for immediate reboot. [Device-Name]> reboot 0 [Device-Name]> reboot 30
165