100

AT-8800 Series Switch User Guide

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 Trigger 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-idMODULE=SWITCH EVENT={LIGHTOFFLIGHTON} PORT=port [AFTER=hh:mm] [BEFORE=hh:mm] [DATE=dateDAYS=day-list] [NAME=name] [REPEAT={YESNOONCEFOREVERcount}] [SCRIPT=filename...] [STATE={ENABLEDDISABLED}] [TEST={YESNOONOFF}]

SET TRIGGER=trigger-idPORTS={port-listALL} [AFTER=hh:mm] [BEFORE=hh:mm] [DATE=dateDAYS=day-list] [NAME=name] [REPEAT={YESNOONCEFOREVERcount}] [TEST={YESNOONOFF}]

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:

 

 

 

 

Parameter

Description

 

 

 

 

PORT=port

The port on which the event will activate the trigger.

Script Parameters

 

The trigger passes the following parameter(s) to the script:

 

 

 

 

Argument

Description

 

 

 

 

%1

The port number of the port which has just gone down.

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:

 

 

 

 

Parameter

Description

 

 

 

 

PORT=port

The port on which the event will activate the trigger.

Script Parameters

 

The trigger passes the following parameter(s) to the script:

ArgumentDescription

%1

The port number of the port which has just come up.

 

 

Software Release 2.6.1 C613-02039-00 REV A

Page 100
Image 100
Allied Telesis 2.6.1 manual Triggers, Event, Description, Parameters