I want to write a script that will log into several switches and check the status of several ports. I am running RHEL 4, and I have HP ProCurve 3500yl switches. I want to run something like the following:
ssh myhost -l myuser show interface A3
But when I do so, the ssh command just hangs until I hit ctrl-c. The manual seems to think I want to check the switch status through a web interface, so I can't find much guidance on getting the status remotely. Is there a way to do this over ssh? Is there another way that would be better but still scriptable?