Skip to content

omertb/netscaler-scripts

Repository files navigation

About

These scripts utilize Nitro api interface on Citrix Netscaler to get some information and print on terminal screen in a formatted way.

  1. get_stats.py : prints some metrics and instant values about CPUs, memory, RX/TX Traffic, HTTP, TCP Stats...
  2. get_info_by_server_ip.py : Accepts IP address as input and prints bound virtual servers, policies as output
  3. 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

Screenshots

1. get_stats.py

Some NS Stats:

NS Stats

2. get_info_by_server_ip.py

Sample output for an entered IP address of an available service.

server info output

3. get_servers_by_hostname.py

Sample output for an entered domain address that is context switched:

hostname info output

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"

About

Nitro SDK Python Scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages