These scripts utilize Nitro api interface on Citrix Netscaler to get some information and print on terminal screen in a formatted way.
- get_stats.py : prints some metrics and instant values about CPUs, memory, RX/TX Traffic, HTTP, TCP Stats...
- get_info_by_server_ip.py : Accepts IP address as input and prints bound virtual servers, policies as output
- get_servers_by_hostname.py : Accepts full domain address as input and prints bound services (IP addresses), cookie values (for COOKIEINSERT enabled VSs), monitor status, monitor details if DOWN
Some NS Stats:
Sample output for an entered IP address of an available service.
Sample output for an entered domain address that is context switched:
Beware: Include a file named "credential.py" with content as below in the same directory with these scripts; or uncomment relevant lines in scripts and enter credential.
USERNAME = "USERNAME"
PASSWORD = "PASSWORD"
NS_IP = "IP ADDRESS"