This article contains information about the newnslog Compression (CMP) counters and a brief description of the counters.
Log on to the ADC using an SSH client, change to SHELL, navigate to the /var/nslog directory, and then use the ‘nsconmsg’ command to see comprehensive statistics using the different counters available. For the detailed procedure refer to Citrix Blog - NetScaler ‘Counters’ Grab-Bag!.
The following table lists the different newnslog CMP counters and the matching SNMP object name:
Counter |
Description |
cmp_tot_Requests |
Number of HTTP compression requests the NetScaler appliance receives for which the response is successfully compressed. For example, after you enable compression and configure services, if you send requests to the NetScaler appliance with the following header information: “Accept-Encoding: gzip, deflate”, and NetScaler compresses the corresponding response, this counter is incremented. |
cmp_tot_txbytes |
Number of bytes the NetScaler appliance sends to the client after compressing the response from the server |
cmp_tot_rxbytes |
Number of bytes that can be compressed, which the NetScaler appliance receives from the server. This gives the content length of the response that the NetScaler receives from server |
cmp_tot_txpkts |
Number of HTTP packets that the NetScaler appliance sends to the client after compressing the response from the server |
cmp_tot_rxpkts |
Number of HTTP packets that can be compressed, which the NetScaler appliance receives from the server |
cmp_saving |
Bandwidth saving from TCP compression expressed as percentage |
cmp_saving_snmp |
Bandwidth saving from TCP compression expressed as percentage |
cmp_ratio |
Ratio of the compressible data received from the server to the compressed data sent to the client |
cmp_ratio_snmp |
Ratio of compressible data received to compressed data transmitted, expressed as percentage |
cmp_tot_ratio |
Ratio of total HTTP data received to total HTTP data transmitted (uncmp:1.0) |
cmp_tot_ratio_snmp |
Ratio of total HTTP data received to total HTTP data transmitted, expressed as percentage |
tcpcmp_tot_txbytes |
Number of bytes that the NetScaler appliance sends to the client after compressing the response from the server |
tcpcmp_tot_rxbytes |
Number of bytes that can be compressed, which the NetScaler appliance receives from the server. This gives the content length of the response that the NetScaler appliance receives from server. |
tcpcmp_tot_txpkts |
Number of TCP packets that the NetScaler appliance sends to the client after compressing the response from the server |
tcpcmp_tot_rxpkts |
Total number of compressible packets received by NetScaler |
tcpcmp_saving |
Bandwidth saving from TCP compression, expressed as percentage |
tcpcmp_saving_snmp |
Bandwidth saving from TCP compression, expressed as percentage |
tcpcmp_ratio |
Ratio of compressible data received to compressed data transmitted (uncmp:1.0) |
tcpcmp_ratio_snmp |
Ratio of compressible data received to compressed data transmitted, expressed as percentage |
tcpcmp_tot_quantum |
Number of times the NetScaler appliance compresses a quantum of data. The NetScaler appliance buffers the data received from the server until it reaches the quantum size and then compresses the buffered data and transmits to the client. |
tcpcmp_tot_push |
Number of times the NetScaler appliance compresses data on receiving a TCP PUSH flag from the server. The PUSH flag ensures that data is compressed immediately without waiting for the buffered data size to reach the quantum size. |
tcpcmp_tot_eoi |
Number of times the NetScaler appliance compresses data on receiving End Of Input (FIN packet). When the NetScaler appliance receives End Of Input (FIN packet), it compresses the buffered data immediately without waiting for the buffered data size to reach the quantum size. |
tcpcmp_tot_timer |
Number of times the NetScaler compresses data on expiration of data accumulation timer. The timer expires if the server response is very slow and consequently, the NetScaler appliance does not receive response for a certain amount of time. In such conditions, the NetScaler appliance compresses the buffered data immediately without waiting for the buffered data size to reach the quantum size. |
decmp_tot_rxpkts |
Total number of compressed packets received by the NetScaler appliance |
decmp_tot_txpkts |
Total number of decompressed packets transmitted by the NetScaler appliance |
decmp_tot_rxbytes |
Total number of compressed bytes received by the NetScaler appliance |
decmp_tot_txbytes |
Total number of decompressed bytes transmitted by the NetScaler appliance |
decmp_saving |
Bandwidth saving from TCP compression, expressed as percentage. This is calculated by using the following formula: Total bytes received for compression from the server – compressed bytes transmitted to the client )/ (Total bytes received for compression from the server) ] * 100 |
decmp_saving_snmp |
Bandwidth saving from compression, expressed as percentage |
decmp_ratio |
Ratio of decompressed data transmitted to compressed data received (decmp:1.0) |
decmp_ratio_snmp |
Ratio of decompressed data transmitted to compressed data received, expressed as percentage |
decmp_err_data |
Number of data errors encountered while decompressing |
decmp_err_less_data |
Number of times NetScaler received less data than declared by the protocol |
decmp_err_more_data |
Number of times NetScaler received more data than declared by the protocol |
decmp_err_memory |
Number of times memory failures occurred while decompressing |
decmp_err_unknown |
Number of times unknown errors occurred while decompressing |
deltacmp_tot_Requests |
Total number of delta compression requests received by the NetScaler appliance |
deltacmp_tot_firstaccess |
Total number of delta compression first accesses |
deltacmp_tot_deltadone |
Total number of delta compressions done by the NetScaler appliance |
deltacmp_tot_rxbytes |
Total number of delta-compressible bytes received by the NetScaler appliance |
deltacmp_tot_rxpkts |
Number of delta-compressible packets received |
deltacmp_tot_txbytes |
Total number of delta-compressed bytes transmitted by the NetScaler appliance |
deltacmp_tot_txpkts |
Total number of delta-compressed packets transmitted by the NetScaler appliance |
deltacmp_saving |
Bandwidth saving from delta compression expressed as percentage |
deltacmp_ratio |
Ratio of compressible data received to compressed data transmitted (uncmp:1.0) |
deltacmp_saving_snmp |
Bandwidth saving from delta compression, expressed as percentage |
deltacmp_ratio_snmp |
Ratio of compressible data received to compressed data transmitted, expressed as percentage |
deltacmp_tot_base_served |
Total number of basefile requests served by the NetScaler appliance |
deltacmp_tot_base_txbytes |
Number of basefile bytes transmitted by the NetScaler appliance |
deltacmp_tot_jslib_served |
Number of times delta-compression JavaScript library served by the NetScaler appliance |
deltacmp_warn_delta_bypassed |
Number of times delta-compression bypassed by the NetScaler appliance |
deltacmp_err_basefile_writehdr_failed |
Number of times basefile could not be updated in the NetScaler cache |
deltacmp_err_basefile_nostore_miss |
Number of times basefile was not found in the NetScaler cache |
deltacmp_err_reqinfo_toobig |
Number of times basefile request URL was too large |
deltacmp_err_reqinfo_allocfail |
Number of times the requested basefile could not be allocated |
deltacmp_err_session_allocfail |
Number of times the delta compression session could not be allocated |