Smart Control
Server Instance Class (si)
The following are Server Instance parameters. Refer to Server Pool and Server Instance
Commands for descriptions.
Parameters
name(string)
probe_port (int)
quiesce (bool)
sp (object): The server pool that this server instance belongs to, as retrieved using
srvpool::getByName().
weight (int)
hot_spare (bool)
probe_l4 (bool)
maxconn (int)
persist_override (bool)
strict_maxconn (bool)
Methods
getByName(object srvpool, string name)
Description:
Fetch the server instance named
‘name’
from the server pool object
srvpool
. The server pool object
should have been previously fetched with
srvpool::getByName().
Returns:
On success: server instance object populated with all of its properties. On failure: An exception with a message
and an error code.
Example:
// Fetch a server instance named ‘sv00’
$sp = srvpool::getByName(“sp00”);
$si = si::getByName($sp, "sv00");
getStatusDescription()
Description:
Get the status of this server instance as a string.
Returns:
A string containing the status of this server instance.
Example:
$sp = srvpool::getByName(“sp00”);
$si = si::getByName($sp, "sv00");
// print the status – accessible using ‘lastrun’ command.
echo $si->getStatusDescription();
692
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: ......