Jump to content

Recommended Posts

Posted

Hi!

I have a Netscaler environment, and from within the ADM, I can see L7 client side latency, client and server IP addresses, and RTT etc, like this:

Gateway -> HDX Insights:

image.thumb.png.a3644ecb349a3f43f054d280abfe7d8e.png

image.thumb.png.c2f8cdc7e7c22d1278f1f20998c60a70.png

Now, I want to retrieve the same details from within the ADC, using NITRO API (to start with). Currently I'm focusing on L7 client side latency, ICA RTT, Client and Server IP addresses.

I can fetch other information from within ADC, using NITRO API, like this:

image.thumb.png.e825c2b37e6dfc882e6c5021982d4bff.png

above in more readable format:

Quote

{
    "errorcode": 0,
    "message": "Done",
    "severity": "NONE",
    "vpn": {
        "indexhtmlhit": "0",
        "indexhtmlnoserved": "0",
        "cfghtmlserved": "0",
        "cfghtmlservedrate": 0,
        "dnsreqhit": "0",
        "dnsreqhitrate": 0,
        "winsrequesthit": "0",
        "winsrequesthitrate": 0,
        "csrequesthit": "0",
        "csrequesthitrate": 0,
        "csnonhttpprobehit": "112",
        "csnonhttpprobehitrate": 0,
        "cshttpprobehit": "0",
        "cshttpprobehitrate": 0,
        "totalcsconnsucc": "145",
        "csconnsuccrate": 0,
        "totalfsrequest": "0",
        "fsrequestrate": 0,
        "vpnlicensefail": "0",
        "svpnhttpdtotalrequests": "2936221",
        "svpnhttpdtotalresponses": "2936241",
        "svpnhttpdtotalrequestscachehits": "3253",
        "svpnhttpdcurserverconnectionsopen": "15",
        "iipdisabledmipused": "0",
        "iipdisabledmipusedrate": 0,
        "iipfailedmipused": "0",
        "iipfailedmipusedrate": 0,
        "iipspillovermipused": "0",
        "iipspillovermipusedrate": 0,
        "iipdisabledmipdisabled": "0",
        "iipdisabledmipdisabledrate": 0,
        "iipfailedmipdisabled": "0",
        "iipfailedmipdisabledrate": 0,
        "csgtotalconnectedusers": "1",
        "csgconnectedusersrate": 0,
        "socksmethreqrcvd": "75",
        "socksmethreqrcvdrate": 0,
        "socksmethreqsent": "0",
        "socksmethreqsentrate": 0,
        "socksmethresprcvd": "0",
        "socksmethresprcvdrate": 0,
        "socksmethrespsent": "75",
        "socksmethrespsentrate": 0,
        "socksconnreqrcvd": "75",
        "socksconnreqrcvdrate": 0,
        "socksconnreqsent": "0",
        "socksconnreqsentrate": 0,
        "socksconnresprcvd": "0",
        "socksconnresprcvdrate": 0,
        "socksconnrespsent": "75",
        "socksconnrespsentrate": 0,
        "socksservererror": "0",
        "socksservererrorrate": 0,
        "socksclienterror": "0",
        "socksclienterrorrate": 0,
        "staconnsuccess": "124",
        "staconnsuccessrate": 0,
        "staconnfailure": "0",
        "staconnfailurerate": 0,
        "cpsconnsuccess": "145",
        "cpsconnsuccessrate": 0,
        "cpsconnfailure": "0",
        "cpsconnfailurerate": 0,
        "starequestsent": "442",
        "starequestsentrate": 0,
        "staresponserecvd": "256",
        "staresponserecvdrate": 0,
        "icalicensefailure": "0",
        "icalicensefailurerate": 0,
        "stamonsent": "129280",
        "stamonsentrate": 0,
        "stamonrcvd": "129280",
        "stamonrcvdrate": 0,
        "stamonsucc": "129280",
        "stamonsuccrate": 0,
        "stamonfail": "0",
        "stamonfailrate": 0,
        "csgptktvalidatenotstarted": "155",
        "csgptktvalidatenotstartedrate": 0,
        "csgrtktvalidatenotstarted": "0",
        "csgrtktvalidatenotstartedrate": 0
    }
}

but I am still struggling to fetch these details [L7 client side latency, RTT, client and server IP addresses] from inside ADC.

I am following the API reference guide here: ADC NITRO APIs (netscaler.com)

Does anyone have any information in this regard?

Thanks in advance!

Posted

Hi,
The information you're looking for regarding client metrics cannot be obtained from the ADC using REST APIs. These are data that ADM (Netscaler Console) collects from ADCs by leveraging AppFlow and using protocols such as IPFIX or LogStream (https://docs.netscaler.com/en-us/citrix-adc/current-release/ns-ag-appflow-intro-wrapper-con).
The ADC can send metrics to a collector, but it doesn't act as a collector itself (https://docs.netscaler.com/en-us/citrix-adc/current-release/observability/metrics).

I recommend checking out the ADM (Netscaler Console) REST APIs and getting those statistics directly from HDX Insights from ADC.

  • 2 weeks later...
Posted

Hi,

I tried to create a Logstream based collector inside the ADC, but it was showing DOWN, so I removed it and created another collector, of protocol type IPFIX. This is by default in UP state:

image.png.dbb70b14de929483ec907023393e2266.png

the first one on the list is the default one, that the ADM uses. 2nd one called hdx_collector is created by me. While it shows in UP state, I am wondering what kind of policies etc. I would need to apply, that will enable HDX insights including L7 client side latency:

image.png.3a02eb34ff470267ea41621a805bdbd6.png

My idea is: if I can have an HDX collector setup on ADC, that would, for example, be accessible to 192.168.10.11 [my store front machine], I should be able do some experimentation on my SF machine, and try to gather data as it would already be populating inside the collector...

I was also studying the guide here: Enabling HDX Insight data collection | NetScaler Application Delivery Management 14.1, but since the area of Citrix/ADC is relatively new to me, so I'm not sure if I could co-relate every technical detail that these articles have to share.

Thanks for any more feedback/direction.

Best Regards,

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...