ADC NITRO APIs

ns

Statistics for ns.

Properties

(click to see Operations )

Name Data Type Permissions Description
clearstats Read-write Clear the statsistics / counters.

Possible values = basic, full
rescpuusagepcnt Read-only Average CPU utilization percentage. Not applicable for a single-CPU system.
cpuusagepcnt Read-only CPU utilization percentage.
cachemaxmemorykb Read-only Largest amount of memory the Citrix ADC can dedicate to caching, up to 50% of available memory. A 0 value disables caching, but the caching module continues to run.
delcmpratio Read-only Ratio of compressible data received to compressed data transmitted.If this ratio is one (uncmp:1.0) that means compression is disabled or we are not able to compress even a single compressible packet.
rescpuusage Read-only Shows average CPU utilization percentage if more than 1 CPU is present.
cpuusage Read-only CPU utilization percentage.
resmemusage Read-only Percentage of memory utilization on Citrix ADC.
comptotaldatacompressionratio Read-only Ratio of total HTTP data received to total HTTP data transmitted.
compratio Read-only Ratio of the compressible data received from the server to the compressed data sent to the client.
cacheutilizedmemorykb Read-only Amount of memory the integrated cache is currently using.
cachemaxmemoryactivekb Read-only Currently active value of maximum memory
cache64maxmemorykb Read-only Largest amount of memory the Citrix ADC can dedicate to caching, up to 50% of available memory. A 0 value disables caching, but the caching module continues to run.
cachepercentoriginbandwidthsaved Read-only Percentage of origin bandwidth saved, expressed as number of bytes served from the integrated cache divided by all bytes served. The assumption is that all compression is done in the Citrix ADC.
cachetotmisses Read-only Intercepted HTTP requests requiring fetches from origin server.
cachemissesrate Read-only Rate (/s) counter for cachetotmisses
cachetothits Read-only Responses served from the integrated cache. These responses match a policy with a CACHE action.
cachehitsrate Read-only Rate (/s) counter for cachetothits
memusagepcnt Read-only Percentage of memory utilization on Citrix ADC.
memuseinmb Read-only Main memory currently in use, in megabytes.
mgmtcpuusagepcnt Read-only Average Management CPU utilization percentage.
pktcpuusagepcnt Read-only Average CPU utilization percentage for all packet engines excluding management PE.
starttimelocal Read-only Time (in local timezone format) when the Citrix ADC was last started.
starttime Read-only Time when the Citrix ADC was last started.
transtime Read-only Time when the last master state transition occurred. You can use this statistic for debugging.
hacurstate Read-only State of the HA node, based on its health, in a high availability setup. Possible values are UP - Indicates that the node is accessible and can function as either a primary or secondary node. DISABLED - Indicates that the high availability status of the node has been manually disabled. Synchronization and propagation cannot take place between the peer nodes. INIT - Indicates that the node is in the process of becoming part of the high availability configuration. PARTIALFAIL - Indicates that one of the high availability monitored interfaces has failed because of a card or link failure. This state triggers a failover. COMPLETEFAIL - Indicates that all the interfaces of the node are unusable, because the interfaces on which high availability monitoring is enabled are not connected or are manually disabled. This state triggers a failover. DUMB - Indicates that the node is in listening mode. It does not participate in high availability transitions or transfer configuration from the peer node. This is a configured value, not a statistic. PARTIALFAILSSL - Indicates that the SSL card has failed. This state triggers a failover. ROUTEMONITORFAIL - Indicates that the route monitor has failed. This state triggers a failover.
hacurmasterstate Read-only Indicates the high availability state of the node. Possible values are STAYSECONDARY - Indicates that the selected node remains the secondary node in a high availability setup. In this case a forced failover does not change the state but, instead, returns an appropriate error message. This is a configured value and not a statistic. PRIMARY - Indicates that the selected node is the primary node in a high availability setup. SECONDARY - Indicates that the selected node is the secondary node in a high availability setup. CLAIMING - Indicates that the secondary node is in the process of taking over as the primary node. This is the intermediate state in the transition of the secondary node to primary status. FORCE CHANGE - Indicates that the secondary node is forcibly changing its status to primary due to a forced failover issued on the secondary node.
sslnumcardsup Read-only Number of SSL cards that are UP. If the number of cards UP is lower than a threshold, a failover is initiated.
sslcards Read-only Number of SSL crypto cards present on the Citrix ADC.
disk0perusage Read-only Used space in /flash partition of the disk, as a percentage. This is a critical counter. You can configure /flash Used (%) by using the Set snmp alarm DISK-USAGE-HIGH command.
disk1perusage Read-only Used space in /var partition of the disk, as a percentage. This is a critical counter. You can configure /var Used (%) by using the Set snmp alarm DISK-USAGE-HIGH command.
disk0avail Read-only Available space in /flash partition of the hard disk.
disk1avail Read-only Available space in /var partition of the hard disk.
totrxmbits Read-only Number of megabytes received by the Citrix ADC.
rxmbitsrate Read-only Rate (/s) counter for totrxmbits
tottxmbits Read-only Number of megabytes transmitted by the Citrix ADC.
txmbitsrate Read-only Rate (/s) counter for tottxmbits
tcpcurclientconn Read-only Client connections, including connections in the Opening, Established, and Closing state.
tcpcurclientconnestablished Read-only Current client connections in the Established state, which indicates that data transfer can occur between the Citrix ADC and the client.
tcpcurserverconn Read-only Server connections, including connections in the Opening, Established, and Closing state.
tcpcurserverconnestablished Read-only Current server connections in the Established state, which indicates that data transfer can occur between the Citrix ADC and the server.
httptotrequests Read-only Total number of HTTP requests received.
httprequestsrate Read-only Rate (/s) counter for httptotrequests
httptotresponses Read-only Total number of HTTP responses sent.
httpresponsesrate Read-only Rate (/s) counter for httptotresponses
httptotrxrequestbytes Read-only Total number of bytes of HTTP request data received.
httprxrequestbytesrate Read-only Rate (/s) counter for httptotrxrequestbytes
httptotrxresponsebytes Read-only Total number of bytes of HTTP response data received.
httprxresponsebytesrate Read-only Rate (/s) counter for httptotrxresponsebytes
ssltottransactions Read-only Number of SSL transactions on the Citrix ADC
ssltransactionsrate Read-only Rate (/s) counter for ssltottransactions
ssltotsessionhits Read-only Number of SSL session reuse hits on the Citrix ADC.
sslsessionhitsrate Read-only Rate (/s) counter for ssltotsessionhits
appfirewallrequests Read-only HTTP/HTTPS requests sent to your protected web servers via the Application Firewall.
appfirewallrequestsrate Read-only Rate (/s) counter for appfirewallrequests
appfirewallresponses Read-only HTTP/HTTPS responses sent by your protected web servers via the Application Firewall.
appfirewallresponsesrate Read-only Rate (/s) counter for appfirewallresponses
appfirewallaborts Read-only Incomplete HTTP/HTTPS requests aborted by the client before the Application Firewall could finish processing them.
appfirewallabortsrate Read-only Rate (/s) counter for appfirewallaborts
appfirewallredirects Read-only HTTP/HTTPS requests redirected by the Application Firewall to a different Web page or web server. (HTTP 302)
appfirewallredirectsrate Read-only Rate (/s) counter for appfirewallredirects
enainbwlimitexceeded Read-only Inbound BW Limits Exceeded
enainbwlimitexceededrate Read-only Rate (/s) counter for enainbwlimitexceeded
enaoutbwlimitexceeded Read-only Outbound BW Limits Exceeded
enaoutbwlimitexceededrate Read-only Rate (/s) counter for enaoutbwlimitexceeded
enappslimitexceeded Read-only PPS Limits Exceeded
enappslimitexceededrate Read-only Rate (/s) counter for enappslimitexceeded
enaconntracklimitexceeded Read-only Conn-Tracking Limits Exceeded
enaconntracklimitexceededrate Read-only Rate (/s) counter for enaconntracklimitexceeded
enalinklocallimitexceeded Read-only Link-Local Limits Exceeded
enalinklocallimitexceededrate Read-only Rate (/s) counter for enalinklocallimitexceeded
misccounter0 Read-only Miscellaneous Counter 0.
misccounter1 Read-only Miscellaneous Counter 1.
numcpus Read-only The number of CPUs on the Citrix ADC.

Operations

(click to see Properties )

  • GET (ALL)

Some options that you can use for each operations:

  • Getting warnings in response: NITRO allows you to get warnings in an operation by specifying the 'warning' query parameter as 'yes'. For example, to get warnings while connecting to the NetScaler appliance, the URL is as follows:

    http:// <netscaler-ip-address> /nitro/v1/config/login?warning=yes

    If any, the warnings are displayed in the response payload with the HTTP code '209 X-NITRO-WARNING'.

  • Authenticated access for individual NITRO operations: NITRO allows you to logon to the NetScaler appliance to perform individual operations. You can use this option instead of creating a NITRO session (using the login object) and then using that session to perform all operations,

    To do this, you must specify the username and password in the request header of the NITRO request as follows:

    X-NITRO-USER: <username>

    X-NITRO-PASS: <password>

    Note: In such cases, make sure that the request header DOES not include the following:

    Cookie:NITRO_AUTH_TOKEN= <tokenvalue>

*Note: * Mandatory parameters are marked in red and placeholder content is marked in green

get (all)

URL: http:// <netscaler-ip-address> /nitro/v1/stat/ns Query-parameters: args http:// <netscaler-ip-address> /nitro/v1/stat/ns? args=detail: <Boolean_value> ,fullvalues: <Boolean_value> ,ntimes: <Double_value> ,logfile: <String_value> ,clearstats: <String_value>

Use this query-parameter to get ns resources based on additional properties.

attrs http:// <netscaler-ip-address> /nitro/v1/stat/ns? attrs=property-name1,property-name2

Use this query parameter to specify the resource details that you want to retrieve.

Note: To retrieve rate counters using attrs option, please provide parent counter name in attrs. e.g., to get “rxmbitsrate” attribute in the STAT response, attrs should be “totrxmbits”

HTTP Method: GET

Request Headers:

Cookie:NITRO_AUTH_TOKEN= <tokenvalue>

Accept:application/json

Response: HTTP Status Code on Success: 200 OK

HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

Response Header:

Content-Type:application/json

Response Payload:

{  "ns": [ {
"cachehitsrate":<Double_value>,
"appfirewallredirectsrate":<Double_value>,
"enaconntracklimitexceededrate":<Double_value>,
"ssltottransactions":<Double_value>,
"sslnumcardsup":<Double_value>,
"transtime":<String_value>,
"enainbwlimitexceeded":<Double_value>,
"enaoutbwlimitexceeded":<Double_value>,
"cacheutilizedmemorykb":<Double_value>,
"hacurmasterstate":<String_value>,
"httprxrequestbytesrate":<Double_value>,
"httptotrxresponsebytes":<Double_value>,
"disk1perusage":<Double_value>,
"rescpuusagepcnt":<Double_value>,
"appfirewallaborts":<Double_value>,
"disk1avail":<Double_value>,
"enainbwlimitexceededrate":<Double_value>,
"appfirewallresponsesrate":<Double_value>,
"tcpcurserverconnestablished":<Double_value>,
"delcmpratio":<Double_value>,
"appfirewallresponses":<Double_value>,
"tcpcurclientconn":<Double_value>,
"enappslimitexceeded":<Double_value>,
"tcpcurserverconn":<Double_value>,
"rescpuusage":<Double_value>,
"comptotaldatacompressionratio":<Double_value>,
"appfirewallrequests":<Double_value>,
"httprxresponsebytesrate":<Double_value>,
"disk0perusage":<Double_value>,
"appfirewallabortsrate":<Double_value>,
"appfirewallrequestsrate":<Double_value>,
"totrxmbits":<Double_value>,
"tottxmbits":<Double_value>,
"ssltotsessionhits":<Double_value>,
"cachemissesrate":<Double_value>,
"cachemaxmemorykb":<Double_value>,
"appfirewallredirects":<Double_value>,
"mgmtcpuusagepcnt":<Double_value>,
"cpuusage":<Double_value>,
"httptotrequests":<Double_value>,
"httptotresponses":<Double_value>,
"cachetothits":<Double_value>,
"enalinklocallimitexceeded":<Double_value>,
"misccounter1":<Double_value>,
"numcpus":<Double_value>,
"pktcpuusagepcnt":<Double_value>,
"enalinklocallimitexceededrate":<Double_value>,
"enappslimitexceededrate":<Double_value>,
"ssltransactionsrate":<Double_value>,
"httprequestsrate":<Double_value>,
"cachemaxmemoryactivekb":<Double_value>,
"httpresponsesrate":<Double_value>,
"compratio":<Double_value>,
"memuseinmb":<Double_value>,
"disk0avail":<Double_value>,
"txmbitsrate":<Double_value>,
"sslsessionhitsrate":<Double_value>,
"resmemusage":<Double_value>,
"sslcards":<Double_value>,
"hacurstate":<String_value>,
"rxmbitsrate":<Double_value>,
"cache64maxmemorykb":<Double_value>,
"starttime":<String_value>,
"tcpcurclientconnestablished":<Double_value>,
"starttimelocal":<String_value>,
"cpuusagepcnt":<Double_value>,
"cachepercentoriginbandwidthsaved":<Double_value>,
"misccounter0":<Double_value>,
"cachetotmisses":<Double_value>,
"enaconntracklimitexceeded":<Double_value>,
"httptotrxrequestbytes":<Double_value>,
"enaoutbwlimitexceededrate":<Double_value>,
"memusagepcnt":<Double_value>
}]}

<!--NeedCopy-->
ns