First, I'm not experienced with Citrix and Netscalers but been tasked to perform the documented steps when escalations come in. There's a script already to run on a schedule that our EU team has done but I didn't ask to see their script and some times it still slips through.
I wrote this script to be used in Powershell ISE and you must have Plink downloaded.
The first command is loaded into a variable and the Do While loop is to run the command again until the variable is null. Most instances it runs the commands 3 to 4 times. I've tested it on all the NS that this works right after the last deletion a sh command via Putty to verify doesn't show anything.
$route =./plink.exe -ssh nsroot@host -pw PASSWORD "sh persistentSessions "
Do {./plink.exe -ssh
No comments:
Post a Comment