BelAir20E User Guide
Scripting Guidelines
April 2, 2012
Confidential
Document Number BDTM02201-A01 Standard
Including a
Reboot
Command in a
Script
Some BelAir node functions, such as Network Address Translation (NAT),
require that you reboot the node after you configure them. If your script must
include a
reboot
command, then your script must contain the declarations
described in the following sections:
•
“Reboot Declaration Summary” on page 231
•
“Reboot Declaration Specification” on page 231
As well, this chapter contains a typical script as an example.
Reboot Declaration
Summary
summarizes the declarations required in your script if it needs to
include a
reboot
command.
Reboot Declaration
Specification
If your script must include the
reboot
command, then your script must include
the declarations described in this section.
Caution!
Using the
reboot
command in an auto-configuration script without the correct
declarations may cause the node to enter a continuous
reboot
loop.
The declarations for using the
reboot
command in a script are an extension of
those for specifying a physical interface in a script. See
.
Table 19: Script Declaration Summary for Reboot Command
Script Declaration
Description
check-db-change-start
Verifies and records whether the following commands change the node’s
settings.
For details, see
“Reboot Declaration Specification” on page 231
check-db-change-stop
Stops verifying whether commands change the node’s settings.
For details, see
“Reboot Declaration Specification” on page 231
int-db-change-start
Used in conjunction with the previous
check-db-change
declarations.
The
int-db-change-start
declaration instructs the node to execute the
commands that follow if the node’s settings have changed.
For details, see
“Reboot Declaration Specification” on page 231
int-stop
Terminates a command sequence associated with a previous declaration