tahmed Posted October 7 Posted October 7 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: 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: 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!
Nicola Campaci Posted October 8 Posted October 8 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.
tahmed Posted October 8 Author Posted October 8 Hi @Nicola Campaci, Thanks for the reply! I'll study the links you mentioned and try to take things from there. Best regards,
Nicola Campaci Posted October 8 Posted October 8 15 minutes ago, tahmed said: Hi @Nicola Campaci, Thanks for the reply! I'll study the links you mentioned and try to take things from there. Best regards, Citric ADM\Netscaler Console nitro api for HDX-insights: https://developer-docs.netscaler.com/en-us/citrix-adm-nitro-api-reference/configuration/analytics/hdx-insight/hdx-insight
tahmed Posted October 18 Author Posted October 18 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: 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: 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,
Nicola Campaci Posted October 21 Posted October 21 (edited) Hi This doc can help you https://docs.netscaler.com/en-us/citrix-adc/current-release/observability/metrics Which collector are you trying to configure? Edited October 21 by Nicola Campaci
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now