Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 2017

Advertising
background image

Triggers Configuration

Software Reference for x310 Series Switches

C613-50046-01 REV A

AlliedWare Plus

TM

Operating System - Version 5.4.4C

76.11

Capture Show Output and Save to a USB
Storage Device

The following configuration allows you to automatically capture output from the

show

tech-support

command when a USB storage device is inserted into the switch. It uses a

script called by the USB storage device trigger to capture the show tech-support output
and places this output in a file on the USB storage device.

Trigger 9 activates the script shtech-sup.scp when a USB storage device is inserted in
the switch

1.

Create the shtech-sup.scp script

Create a configuration script with the commands that are executed when the trigger
conditions are met. You can either create the configuration script using the CLI with
the

edit

command or create a script on a PC then load it onto your device using the

copy (URL)

command. The configuration script for this example is:

2.

Configure trigger 9

To create trigger 9, use the commands:

Set the trigger to activate on the insertion of a USB storage device:

Add the script shtech-sup.scp to the trigger:

3.

Verify the configuration

To check the configuration of the triggers, use the command:

!
enable
show tech-support outfile usb:support.txt.gz
exit
end
!

awplus#

configure terminal

awplus(config)#

trigger 9

awplus(config-trigger)#

type usb in

awplus(config-trigger)#

script 1 shtech-sup.scp

awplus#

show trigger 9

Advertising