automating netscaler with soap
I recently had to script some citrix netscaler stuff (around using the running config to create graph trees in cacti and collectd with ecostats front end) to use the soap interface you have to make a soap request to login, then reuse the returned cookie to authenticate the other requests like this. I use this wget to login wget -O- --cookies=on --keep-session-cookies --save-cookies cookies.txt --post-file=login.xml --header="Content-Type: application/soap+xml" http://yourNSip/soap and this to get the details of vservers etc. wget -O- --load-cookies cookies.txt --post-file=getlbserver.xml --header="Content-Type: application/soap+xml" http://yourNSip/soap where the post-files contain the soap requests you can pipe into xmllint to tidy up the output if you want | xmllint --format --encode utf-8 – cat login.xml <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="...