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.
Содержание Equalizer GX Series
Страница 18: ......
Страница 32: ...Overview 32 Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc ...
Страница 42: ......
Страница 52: ......
Страница 64: ......
Страница 72: ......
Страница 76: ......
Страница 123: ...Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc All Rights Reserved 123 Equalizer Administration Guide ...
Страница 228: ......
Страница 238: ......
Страница 411: ...Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc All Rights Reserved 411 Equalizer Administration Guide ...
Страница 459: ...Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc All Rights Reserved 459 Equalizer Administration Guide ...
Страница 476: ......
Страница 492: ......
Страница 530: ......
Страница 614: ......
Страница 626: ......
Страница 638: ......
Страница 678: ......
Страница 732: ...Using SNMP Traps 732 Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc ...
Страница 754: ......
Страница 790: ......
Страница 804: ......
Страница 842: ......
Страница 847: ...Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc All Rights Reserved 847 Equalizer Administration Guide ...
Страница 866: ......