Allied Telesis at-8700xl series switch manual Triggers, Event, Description, Parameters

Models: at-8700xl series switch

1 81
Download 81 pages 57.37 Kb
Page 71
Image 71
Triggers

Switching

71

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 AT-8700XL Series 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-02030-00 REV B

Page 71
Image 71
Allied Telesis at-8700xl series switch manual Triggers, Event, Description, Parameters