Table 2-1 lists the methods that are used in our statistics gathering tool, along with the name and a brief description of each one's return object. We are going to use some of them in our code. You should be able to modify the code quite easily and add more items for the tool to query. If you find yourself needing more details about more specific items, such as AAA, GSLB or Compression, please refer to Netscaler API documentation, which is available to download from the Netscaler management web page.
Table 2-1. Statistic Web Service Methods and Their Return Values Used in Our Example
Description statsystem _internaltemp The internal system temperature in C.
_rescpuusage The combined CPU usage expressed as a percentage.
_memusagepcnt The memory usage expressed as a percentage.
statprotocolhttp _httprequestsrate The total HTTP(S) request rate (per second).
The IP address of the virtual server.
The port number of the virtual server
The state of the virtual server:
UP: The Virtual server is running.
DOWN: All services failed in the virtual server.
OUT OF SERVICE: The virtual server is disabled.
The health of the virtual server. Expressed as the percentage of services that are in the UP state.
The rate of requests per second the virtual server is receiving.
_primaryipaddress The IP address of the virtual server.
_primaryport The port number of the virtual server.
_state The state of the virtual server:
UP: The service is running.
DOWN: The service is not running on the physical server. OUT OF SERVICE: The service is disabled.
_requestsrate The rate of requests per second the service is receiving.
Was this article helpful?