Smart Control
getInstanceList()
Description:
List server instances for this server pool from the configuration.
Returns:
A map with the following keys:
si_list
: list of server instance 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 instances from server pool ‘sp00’
$sp = srvpool::getByName(“sp00”);
$list = $sp->getInstanceList();
// loop through the names in the “si_list”
for ($counter = 0; $counter < count($list["si_list"]); $+) {
// each name in the list is $list["si_list"][$counter]
}
getStatusDescription()
Description:
Get the status of this server pool as a string.
Returns:
A string containing the status of this server pool.
Example:
$sp = srvpool::getByName(“sp00”);
// print the status – accessible using ‘lastrun’ command.
echo $sp->getStatusDescription();
getStatusResp()
Description:
Get the status of this server pool as a numeric value.
Returns
: A numeric value indicating the status:
0: There are no problems with this server pool.
1: There is an ‘informational’ status available, but the server pool is functional.
2: There is a problem with this server pool.
Example:
// If there is a problem with this pool, print the status (accessible using
‘lastrun’ command).
$sp = srvpool::getByName(“sp00”);
if ($sp->getStatusResp() == 2) {
echo $sp->getStatusDescription();
}
686
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: ......