The text of a manual · part 19 of 26
ORiNOCO AP-700 User Guide: Command Line Interface (CLI), pages 166 to 174
Pages 166 to 174 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 166
Command Line Interface (CLI) CLI Command Types
AP-700 User Guide search Lists the parameters supported by the specified table. This list corresponds to the table information displayed in the HTTP interface. In this example, the CLI returns the list of parameters that make up an entry in the IP Access Table. [Device-Name]> search mgmtipaccesstbl
Figure A-9 Results of “search mgmtipaccesstbl” CLI command upload Uploads a text-based configuration file from the AP to the TFTP Server. Executing upload with the asterisk character (“*”) will make use of the previously set/stored TFTP parameters. Executing upload without parameters will display command help and usage information. 1. Syntax to upload a file: [Device-Name]>upload <tftp server address> <path and filename> <filetype> Example: [Device-Name]>upload 192.168.1.100 APconfig.sys config 2. Syntax to display help and usage information: [Device-Name]>help upload 3. Syntax to execute the upload command using previously set (stored) TFTP Parameters: [Device-Name]>upload *
Parameter Control Commands The following sections cover the two Parameter Control Commands (show and set) and include several tables showing parameter properties. These commands allow you to view (show) all parameters and statistics and to change (set) parameters. • show: To see any Parameter or Statistic value, you can specify a single parameter, a Group, or a Table.
• set: Use this CLI Command to change parameter values. You can use a single CLI statement to modify Tables, or you can modify each parameter separately.
“show” CLI Command Displays the value of the specified parameter, or displays all parameter values of a specified group (parameter table). Groups contain Parameters and Tables. Tables contain parameters for a series of similar entities. To see a definition and syntax example, type only show and then press the Enter key. To see a list of available parameters, enter a question mark (?) after show (example: show ?). Syntax: [Device-Name]>show <parameter> [Device-Name]>show <group> [Device-Name]>show <table> Examples: [Device-Name]>show ipaddr 166
Page 167
Command Line Interface (CLI) CLI Command Types
AP-700 User Guide
[Device-Name]>show network [Device-Name]>show mgmtipaccesstbl “set” CLI Command Sets (modifies) the value of the specified parameter. To see a definition and syntax example, type only set and then press the Enter key. To see a list of available parameters, enter a space, then a question mark (?) after set (example: set?). Syntax: [Device-Name]>set <parameter> <value> [Device-Name]>set <table> <index> <argument 1> <value 1> ... <argument N> <value N> Example: [Device-Name]>set sysloc “Main Lobby” [Device-Name]>set mgmtipaccesstbl 0 ipaddr 10.0.0.10 ipmask 255.255.0.0 Configuring Objects that Require Reboot Certain objects supported by the Access Point require a device reboot in order for the changes to take effect. In order to inform the end-user of this behavior, the CLI provides informational messages when the user has configured an object that requires a reboot. The following messages are displayed as a result of the configuring such object or objects. Example 1: Configuring objects that require the device to be rebooted The following message is displayed every time the user has configured an object that requires the device to be rebooted. [Device-Name]>set ipaddr 135.114.73.10 The following elements require reboot ipaddr
Example 2: Executing the “exit”, “quit”, or “done” commands when an object that requires reboot has been configured In addition to the above informational message, the CLI also provides a message as a result of the exit, quit, or done command if changes have been made to objects that require reboot. If you make changes to objects that require reboot and execute the exit command the following message is displayed: [Device-Name]>exit<CR> OR quit<CR> OR done<CR> Modifications have been made to parameters that require the device to be rebooted. These changes will only take effect after the next reboot.
“set” and “show” Command Examples In general, you will use the CLI show Command to view current parameter values and use the CLI set Command to change parameter values. As shown in the following examples, parameters may be set individually or all parameters for a given table can be set with a single statement. Example 1 - Set the Access Point IP Address Parameter Syntax: [Device-Name]>set <parameter name> <parameter value> Example: [Device-Name]> set ipaddr 10.0.0.12 IP Address will be changed when you reboot the Access Point. The CLI reminds you when rebooting is required for a change to take effect. To reboot immediately, enter reboot 0 (zero) at the CLI prompt. 167
Page 168
Command Line Interface (CLI) CLI Command Types
AP-700 User Guide
Example 2 - Create a table entry or row Use 0 (zero) as the index to a table when creating an entry. When creating a table row, only the mandatory table elements are required (comment is usually an optional table element). For optional table elements, the default value is generally applied if you do not specify a value. Syntax: [Device-Name]>set <table name> <table index> <element 1> <value 1> … <element n> <value n> Example: [Device-Name]> set mgmtipaccesstbl 0 ipaddr 10.0.0.10 ipmask 255.255.0.0 A new table entry is created for IP address 10.0.0.10 with a 255.255.0.0 subnet mask. Example 3 - Modify a table entry or row Use the index to be modified and the table elements you would like to modify. For example, suppose the IP Access Table has one entry and you wanted to modify the IP address: [Device-Name]>set mgmtipaccesstbl 1 ipaddr 10.0.0.11 You can also modify several elements in the table entry. Enter the index number and specific table elements you would like to modify. (Hint: Use the search Command to see the elements that belong to the table.) [Device-Name]>set mgmtipaccesstbl 1 ipaddr 10.0.0.12 ipmask 255.255.255.248 cmt “First Row” Example 4 - Enable, Disable, or Delete a table entry or row The following example illustrates how to manage the second entry in a table. Syntax: [Device-Name]>set <Table> index status <enable, disable, delete> [Device-Name]>set <Table> index status <1=enable, 2=disable, 3=delete> Example: [Device-Name]>set mgmtipaccesstbl 2 status enable [Device-Name]>set mgmtipaccesstbl 2 status disable [Device-Name]>set mgmtipaccesstbl 2 status delete [Device-Name]>set mgmtipaccesstbl 2 status 2 NOTE: You may need to enable a disabled table entry before you can change the entry’s elements. Example 5 - Show the Group Parameters This example illustrates how to view all elements of a group or table. Syntax: [Device-Name]> show <group name> Example: [Device-Name]>show network The CLI displays network group parameters. Note show network and show ip return the same data. 168
Page 169
Command Line Interface (CLI) CLI Command Types
AP-700 User Guide
Figure A-10 Results of “show network” and “show ip” CLI Commands Example 6 - Show Individual and Table Parameters 1. View a single parameter. Syntax: [Device-Name]>show <parameter name> Example: [Device-Name]> show ipaddr Displays the Access Point IP address.
Figure A-11 Result of “show ipaddr” CLI Command 2. View all parameters in a table. Syntax: [Device-Name]> show <table name> Example: [Device-Name]> show mgmtipaccesstbl The CLI displays the IP Access Table and its entries.
169
Page 170
Command Line Interface (CLI) Using Tables and Strings
AP-700 User Guide
Using Tables and Strings Working with Tables Each table element (or parameter) must be specified, as in the example below. [Device-Name]>set mgmtipaccesstbl 0 ipaddr 10.0.0.10 ipmask 255.255.0.0 Below are the rules for creating, modifying, enabling/disabling, and deleting table entries. •
•
•
•
Creation –
The table name is required.
–
The table index is required – for table entry/instance creation the index is always zero (0).
–
The order in which the table arguments or objects are entered in not important.
–
Parameters that are not required can be omitted, in which case they will be assigned the default value.
Modification –
The table name is required.
–
The table index is required – to modify the table, “index” must be the index of the entry to be modified.
–
Only the table objects that are to be modified need to be specified. Not all the table objects are required.
–
If multiple table objects are to be modified the order in which they are entered is not important.
–
If the entire table entry is to be modified, all the table objects have to be specified.
Enabling/Disabling –
The table name is required.
–
The table index is required – for table enabling/disabling the index should be the index of the entry to be enabled/disabled.
–
The entry’s new state (either “enable” or “disable”) is required.
Deletion –
The table name is required.
–
The table index is required – for table deletion the index should be the index of the entry to be deleted.
–
The word “delete” is required.
Using Strings Since there are several string objects supported by the AP, a string delimiter is required for the strings to be interpreted correctly by the command line parser. For this CLI implementation, the single quote or double quote character can be used at the beginning and at the end of the string. For example: [Device-Name]> set sysloc Lobby - Does not need quote marks [Device-Name]> set sysloc “Front Lobby” - Requires quote marks. The scenarios supported by this CLI are: “My Desk in the office” ‘My Desk in the office’ “My ‘Desk’ in the office” ‘My “Desk” in the office’ “Daniel’s Desk in the office” ‘Daniel”s Desk in the office’
Double Quotes Single Quotes Single Quotes within Double Quotes Double Quotes within Single Quotes One Single Quote within Double Quotes One Double Quote within Single Quotes
170
Page 171
Command Line Interface (CLI) Using Tables and Strings
AP-700 User Guide
The string delimiter does not have to be used for every string object. The single quote or double quote only has to be used for string objects that contain blank space characters. If the string object being used does not contain blank spaces, then the string delimiters, single or double quotes, mentioned in this section are not required.
171
Page 172
Command Line Interface (CLI) Configuring the AP using CLI commands
AP-700 User Guide
Configuring the AP using CLI commands Log into the AP using HyperTerminal 1. Open your terminal emulation program (like HyperTerminal) and set the following connection properties: •
Com Port: <COM1, COM2, etc., depending on your computer>
•
Baud rate: 9600
•
Data Bits: 8
•
Stop bits: 1
•
Flow Control: None
•
Parity: None
2. Under File > Properties > Settings > ASCII Setup, enable the Send line ends with line feeds option. HyperTerminal sends a line return at the end of each line of code. 3. Enter the CLI password (default is public). NOTE: Proxim recommends changing your default passwords immediately. To perform this operation using CLI commands, see Change Passwords.
Log into the AP using Telnet The CLI commands can be used to access, configure, and manage the AP using Telnet. Follow these steps: 1. Confirm that your computer’s IP address is in the same IP subnet as the AP. NOTE: If you have not previously configured the Access Point’s IP address and do not have a DHCP server on the network, the Access Point will default to an IP address of 169.254.128.132. 2. Go to the DOS command prompt on your computer. 3. Type telnet <IP Address of the unit>. 4. Enter the CLI password (default is public). NOTE: Proxim recommends changing your default passwords immediately. To perform this operation using CLI commands, see Change Passwords.
172
Page 173
Command Line Interface (CLI) Set Basic Configuration Parameters using CLI Commands
AP-700 User Guide
Set Basic Configuration Parameters using CLI Commands There are a few basic configuration parameters that you may want to setup right away when you receive the AP. For example: •
Set System Name, Location and Contact Information
•
Set Static IP Address for the AP
•
Download an AP Configuration File from your TFTP Server
•
Set up Auto Configuration
•
Set Network Names for the Wireless Interface
•
Enable 802.11d Support and Set the Country Code
•
Enable and Configure TX Power Control for the Wireless Interface
•
Configure SSIDs (Network Names), VLANs, and Profiles
•
Download an AP Configuration File from your TFTP Server
•
Backup your AP Configuration File
Set System Name, Location and Contact Information NOTE: System name must: • Contain only letters, numbers, and hyphens. • Be limited to 31 characters. • Not begin with a number or hyphen. • Not contain blank spaces. [Device-Name]>set sysname <Name> sysloc <Unit Location> [Device-Name]>set sysctname <Contact Name> [Device-Name]>set sysctphone <Contact Phone Number> sysctemail <Contact E-mail address> [Device-Name]>show system
Figure A-12 Result of “show system” CLI Command Set Static IP Address for the AP NOTE: The IP Subnet Mask of the AP must match your network’s Subnet Mask. [Device-Name]>set ipaddrtype static [Device-Name]>set ipaddr <fixed IP address of unit> [Device-Name]>set ipsubmask <IP Mask> [Device-Name]>set ipgw <gateway IP address> [Device-Name]>show network Change Passwords [Device-Name]>passwd <Old Password> <New Password> <Confirm Password> (CLI password) [Device-Name]>set httppasswd <New Password> (HTTP interface password) 173
Page 174
Command Line Interface (CLI) Set Basic Configuration Parameters using CLI Commands
AP-700 User Guide
[Device-Name]>set snmprpasswd <New Password> (SNMP read password) [Device-Name]>set snmprwpasswd <New Password> (SNMP read/write) [Device-Name]>set snmpv3authpasswd <New Password> (SNMPv3 authentication password) [Device-Name]>set snmpv3privpasswd <New Password> (SNMPv3 privacy password) [Device-Name]>reboot 0 CAUTION: Proxim strongly urges you to change the default passwords to restrict access to your network devices to authorized personnel. If you lose or forget your password settings, you can always perform the Soft Reset to Factory Defaults. Set Network Names for the Wireless Interface [Device-Name]>set wif 3 netname <Network Name (SSID) for wireless interface> [Device-Name]>show wif
Figure A-13 Results of “show wif” CLI command for an AP Enable 802.11d Support and Set the Country Code NOTE: On APs with model numbers ending in -WD, these commands are not available. Perform the following command to enable 802.11d IEEE 802.11d support for additional regulatory domains. [Device-Name]>set wif 3 dot11dstatus <enable/disable> Perform the following command to set a country code: [Device-Name]>set syscountrycode <country code> Select a country code from the following table, derived from ISO 3166. Available countries will vary based on regulatory domain. Refer to the ISO/IEC 3166-1 CountryCode drop-down menu on the Configure > Interfaces > Operational Mode page; this menu contains a list of all the available countries in your regulatory domain. NOTE: If you select a country code that is not supported in your regulatory domain, clients may attempt to connect to a channel that is not supported by your AP. Country
Code
Country
Code
Country
Code
Algeria
DZ
Honduras
HN
Panama
PA
Albania
AL
Hong Kong
HK
Papua New Guinea
PG
Argentina
AR
Hungary
HU
Peru
PE
174