Smart Control
Get the status of this server as a numeric value.
Returns
: A numeric value indicating the status:
0: There are no problems with this server.
1: There is an ‘informational’ status available, but the server is functional.
2: There is a problem with this server.
Example:
// If there is a problem with this server, print the status (accessible using
‘lastrun’ command).
$sv = server::getByName(“sv00”);
if ($sv->getStatusResp() == 2) {
echo $sv->getStatusDescription();
}
getVid ()
Description:
Get the VID that the system thinks this server belongs on.
Returns:
A string value indicating the VID, or “unassigned” if no appropriate network is found.
Example:
// Print out ‘unknown’ or ‘known’ network, accessible using the ‘lastrun’ command.
$sv = server::getByName(“sv00”);
if ($sv->getVid() == "unassigned") {
echo "Unknown network";
} else {
echo "Known network";
}
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 server <
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:
$sv = server::getByName(“sv00”);
if ($sv->stats(“TOTALPRCSD”) > 100) {
echo “Processed more than 100 requests through sv00”;
}
690
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: ......