This is a really nice, clean version of the script. Excellent work!
in reply to Re^3: Net::SSH::Perl doesn't execute commands
in thread Net::SSH::Perl doesn't execute commands
Well I have to admit that I'm really puzzled at this point! Because I cannot find "show" nowhere on this system. It only works if you 1) ssh into the box and operate within the proprietary netscaler environment or 2) if you issue the commands remotely via ssh.
If I execute a "shell" command within the netscaler software to get to a unix shell, this is the result of my best efforts to find the command called "show".
root@ns# find / -name "show" -print
-bash: show: command not found
root@ns# echo $PATH
root@ns# grep -ri show $PATH
+/bin:/usr/local/sbin:.: No such file or directory
What gives? I'm starting to feel like there is some voodoo going on with this box that I don't completely grok! Do I have to somehow invoke the netscaler shell first,before I do anything else?
This is the contents of a directory called "/netscaler" that has a bunch of commands and scripts in it, that I can't seem to make heads or tails of. Most of them are binaries (not scripts) so I can't even "less" them to see what they contain. weird!
CITRIX nscachemgr nssavecore.sh
aaa_inform_kern nscgdb nssh
api nscli nssslgen
aslearn nsconf nsstart.sh
aslearn.conf nsconfig nsstartpe.sh
bgpd nsconfigaudit nsstop.sh
filterwsdl nsconfmig nssync
htmlinjection nsconmsg nssync.sh
icsearch.sh nscrlrefresh nstcpdump.sh
icstats nsdiskspace.sh nstrace.sh
imi nsdme nstune
imish nsdrevent nsumon.sh
install.pl nsdynrouting nsumond
lmgrd nsfsyncd nsvpnd
lmstat nsgslbconf nswsrun
lmutil nsif ospfd
lmver nslcd pitboss
man nslcdinit.sh portal
migrate_ZebOS.sh nslog.sh ripd
netscaler.conf nsm rwpol
netscaler.sh nsmap samedit
ns_gui nsnetsvc showtechsupport.pl
nsaaad nsospf snmp
nsapimgr nsp snmpd
nsaudit nsproflog.sh vpnsetup
nsauth_httpd nsprofmon vtysh