Create new scripts – Allied Telesis Routers and Switches User Manual
Page 12

Configure Load Balancer Redundancy on Allied Telesis Routers and Switches
12
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.
# Enable resource 2 because resource 1 is Closing.
enable lb resource=sftp2
# Disable resource 2 because resource 1 is Up.
disable lb resource=sftp2 immediately
!
Script for when the preferred server goes down: sftp1down.scp
!
Script for when the preferred server comes back up: sftp1up.scp
- AT-9800 (110 pages)
- AT-2750TX- (2 pages)
- AT-2701FTX (2 pages)
- AT-2451FTX (238 pages)
- AT-WA1104G-10 (99 pages)
- AlliedWare AR440S (53 pages)
- CG-WLBARGS (58 pages)
- AT A35/SX AT-A35-SX/SC (2 pages)
- AT-2750FX/ (2 pages)
- 86222-10 (14 pages)
- AR44x (22 pages)
- CG-WLBARGMO (56 pages)
- AT 2916T AT-2916T (2 pages)
- RG6x4 Series (3 pages)
- AR441S (6 pages)
- AT-2931SX (144 pages)
- AT-2916SX (74 pages)
- AT-2931SX (140 pages)
- AT-2931SX (18 pages)
- AT-2931SX (76 pages)
- AT-2931SX (136 pages)
- AT-AR236E (19 pages)
- AT-AR236E (36 pages)
- 86241-01 (4 pages)
- MiniMAP 9100 (2 pages)
- POTS24 (2 pages)
- 86241-02 (12 pages)
- AT WCP201G AT-WCP201G-001 (2 pages)
- 86251-05 (40 pages)
- ADSL48 (2 pages)
- 210 (8 pages)
- R800 Series (30 pages)
- NETEXTREME II AT-2973T/4 (176 pages)
- AT-WR2304N (67 pages)
- AT-AR750S-dp (5 pages)
- AT-AR300 (36 pages)
- AT AR750S AT-AR750S (5 pages)
- AT-AR441S (5 pages)
- AT-2916SX/ (2 pages)
- 7112 (2 pages)
- AT-WA1004G (142 pages)
- AlliedWare NetScreen Routers (12 pages)
- AT-27xx (3 pages)
- AT-WR4500 (264 pages)