Introduction, Trigger facility, Configuring a trigger – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 2002
![background image](/manuals/427254/2002/background.png)
Triggers Introduction
Software Reference for x310 Series Switches
75.2
AlliedWare Plus
TM
Operating System - Version 5.4.4C
C613-50046-01 REV A
Introduction
This chapter provides information about the Trigger facility on this switch. For specific
configuration examples, see
Chapter 76, Triggers Configuration
. For detailed
descriptions of the commands used to configure triggers, see
.
Trigger Facility
The Trigger facility provides a powerful mechanism for automatic and timed management
of your device by automating the execution of commands in response to certain events.
For example, you can use triggers to deactivate a service during the weekends, or to
collect diagnostic information when the CPU usage is high.
A trigger is an ordered sequence of scripts that is executed when a certain event occurs. A
script is a sequence of commands stored as a plaintext file on a file subsystem accessible
to the device, such as Flash memory. Each trigger may reference multiple scripts and any
script may be used by any trigger. When an event activates a trigger, the trigger executes
the scripts associated with it in sequence. One script is executed completely before the
next script begins. Various types of triggers are supported, each activated in a different
way.
Configuring a Trigger
The following describes the general steps to configure a trigger. For specific configuration
examples, see
Chapter 76, Triggers Configuration
.
Step 1:
Create a configuration script
Create a configuration script with the commands you would like executed when the
trigger conditions are met. To create the configuration script using the CLI, use the
command:
Alternatively, you can create a script on a PC then load it onto your device using the
command.
Step 2:
Enter the trigger configuration mode
You must be in the Global Configuration mode to reach the Trigger Configuration
mode. Use the command:
To create a trigger, and enter its configuration mode, use the command:
awplus#
awplus#
configure terminal
awplus(config)#