EasyManua.ls Logo

Belair 20E - Page 232

Default Icon
255 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BelAir20E User Guide Scripting Guidelines
April 2, 2012 Confidential Page 232 of 255
Document Number BDTM02201-A01 Standard
The declarations are:
•
check-db-change-start
. This declaration verifies and records whether the
following commands change the node’s settings. It ignores commands that
change a setting to be the current setting. For example, if a physical
interface’s administrative state is enabled, the s
et admin-state enabled
command for that physical interface is ignored.
•
check-db-change-stop
. This declaration stops verifying whether commands
change the node’s setting.
•
int-db-change-start
. This declaration is used 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.
Typically, your script uses the declarations in the following sequence:
1 Use valid CLI commands and physical interface declarations as required.
2Use the
config-save
command to save the changes to this point to the node’s
database.
3 Include the
check-db-change-start
declaration. (Begin recording whether the
following commands change the nodes settings.)
4 Use the CLI commands for the functionality that requires a reboot, for
example
/protocol/nat/set
commands.
5 Include the
check-db-change-stop
declaration. (Stop recording whether the
following commands change the node’s settings.)
6 Use more valid CLI commands and physical interface declarations as
required.
7 At the end of the script, include the
int-db-change-start
declaration.
8Use the
config-save
command to save any remaining changes to the node’s
database.
9 Include the
/system/reboot
CLI command.
10 Include
y
. (Confirm the reboot.)
11 Include the
int-stop
declaration, as a terminator for the
int-db-change-start
declaration.
The first time the auto-configuration script is run (during initial startup), the
check-db-change-start
and
check-db-change-stop
declarations record the fact
that the NAT commands have changed NAT settings. The condition for the
int-db-change-start
declaration is therefore true. The
config-save
and
reboot

Table of Contents