Triggers – Allied Telesis Rapier Switch User Manual
Page 58

58
Rapier Switch User Guide
Rapier Switch Software Release 2.2.1
C613-02013-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 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-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:
Table 13: Parameters in the output of the SHOW IP IGMP command.
Parameter
Meaning
Status
The status of IGMP; one of “Enabled” or “Disabled”.
Default Query Interval
The default interval at which Host Membership Queries are
sent.
Default Timeout Interval
The default interval after which entries will be removed
from the group database, if no Host Membership Report is
received.
Group List
A list of multicast group memberships for this interface.
Group
The group multicast address.
Last Adv.
The last host to advertise the membership report.
Refresh time
The time interval (in seconds) until the membership group
will be deleted if it does not receive another membership
report before then.
Parameter
Description
PORT=port
The port on which the event will activate the trigger.