Allied Telesis 2.6.1 Switch User Manual


 
100 AT-8800 Series Switch User Guide
Software Release 2.6.1
C613-02039-00 REV A
Triggers
The Trigger Facility can be used to automatically run specified command
scripts when particular triggers are activated. When a trigger is activated by an
event, global parameters and parameters specific to the event are passed to the
script that is run. For a full description of the Trigger Facility, see the Tr igger
Facility chapter in the Rapier Switch Software Reference.
The switch can generate triggers to activate scripts when a fibre uplink port
loses or gains coherent light. To create or modify a switch trigger, use the
commands:
CREATE TRIGGER=trigger-id MODULE=SWITCH
EVENT={LIGHTOFF|LIGHTON} PORT=port [AFTER=hh:mm]
[BEFORE=hh:mm] [DATE=date|DAYS=day-list] [NAME=name]
[REPEAT={YES|NO|ONCE|FOREVER|count}] [SCRIPT=filename...]
[STATE={ENABLED|DISABLED}] [TEST={YES|NO|ON|OFF}]
SET TRIGGER=trigger-id PORTS={port-list|ALL} [AFTER=hh:mm]
[BEFORE=hh:mm] [DATE=date|DAYS=day-list] [NAME=name]
[REPEAT={YES|NO|ONCE|FOREVER|count}]
[TEST={YES|NO|ON|OFF}]
The following sections list the events that may be specified for the EVENT
parameter, the parameters that may be specified as module-specific-parameters,
and the arguments passed to the script activated by the trigger.
Event LINKDOWN
Description The port link specified by the PORT parameter has just gone down.
Parameters The following command parameter(s) must be specified in the CREATE/SET
TRIGGER commands:
Script Parameters The trigger passes the following parameter(s) to the script:
Event LINKUP
Description The port link specified by the PORT parameter has just come up.
Parameters The following command parameter(s) must be specified in the CREATE/SET
TRIGGER commands:
Script Parameters The trigger passes the following parameter(s) to the script:
Parameter Description
PORT=port The port on which the event will activate the trigger.
Argument Description
%1 The port number of the port which has just gone down.
Parameter Description
PORT=port The port on which the event will activate the trigger.
Argument Description
%1 The port number of the port which has just come up.