Allied Telesis Routers and Switches manual Create New Scripts

Models: Routers and Switches

1 15
Download 15 pages 18.5 Kb
Page 12
Image 12
Create New Scripts

Create New Scripts

This section describes the scripts that the trigger facility runs when the preferred SFTP server goes down or comes back up again. The scripts enable and disable the second resource. Load the same scripts onto both load balancer 1 and load balancer 2.

The load balancers send pings every 60 seconds to check the health of each resource. Therefore, the load balancer can take up to 60 seconds to detect that the server has gone down or come up again.

!Script for when the preferred server goes down: sftp1down.scp

#Enable resource 2 because resource 1 is Closing.

enable lb resource=sftp2

!Script for when the preferred server comes back up: sftp1up.scp

#Disable resource 2 because resource 1 is Up.

disable lb resource=sftp2 immediately

Configure Load Balancer Redundancy on Allied Telesis Routers and Switches

12

Page 12
Image 12
Allied Telesis Routers and Switches manual Create New Scripts, Script for when the preferred server goes down sftp1down.scp