beautypg.com

Creating script files – Allied Telesis AT-WA7500 User Manual

Page 247

background image

AT-WA7500 User’s Guide

247

Creating Script Files

You can create a script file that will execute a series of commands. For
example, when you upgrade the access point, 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.

Script files are ASCII text files with a 32-byte file system header
appended. You may need to contact your local Allied Telesyn
representative for a copy of the header file called filehdr.exe.

Follow these rules when creating script files:

‰ The total file size including the header must be less than 4096

bytes, which is the size of the RAM file segment.

‰ Each line in the script file must have fewer than 80 characters

‰ Each line in the script file must be terminated by a line feed or

carriage return.

‰ You can only have one command per line.

‰ You can include comments on a line by using the pound (#) sign;

all characters after a pound sign are ignored.

To test a script file, log onto an access point and type each of the script
file commands.

#Sample script file for upgrading an access point
#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:

#Step 3. Get data files
file sdvars set checkpoint 3
file tftp get *\data\bkgrnd.dnl id:
file tftp get *\data\bootchk.dnl id: