Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 17 of 24

21XX Universal Access Point Technical Reference Manual, pages 161 to 170

Pages 161 to 170 of 234

The original document is the PDF (982 KB). 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

Page 161

Advanced Features

8

Using Console Command Mode Another way you can access the UAP file system is through Console Command mode. You enter Console Command mode from the UAP Maintenance menu. You use Console Command mode to upgrade UAPs using TFTP and Script files. To enter Console Command mode •

Choose Command Console from the Maintenance menu.

When you first enter Console Command mode, a list of valid console commands appears. You can display the console commands any time you are in Console Command mode. To display console commands •

Type F and press Enter. The following screen appears. Command

Description

=======

===========

Fb fb <boot segment> <data segment>

Fd fd (<segment> | all) - directory list

Fdel fdel <filename> - delete file

Fe fe (<segment> | all) - erase segment(s)

Tftp

File transfer

Script

Execute script files

SDVars

Software Download variables

Exit

Return to main menu

?

Display this help

To exit Console Command mode •

Type exit and press Enter.

Several file menu commands require that you enter file names. To indicate the segment where the file is located, you can precede the file name 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 UAP searches the segments in the following order until it finds a file that matches the file name: RAM, 1, 2, 3, 4

8-9

Page 162

21XX Universal Access Point Technical Reference Manual

Using Console Commands This section describes the console commands.

fb You use the fb command to make an inactive segment the active segment. The format is: fb boot segment data segment where: boot segment is the name or number of the boot segment to be activated.

data segment is the name or number of the data segment to be activated.

For example, to make segment 2 the active boot segment and segment 4 the active data segment, you 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 fd You use the fd command to display the flash file system directory, which includes information about the boot file. The format is: fd You should use the fd command to ensure that the correct version of the file is in the active boot segment. Note: If the active segment contains no files when you reboot the UAP, the unit enters the UAP monitor and you lose the ability to Telnet to it during this session. If this occurs, you must access the UAP through its serial port to correct the problem.

fdel You use the fdel command to delete a particular file name from a segment. The format is: fdel filename where filename is the name of the file to be deleted. For example, to delete the file UAP.PRG from the inactive boot segment, you could enter: fdel ib:uap.prg

8-10

Page 163

Advanced Features

8

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.

fe You use the fe command to erase the files in a particular segment. To recover the files after they have been erased, you must reload them from another source. The format is: fe segment where segment is the name or number of the segment to be erased. For example, to erase the contents of segment 1, you could enter: fe 1 You can enter ALL instead of a segment name or number if you want to erase segments 1 through 4. Note: You must execute the fe command before you can execute a TFTP transfer.

script The script command executes a specified file as a list of console commands. You can create a script file to automate a software download. The format is: script filename where filename is the name of the script file to be executed. For more information about using the script command, see “Creating Script Files” later in this chapter.

Using Sdvars Commands You use sdvars commands in Console Command mode 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. The sdvars commands are described in this section using the SET argument. To execute an sdvars command using the GET argument, omit the variable from the end of the command.

8-11

Page 164

21XX Universal Access Point Technical Reference Manual sdvars set serveripaddress You use the sdvars set serveripaddress command to set the internal variable called serveripaddress to a specified address. The format is: sdvars set serveripaddress ip address where ip address is the address of the server. For example, to set the IP address of the server to 1.2.3.4, enter: sdvars set serveripaddress 1.2.3.4 sdvars set scriptfilename You use the sdvars set scriptfilename command to set 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. The format is: sdvars set scriptfilename foreign filename where foreign filename is a script filename on the TFTP server. For example, to set the scriptfilename to SCRIPT.DAT, enter: sdvars set scriptfilename script.dat sdvars set starttime You use the sdvars set starttime command to set the internal variable starttime. Starttime is a countdown time such that when zero is reached, the software download process begins. You set this variable to reflect how long into the future the UAP is to begin downloading and executing the script file from the TFTP server. When the timer reaches 0, the UAP 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. The format is: sdvars set starttime dd:hh:mm:ss where dd:hh:mm:ss is how far in the future the download is to begin. For example, 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.

8-12

Page 165

Advanced Features

8 sdvars set checkpoint You use the sdvars set checkpoint command to set 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. The format is: sdvars set checkpoint value where value is a whole number. For 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 UAP 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.

sdvars set terminate You use the sdvars set terminate command to set the internal variable terminate to a specified value. Use terminate to stop a countdown process in the UAP. If either starttime or nextpoweruptime is counting down, setting this variable stops the timer and halts the countdown process. The format is: sdvars set terminate Note: You should use caution when using this command. If the script file is being downloaded or executed, setting this variable interrupts the processing and can leave the UAP in an undetermined state that may require user intervention.

8-13

Page 166

21XX Universal Access Point Technical Reference Manual sdvars set setactivepointers You use the sdvars set setactivepointers command to change inactive segments to active segments the next time the UAP is rebooted. This command is usually used with the nextpoweruptime command. The format is: sdvars set setactivepointers none/boot/data/both where: none does not change the active segments. None is the default. Also, when the reboot is completed, the UAP resets this value to none.

boot changes the inactive boot segment to the active boot segment.

data changes the inactive data segment to the active data segment.

both changes both the boot and data inactive segments to the active segments.

For example, to change the inactive boot and data segments to active at the next reboot, enter: sdvars set setactivepointers both sdvars set nextpoweruptime You use the sdvars set nextpoweruptime command to set the internal variable nextpoweruptime to a countdown time so that when 0 is reached, the UAP will reboot. When the nextpoweruptime counter reaches 0, the UAP checks the value of the setactivepointers variable, takes the appropriate action, and then reboots. The format is: sdvars set nextpoweruptime dd:hh:mm:ss where dd:hh:mm:ss is how far in the future the reboot is to begin. For example, to reboot the UAP 2 hours from now, enter: sdvars set nextpoweruptime 00:02:00:00 Note: If you need to terminate the reboot, you can do so by setting nextpoweruptime to 0 if it has not already been reached by the countdown. By resetting nextpoweruptime to 0, the timer is stopped so the unit does not reboot.

8-14

Page 167

Advanced Features

8

Using TFTP Commands TFTP commands are file transfer commands that you execute when you are in Console Command mode. A UAP can act as either a client or server in the TFTP environment. As a server, the UAP can service read and write requests from a UAP client. As a client, the UAP 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 UAP retries TFTP client commands get and put until the command completes successfully. If the first attempt fails, the UAP retries after a one-minute delay. With each successive failure, the retry time doubles until it reaches 8 minutes. Once this limit is reached, it remains at 8 minutes until the command completes. 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 UAP backoff algorithm should prevent excessive network traffic when many UAPs are trying to contact a TFTP server.

tftp get The TFTP client in the UAP supports standard get and put commands. You can use the TFTP get command to start a client session that gets a file from the TFTP server. The format is: tftp get IP address foreign filename local filename where: IP address is the IP address of the server. You can use an asterisk (*) here if you want to use the value in serveripaddress.

foreign filename is the name of the file on the server. The file name 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 UAP.

local filename is the name you wish to call the file on the UAP. The name must include a segment number or name followed by a colon. An actual file name is optional. If only the segment name is supplied, the file name is set equal to the file name that is embedded in the file header on the server.

For example, 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 UAP. tftp get 1.2.3.4 c:\startup\uap.dnl ib: 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.

8-15

Page 168

21XX Universal Access Point Technical Reference Manual

The following error messages may be generated by the UAP when the UAP issues a TFTP get command. Other error messages may be returned from the server and displayed by the UAP. 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 UAP 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

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 put TFTP put is another client command. You can use TFTP put to copy a file from a client to the server or to another UAP. The format is: tftp put IP address foreign filename local filename where: IP address is the IP address of the server. You can use an asterisk (*) here if you want to use the value in the serveripaddress.

foreign filename 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.

local filename is the name of the file to be sent from the UAP.

For example, the following command takes file UAP.PRG that is saved in the active boot drive on the UAP client and stores it in the inactive boot segment on the UAP server that has IP address 1.2.3.4. tftp put 1.2.3.4 ib:uap.prg ab:uap.prg The following error messages may be generated by the UAP when the UAP issues a TFTP put command. Other error messages may be returned from the server and displayed by the UAP. See your server documentation.

8-16

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.

Page 169

Advanced Features

8 tftp server log Your UAP can function as a TFTP server. You can use the TFTP server log command to save a history of TFTP client requests. The format is: tftp server log The TFTP server log contains useful TFTP server status information. The log begins when you set up the server. You must reboot the UAP to clear the log.

tftp server start A UAP can obtain files from a TFTP server. You can enable one UAP to act as a TFTP server and download files to additional UAPs. You use the TFTP server start command to enable your UAP to act as a server. The format is: tftp server start After you issue this command, the UAP responds to TFTP client requests that are directed to its IP address. When acting as a server, the UAP supports up to 4 concurrent TFTP sessions.

tftp server stop When you are done transferring files, you can stop the UAP from being a TFTP server by using the TFTP server stop command. The format is: tftp server stop After you issue this command, the UAP no longer responds to TFTP client requests; however, current TFTP sessions with the server are allowed to complete. The following 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. Error Message

Explanation

TFTP server only supports octet mode

The client is attempting to transfer a file in ASCII mode. The UAP 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 UAP file header, or the file name may be incorrectly formed.

Can’t read remote file

The server returns this message if the UAP file system returns an error while the server is attempting to read the file. This message is unlikely to occur.

8-17

Page 170

21XX Universal Access Point Technical Reference Manual

Error Messages Issued by the TFTP Server (continued) Error Message

Explanation

Can’t write remote file

The server returns this message if the UAP 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.

Creating Script Files You can create a script file that will execute a series of commands. Script files are ASCII text files with a 32-byte file system header appended. You may need to contact your local Intermec representative for a copy of the header file called filehdr.exe. The total file size including the header must be less than 4096 bytes, the size of the RAM file segment. Each line in the script file must have fewer than 80 characters and be terminated by a line feed or carriage return. There can only be one command per line. You can include comments on a line by using the pound (#) sign; all characters after a pound sign are ignored. When you upgrade the UAP, you typically need to erase the appropriate file segments, download the new files, and reboot using the new software. You can create a script file to perform these commands. To test a script file, you can log onto a UAP and type each of the script file commands. A sample script file is shown here. #Sample script file for upgrading a UAP #Step 1. Delete files file sdvars set checkpoint 1 file fe ib: file fe id: #Step 2. Get boot files file sdvars set checkpoint 2 file tftp get *\data\bootchk.dnl ib: file tftp get *\startup\uap.dnl ib: file tftp get *\startup\uapboot.dnl ib:

8-18