Smart Control
Returns:
A map with the following keys:
server_list
: list of server names as strings
message:
a status message indicating success or failure of the operation
status:
a status code: 0 indicates success, nonzero indicates failure
Example
:
// Get list of servers
$list = adc::getServerList();
// loop through the names in the “server_list”
for ($counter = 0; $counter < count($list["server_list"]); $+) {
// each name in the list is $list["server_list"][$counter]
}
ipmi
Description:
Issue a power on/power off/shutdown/reset command to a BMC server in the following sequence - IP Address,
User name, Password, Command.
Returns:
Output buffer with message string and status (error) code. The status code will be 0 if the ipmi command was
successful otherwise it will be non-zero. In case of error, the out_buf string will contain the output returned
from ipmitool else it will be blank. Additional message string contains a description of the status code.
Example:
//There are two servers attached to the server pool. If there are more than 1000
connections on the server pool, then switch on server-2 and if the connections
drop to 500, then switch off server-2. This is can be implemented on peak traffic,
where the maximum number of servers should be UP and on non-peak traffic, where
the minimum number of servers should be UP.
$sp = srvpool::getByName("sp00");
if ($sp->stats("ACTIVECONX") > 1000) {
$ret = adc::ipmi("1.1.1.1","root","abcd","poweron");
} else if ($sp->stats("ACTIVECONX") < 500) {
$ret = adc::ipmi("1.1.1.2","root","xyz","poweroff");
}
696
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: ......