Allied Telesis at-8700xl series switch manual Using Scripts, AT-8700XL Series Software Reference

Models: at-8700xl series switch

1 81
Download 81 pages 57.37 Kb
Page 50
Image 50
Figure 10: Example output from the SHOW FILE command.

50

AT-8700XL Series Switch User Guide

Figure 10: Example output from the SHOW FILE command.

FilenameDevice Size CreatedLocks

----------------------------------------------------------------------------

28-72.pat

flash

111764

05-May-1997 12:41:42

0

28-74ang.rel

flash

2013756

09-May-1997 15:58:55

0

28f72-06.pat

flash

123268

18-Apr-1997

15:58:16

0

release.lic

flash

32

08-May-1997

16:43:49

0

test.cfg

flash

1698

09-May-1997

10:39:42

0

sixteenalongfile.scp

flash

24

30-May-1997

15:10:12

0

----------------------------------------------------------------------------

The Locks field indicates the number of concurrent software processes using the file.

The switch automatically compacts FLASH memory when a maximum threshold of deleted files is reached. Compaction frees space for new files by discarding garbage. A message will appear when FLASH compaction is activated. Another message appears when FLASH compaction is complete.

While FLASH is compacting, do not restart the switch or use any commands that affect the FLASH file subsystem. Do not restart the switch, or create, edit, load, rename or delete any files until a message confirms that FLASH file compaction is completed. Interrupting flash compaction may result in damage to files.

Using Scripts

When you start or restart the switch, or when it automatically restarts, it executes the configuration commands in the boot script. A boot script is a text file containing a sequence of standard commands that the switch executes at startup. The default boot script is called boot.cfg. Commands run from a boot script are limited to 128 characters.

The commands you enter into the switch from the command line affect only the dynamic configuration in RAM, which is not retained over a power cycle. The switch does not automatically store these changes in FLASH memory. When the switch is restarted, it loads the configuration defined by the boot script, or if the switch was restarted using the RESTART command, any script file specified in the RESTART command.

In addition to the boot configuration script that the switch automatically runs when it restarts, you can run a configuration script manually at any time, by entering the command:

ACTIVATE SCRIPT=filename

You can also set a trigger to automatically execute a configuration script when a specified event occurs.

For more information about how to create and run scripts, see the Scripting chapter in the AT-8700XL Series Software Reference.

For information about creating triggers, see the Trigger Facility chapter in the

AT-8700XL Series Software Reference.

Software Release 2.6.1 C613-02030-00 REV B

Page 50
Image 50
Allied Telesis at-8700xl series switch manual Using Scripts, AT-8700XL Series Software Reference