beautypg.com

Run-at – B&B Electronics WLNN-AN(ER,SE,SP.EK)-DP551 - Manual User Manual

Page 193

background image

Airborne Enterprise CLI Reference Manual

193

run

Command

run

Arguments

[ASCII Text string]

Security

Level

3 (config)

Device Type All

Default

Description

Attempts to run the specified CLI script file stored within the module's /var/etc/config/scripts directory.

Scripts execute at the "auth" level of the user executing the script, unless the script itself contains an
"auth" command.

Each non-blank line of a script is executed as if it were entered into the CLI by the user, except for
comment lines which begin with a "#" character.

A script runs to completion or to when a command results in an error. If a command is prefixed with "-

", any error results are ignored, and the script continues.

Scripts may be nested 8 levels deep.

run-at

Command

run-at

Arguments

[eventname] [ASCII Text string | disable | clear]

Security
Level

3 (config)

Device Type All

Default

Description

When [eventname] takes place, run the specified script.

If "disable" is specified, no script is run.

If "clear" is specified, all information about handling [eventname] is removed.

Event scripts are unauthenticated when run (as if they were run from a serial port). To perform non-

trivial commands, the script must therefore first contain an "auth" command.

Currently-defined eventnames include:

startup

device power-on

config

when a configuration is applied (i.e. “apply-cfg”)

wl-down

when the radio loses its Association or IP address

wl-up

when the radio is both Associated and has an IP address

eth-down

when the Ethernet loses its link or IP address

eth-up

When the Ethernet negotiates its link and has an IP address