Script - Allied Telesis AT-AR3050S Command Reference Manual

Next-generation firewall
Hide thumbs Also See for AT-AR3050S:
Table of Contents

Advertisement

T
C
RIGGER
OMMANDS

SCRIPT

script
Overview
This command specifies one or more scripts that are to be run when the trigger
activates. You can add up to five scripts to a single trigger.
The sequence in which the trigger runs the scripts is specified by the number you
set before the name of the script file. One script is executed completely before the
next script begins.
Scripts may be either ASH shell scripts, indicated by a . sh filename extension suffix,
or AlliedWare Plus™ scripts, indicated by a . scp filename extension suffix.
AlliedWare Plus™ scripts only need to be readable.
The no variant of this command removes one or more scripts from the trigger's
script list. The scripts are identified by either their name, or by specifying their
position in the script list. The all parameter removes all scripts from the trigger.
script <1-5> {<filename>}
Syntax
no script {<1-5>|<filename>|all}
Mode
Trigger Configuration
Examples
To configure trigger 71 to run the script flash:/cpu_trig.sh in position 3 when the
trigger activates, use the commands:
awplus#
awplus(config)#
awplus(config-trigger)#
To configure trigger 99 to run the scripts flash:reconfig.scp, flash:cpu_trig.sh
and flash:email.scp in positions 2, 3 and 5 when the trigger activates, use the
following commands:
awplus#
awplus(config)#
awplus(config-trigger)#
flash:/cpu_trig.sh 5 flash:/email.scp
To remove the scripts 1, 3 and 4 from trigger 71's script list, use the commands:
awplus#
awplus(config)#
awplus(config-trigger)#
C613-50077-01 REV A
Parameter
Description
<1-5>
The position of the script in execution sequence. The trigger runs the
lowest numbered script first.
<filename>
The path to the script file.
configure terminal
trigger 71
configure terminal
trigger 99
configure terminal
trigger 71
Command Reference for AT-AR3050S
AlliedWare Plus™ Operating System - Version 5.4.5-2.x
script 3 flash:/cpu_trig.sh
script 2 flash:/reconfig.scp 3
no script 1 3 4
2044

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents