An ADC class currently has no publicly accessible parameters.
cli(string command)
Description: Run the provided command exactly as it would be if entered into the CLI.
Returns: Map containing
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:
Example: // Get list of server pools // loop through the names in the “srvpool_list” for ($counter = 0; $counter < count($list["srvpool_list"]); $counter++) { // each name in the list is $list["srvpool_list"][$counter] } |
getServerList()
Description: List servers from the configuration.
Returns: A map with the following keys:
Example: // Get list of servers // loop through the names in the “server_list” for ($counter = 0; $counter < count($list["server_list"]); $counter++) { // each name in the list is $list["server_list"][$counter] } |