Triggers Configuration
©2008 Allied Telesis Inc. All rights reserved.
60.2
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
Software Version 5.2.1
Introduction
The chapter describes how to configure triggers to:
■
restricting internet access during work hours
■
change the gateway set when a device becomes unreachable
■
tracking unusual CPU or RAM usage by your device
For more information about triggers, see
Chapter 59, Triggers Introduction
and
Chapter 61,
Trigger Commands
.
Restrict Internet Access
In the following configuration the ACME company wants to restrict its employees from
accessing popular video sharing websites as this is causing bandwidth problems during work
hours. The ACME company is happy for workers to access the site after work hours.
Employee PCs at ACME are on vlan2. Two triggers with associated configuration scripts are
needed:
■
Trigger one activates at 8.30am and runs a script called shutdown.cfg. This script adds
commands to restrict access to the specified sites
■
Trigger two activates at 5.30pm and runs the script called open.cfg. This script removes the
configuration specified by shutdown.cfg.
1.
Create the shutdown.cfg configuration script
Create a configuration script using Access Control List commands to restrict users on
vlan2 from accessing the specific sites.
2.
Create the open.cfg configuration script
Create a configuration script to remove the ACL configuration specified in the
shutdown.cfg file.
3.
Configure trigger 1
To create trigger one, use the command:
awplus(config)#
trigger 1
Set the trigger to activate at 8:30 am, by using the command:
awplus(config-trigger)#
type time 08:30
Set the trigger to activate on Monday, Tuesday, Wednesday, Thursday and Friday:
awplus(config-trigger)#
day mon tue wed thur fri
Add the configuration script “shutdown.cfg” to the trigger, by using the command:
awplus(config-trigger)#
script 1 shutdown.cfg
Specify a helpful description, such as “stops access to video sharing sites”. Use the
command:
awplus(config-trigger)#
description stops access to video
sharing sites