LANtools network management
190
5.3
 
Scripting
BAT54-Rail/F..
Release
 
7.54
 
06/08
5.3.5 Multiple parallel script sessions
The BAT can manage multiple simultaneous script sessions. Just as multiple 
console sessions can be run simultaneously on a single device, different 
scripts can also access the BAT at the same time. Parallel script sessions are 
especially useful in the following scenarios:
D Script   initiates a time-delayed reboot of the device after 30 minutes, for 
example. A second script  is active during the device's run time and 
changes its configuration for test purposes; the flash mode is deactivated 
for this. If the changes in configuration from script  make the device un-
attainable, then the restart prompted by script  30 minutes later causes 
these changes to be rejected.
D When using different scripts for partial configurations, multiple scripts can 
started simultaneously, for example with cron jobs. The individual config-
uration tasks do not need to be delayed until the previous script has com-
pleted its processing.
5.3.6 Scripting commands
D
readscript
In a console session, the command readscript generates a text dump of 
all commands and parameters that are required for the configuration of 
the BAT in its current state. In the simplest case, the BAT lists only com-
mands that are relevant to those parameters that no longer have the fac-
tory settings. 
Syntax: 
readscript [-n][-d][-c] [-m] [PATH]
Note: Supervisor rights are necessary to execute this command.