Smart Control
Sample Trigger Script for Rebooting the System
The following is an example of a trigger script that will reboot the system (causing a failover) if a
critical IP address cannot be reached or"‘pinged". It should be noted that the script uses string
parsing and will consume a fair amount of CPU resources. It is recommended that you use this
type of script if no other mechanisms are available.
$out = adc::cli("ping 10.0.0.68");
// if the ping fails, the string “0 packets received” is output, so look
for that
if (strstr($out['cli_buf'], "0 packets received")) {
adc::cli(“reboot”);
}
698
Copyright © 2014 Coyote Point Systems, A Subsidiary of Fortinet, Inc.
Summary of Contents for Equalizer GX Series
Page 18: ......
Page 32: ...Overview 32 Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc ...
Page 42: ......
Page 52: ......
Page 64: ......
Page 72: ......
Page 76: ......
Page 228: ......
Page 238: ......
Page 476: ......
Page 492: ......
Page 530: ......
Page 614: ......
Page 626: ......
Page 638: ......
Page 678: ......
Page 732: ...Using SNMP Traps 732 Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc ...
Page 754: ......
Page 790: ......
Page 804: ......
Page 842: ......
Page 866: ......