beautypg.com

Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 2004

background image

Triggers Introduction

Software Reference for x310 Series Switches

75.4

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

Step 4:

Set the time and days that the trigger can activate on

By default triggers can activate at any time of the day, on all days. If you want your
trigger to activate only during a specific time of the day, use the command:

If you want your trigger to activate only on a specific date, use the command:

If you want the trigger to activate only on specific days of the week, use the
command:

Note that you can set either a specific date, or specific weekdays, but not both.

Step 5:

Specify how often the trigger can activate

By default, triggers can activate an unlimited number of times, as long as the trigger
conditions are met. To set a limit on the number of times a trigger can activate, use
the command:

You device maintains two counters that track the number of times a trigger has
activated. One counts the total number of times the trigger is activated and is only
reset if the device restarts, or when the trigger is destroyed. The other counter tracks
the permitted number of repetitions. To reset this counter, use the

repeat command

on page 77.6

.

Step 6:

Add the script to the trigger

You can add up to five scripts to the trigger. When a trigger is activated, it executes
the scripts in sequence, with the lowest numbered script activated first. The first script
runs to completion before the next script begins. To add a script, use the command:

Step 7:

Specify a description for the trigger

Specify a description for the trigger, so that you can easily identify the trigger in show
commands and log output. Use the command:

Step 8:

Verify the trigger’s configuration

To check the configuration of the trigger, use the command:

awplus(config-trigger)#

time {[after <hh:mm:ss>]
[before <hh:mm:ss>]}

awplus(config-trigger)#

day <1-31> <month> <2000-2035>

awplus(config-trigger)#

day <weekday>

awplus(config-trigger)#

repeat {forever|no|once|yes|
<1-4294967294>}

awplus(config-trigger)#

script <1-5> {<filename>}

awplus(config-trigger)#

description <description>

awplus(config-trigger)#

show trigger [<1-250>|counter|
full]