stats(string statName)
Description:
Get the value of the statistic named ‘
statName
’. The available statistics are the same as those displayed in the
CLI when using the
srvpool <name> stats
command.
Returns:
On success, the last-measured value of this statistic. On failure, an exception describing what went wrong:
invalid statistic name or no statistic specified.
Example:
$sp = srvpool::getByName(“sp00”);
if ($sp->stats(“TOTALPRCSD”) > 100) {
echo “Processed more than 100 requests through sp00”;
}
delete(optional Boolean forceFlag)
Description:
Delete this server pool. Can only be used on a server pool object which has been retrieved using
srvpool::getByName()
, and it must not have been modified since the last time that it was retrieved. If the
server pool is in use by another object in the system, the flag
forceFlag
must be set to ‘
TRUE
’ in order for it
to be deleted.
Returns:
Map containing message string with a status code. Status code will be 0 if the deletion was successful and non-
zero otherwise.
Example:
$sp = srvpool::getByName(“sp00”);
// Try to delete it, if it fails, force the deletion.
$value = $sp->delete();
if ($value[“status”] != 0) {
// Print out the reason for the failure, accessible using ‘lastrun’ command
echo “Failed to delete because: “, $value[“message”];
$value = $sp->delete(TRUE);
}
commit()
Description:
Push the changes to this server pool into the permanent configuration. If this server pool object was created
using
getByName()
, this operation is treated as a modify. If it was created using the new keyword, it is
treated as an addition.
Returns:
Map containing message string with a
status
code. Status code will be 0 if the commit was successful and
non-zero otherwise.
Example:
// Create a new server pool, then modify it
Copyright © 2014 Coyote Point Systems, A Subsidiary of Fortinet, Inc.
All Rights Reserved.
687
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: ......