The text of a manual · part 24 of 31
MobileLAN access System Manual, pages 231 to 240
Pages 231 to 240 of 304
The original document is the PDF (3.0 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 Intermec 2100, Intermec 2106 and Intermec 2101
Page 231
Chapter 9, Additional Access Point Features
FE Purpose: Erases the files in a particular segment. To recover the files after they have been erased, you must reload them from another source. Note: You must execute this command before you execute a TFTP transfer. Syntax: FE s where s is the name or number of the segment to be erased. You can enter ALL instead of a segment name or number if you want to erase all segments. Example:
To erase the contents of segment 1, enter: FE 1
To erase the contents of the inactive boot segment, enter: FE IB:
FFR Purpose: Runs a program f, from a location s. Syntax: FFR f (s) where:
Example:
f is the program name.
s is the optional segment location of the program.
To run program UAPBOOT.PRG from segment 1, enter: FFR UAPBOOT.PRG 1
FI Purpose: Reinitializes the access point file system. If the access point file system or a file segment becomes corrupt, use this command to reset it. Syntax: FI (s) where s is the optional number of the segment to be reinitialized.
FX Purpose: Downloads a file using Ymodem batch protocol into the flash segment that is specified by s. Syntax: FX s where s is segment 1, 2, 3, or 4.
MobileLAN access System Manual
217
Page 232
Chapter 9, Additional Access Point Features
HDW Purpose: Loads the FPGA configuration file into the access point. If you are directed to change the FPGA firmware in the access point, use this command. Syntax: HDW f (s) where: f is the FPGA configuration filename.
s is the optional segment where you want to load the configuration file.
Using Command Console Mode You can use the Command Console mode to manipulate some access point files and file segments. You can also use Command Console mode to upgrade access points using TFTP and script files. You access the Command Console mode through the serial port using a communications program or over the network using a telnet session. You cannot access Command Console mode using a web browser interface.
Entering Command Console Mode 1 Use a communications program or telnet to start a session with the access point. For help, see “Using a Communications Program” in Chapter 1. 2 From the Access Point Configuration menu, choose Maintenance. 3 From the Maintenance menu, choose Command Console. The list of commands appears.
218
MobileLAN access System Manual
Page 233
Chapter 9, Additional Access Point Features
To exit Command Console mode • At the prompt, type exit. You return to the Maintenance menu.
Using the Commands Several of these commands require that you enter filenames. To indicate the segment where the file is located, precede the filename with either a segment number or name followed by a colon. For example, 1:uap.prg refers to the file named UAP.PRG that is located in segment 1. If you do not specify a segment name or number, the access point searches the segments in the following order until it finds a file that matches the file name RAM, 1, 2, 3, 4.
FB Purpose: Makes an inactive segment the active segment. Syntax: FB bootsegment datasegment where: bootsegment is the name or number of the boot segment to be activated. datasegment is the name or number of the data segment to be activated. Example:
To make segment 2 the active boot segment and segment 4 the active data segment, enter: FB 2 4
You can use an asterisk instead of a segment name if you want to leave that segment unchanged. For example, to leave the active boot segment unchanged and make segment 4 the active data segment, you could enter: FB * 4
After loading software into the access point a common task is to activate the new software. To activate the new software, enter: FB IB: ID:
This command activates the inactive boot and data segments. You do not need to know which of the boot and data segment numbers the flash is loaded into.
MobileLAN access System Manual
219
Page 234
Chapter 9, Additional Access Point Features
FD Purpose: Displays the flash file system directory, which includes information about the boot file. Use this command to ensure that the correct version of the file is in the active boot segment. Syntax: FD Example:
To show only the files loaded in the active boot segment., enter: FD ab:
Note: If the active segment contains no files when you reboot the access point, the access point enters the AP monitor and you will no longer be able to telnet to it during this session. If this occurs, you must access the access point through its serial port to correct the problem.
FDEL Purpose: Deletes a particular file from a segment. Note: When you use the FDEL command, the file is marked as invalid and remains in the file system. To reclaim the file space, you must erase the entire segment. Use the FE command to erase a segment. Syntax: FDEL f where f is the name of the file to be deleted. Example:
To delete the file UAP.PRG from the inactive boot segment, enter: FDEL IB:UAP.PRG
FE Purpose: Erases the files in a particular segment. To recover the files after they have been erased, you must reload them from another source. Note: You must execute the FE command before you execute a TFTP transfer. Syntax: FE s where s is the name or number of the segment to be erased. You can enter ALL instead of a segment name or number if you want to erase segments 1 through 4. Example:
To erase the contents of segment 1, enter: FE 1
To erase the contents of the inactive boot segment, enter: FE IB:
220
MobileLAN access System Manual
Page 235
Chapter 9, Additional Access Point Features
SCRIPT Purpose: Executes a specified file as a list of console commands. You can create a script file to automate a software download. Syntax: SCRIPT f where f is the name of the script file to be executed. For more information about using the script command, see “Creating Script Files” on page 228.
Using TFTP Commands TFTP commands are file transfer commands. An access point can act as either a client or server in the TFTP environment. As a server, the access point can service read and write requests from an access point client. As a client, the access point can read files from and write files to any TFTP server on the network. Both the client and server must operate in octet, or 8-bit, mode. When executing a script file, the access point retries TFTP client commands get and put until the command is successfully completed. If the first attempt fails, the access point retries after a one-minute delay. With each successive failure, the retry time doubles until it reaches eight minutes. Once this limit is reached, it remains at eight minutes until the command is completed. In general, TFTP client sessions should fail only if the server is not responding either because it is busy serving other clients or because it has not been started. In either case, the access point backoff algorithm should prevent excessive network traffic when many access points are trying to contact a TFTP server.
TFTP GET Purpose:
TFTP client requests a file from the TFTP server. Note: You must use the FE command to erase the segment before you execute a TFTP GET command. If you do not erase the segment, you may get a “can’t write file” error.
MobileLAN access System Manual
221
Page 236
Chapter 9, Additional Access Point Features
TFTP GET (continued) Syntax:
TFTP GET IPaddress foreignfilename localfilename where:
Example:
IPaddress is the IP address or DNS name of the server. You can use an asterisk (*) here if you want to use the value in serveripaddress.
foreignfilename is the name of the file on the server. The filename can contain directory path information and must be in the format required by the server operating system. The file must already have the appropriate file header before the transfer to the access point.
localfilename is the name you wish to call the file on the access point. The name must include a segment number or name followed by a colon. An actual filename is optional. If only the segment name is supplied, the filename is set equal to the filename that is embedded in the file header on the server.
The following command gets file UAP.DNL from a directory on a PC server with IP address 1.2.3.4 and stores it in the inactive boot segment on the access point. TFTP GET 1.2.3.4 C:\STARTUP\UAP.DNL IB:
The access point may generate these error messages when it issues a TFTP GET command. Other error messages may be returned from the server and displayed by the access point. See your server documentation for additional information. Error Message
Explanation
Can’t write file
The file may be too big. The file may not have a access point file header (filehdr.exe). The file name may be incorrectly formed. The file may already exist in the segment and cannot be overwritten. You must erase the file first.
Invalid opcode during read
222
This error should not occur under normal operating conditions. This error indicates a TFTP protocol error that will not occur when you use TFTP servers that conform to the protocol.
MobileLAN access System Manual
Page 237
Chapter 9, Additional Access Point Features
TFTP PUT Purpose:
Copies a file from a TFTP client to the TFTP server or to another access point.
Syntax:
TFTP PUT IPaddress foreignfilename localfilename where:
Example:
IPaddress is the IP address or DNS name of the server. You can use an asterisk (*) here if you want to use the value in the serveripaddress.
foreignfilename is the name of the file as it will appear on the server. The file name can contain directory path information and must be in the format required by the server operating system.
localfilename is the name of the file to be sent from the access point.
The following command takes file UAP.PRG that is saved in the active boot drive on the access point client and stores it in the inactive boot segment on the access point server that has IP address 1.2.3.4. TFTP PUT 1.2.3.4 IB:UAP.PRG AB:UAP.PRG
The access point may generate these error messages when it issues a TFTP PUT command. Other error messages may be returned from the server and displayed by the access point. See your server documentation for additional information. Error Message
Explanation
Can’t read file
The requested file may not exist.
Invalid opcode during put
This error should not occur under normal operating conditions. This error indicates a TFTP protocol error that will not occur when you use TFTP servers that conform to the protocol.
TFTP SERVER LOG Purpose:
The access point can function as a TFTP server. You can use the TFTP server log command to save a history of TFTP client requests. The TFTP server log contains useful TFTP server status information. The log begins when you set up the server. To clear the log, reboot the access point.
Syntax:
TFTP SERVER LOG
MobileLAN access System Manual
223
Page 238
Chapter 9, Additional Access Point Features
TFTP SERVER START Purpose:
Use this command to enable the access point to act as a server. You can enable one access point to act as a TFTP server and download files to additional access points.
Syntax:
TFTP SERVER START
After you issue this command, the access point responds to TFTP client requests that are directed to its IP address. When acting as a server, the access point supports up to four concurrent TFTP sessions.
TFTP SERVER STOP Purpose:
When you are done transferring files, you can stop the access point from being a TFTP server by using this command.
Syntax:
TFTP SERVER STOP
After you issue this command, the access point no longer responds to TFTP client requests; however, current TFTP sessions with the server are allowed to complete. This table lists error messages that can be issued from the TFTP server. These messages are sent to the client and are meant to be read from the client perspective.
224
Error Message
Explanation
TFTP server only supports octet mode
The client is attempting to transfer a file in ASCII mode. The access point TFTP server only supports octet mode, which includes binary and image.
Unable to open remote file
The TFTP server cannot open the file that is named in the read or write request. If you are trying to read a file, the file may not exist. If you are trying to write a file, the file may be too big, the file may not have a access point file header, or the file name may be incorrectly formed.
Can’t read remote file
The server returns this message if the access point file system returns an error while the server is attempting to read the file. This message is unlikely to occur.
Can’t write remote file
The server returns this message if the access point file system returns an error while the server is attempting to write the file. This message is unlikely to occur.
TFTP opcode not read or write request
This error should not occur under normal operating conditions. This error indicates that the TFTP client does not conform to the protocol.
Invalid opcode during read
This error should not occur under normal operating conditions. This error indicates that the TFTP client does not conform to the protocol.
Invalid opcode during write
This error should not occur under normal operating conditions. This error indicates that the TFTP client does not conform to the protocol.
MobileLAN access System Manual
Page 239
Chapter 9, Additional Access Point Features
Using sdvars Commands Use sdvars commands to manipulate certain software download variables. Sdvars commands support both GET and SET arguments. You can enter sdvars commands to GET a software download object, and then issue the sdvars command using the SET argument to assign the object a specified value. This section describes the sdvars commands using the SET argument. To execute an sdvars command using the GET argument, omit the variable from the end of the command.
sdvars set serveripaddress Purpose:
Sets the internal variable called serveripaddress to a specified address.
Syntax:
sdvars set serveripaddress ipaddress where ipaddress is the address of the TFTP server. Example:
To set the IP address of the server to 192.168.49.29, enter: sdvars set serveripaddress 192.168.49.29 sdvars set scriptfilename Purpose:
Sets the internal variable scriptfilename to a specified string. The specified string should be the filename of the script to be retrieved from the TFTP server.
Syntax:
sdvars set scriptfilename foreignfilename where foreignfilename is a script filename on the TFTP server. Example:
To set the scriptfilename to SCRIPT.DAT, enter: sdvars set scriptfilename script.dat sdvars set starttime Purpose:
Sets the internal variable starttime. Starttime is a countdown time; that is, when zero is reached, the software download process begins. Set this variable to reflect how far into the future the access point is to begin downloading and executing the script file from the TFTP server. When the timer reaches 0, the access point uses the values in serveripaddress and scriptfilename to get the script file that is to be executed. If either serveripaddress or scriptfilename contains no value, an error is noted in the status variable and the software download process is terminated.
MobileLAN access System Manual
225
Page 240
Chapter 9, Additional Access Point Features sdvars set starttime (continued) Syntax:
sdvars set starttime dd:hh:mm:ss where dd:hh:mm:ss is how far in the future the reboot is to begin and dd is days.
hh is hours.
mm is minutes. ss Example:
is seconds.
To begin the script file download in 5 minutes, enter: sdvars set starttime 00:00:05:00
Note: If you need to stop the download, you can do so by setting starttime to 0 if it has not already been reached by the countdown. Resetting starttime to 0 stops the timer and the download process.
sdvars set checkpoint Purpose:
Sets the internal variable called checkpoint to a specified value. The checkpoint variable is useful for monitoring the progress of a script file as it is executed. You can set the checkpoint variable to a different value after each script command, and then query the checkpoint value using SNMP to determine the progress of the download.
Syntax:
sdvars set checkpoint value where value is a whole number. Example:
Consider the following script file commands: sdvars set checkpoint 1 fe ab sdvars set checkpoint 2 TFTP get * uap.prg ab sdvars set checkpoint 3 reboot
When the software download is started, you can use SNMP to query its progress by reading the checkpoint variable. If the variable has a value of 2, you know that the access point is trying to execute the TFTP get statement. If the value is 3, you know the script has completed and the reboot was executed. The value of the checkpoint variable may also be helpful in determining where an error occurred if the script fails.
226
MobileLAN access System Manual