ADC Class (adc)
Parameters
An ADC class currently has no publicly accessible parameters.
Methods
cli(string command)
Description:
Run the provided
command
exactly as it would be if entered into the CLI.
Returns
:
Map containing
cli_buf
string with a
status
code. Status code will be 0 if the CLI command was successful
and non-zero otherwise.
cli_buf
string will contain the output that would have been displayed on the screen if
this command were typed into the CLI. Additional message string contains description of the status code.
Example:
// if there are fewer than 10 active connections, rebalance the failover peers
$sp = srvpool::getByName(“sp00”);
if ($sp->stats(“ACTIVECONX”) < 10) {
adc::cli(“rebalance”);
}
getSrvpoolList()
Description:
List server pools from the configuration.
Returns
:
A map with the following keys:
srvpool_list
: list of server pool 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 server pools
$list = adc::getSrvpoolList();
// loop through the names in the “srvpool_list”
for ($counter = 0; $counter < count($list["srvpool_list"]); $+) {
// each name in the list is $list["srvpool_list"][$counter]
}
getServerList()
Description:
List servers from the configuration.
Copyright © 2014 Coyote Point Systems, A Subsidiary of Fortinet, Inc.
All Rights Reserved.
695
Equalizer Administration Guide
Содержание 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: ......