meastaugh1 Posted February 3, 2010 Posted February 3, 2010 I have a PoE device on one of my 2600-8PWR switches that is misbehaving intermittently and can only be recovered by power-cycling it. I have been asked to schedule the switch to reboot over night. Can anyone tell me whether this is possible to do either in the switch CLI, or with Procurve Manager or similar? Thanks
Ric_ Posted February 3, 2010 Posted February 3, 2010 I'm sure you could send the reboot command programmatically over SSH. A cheating way would be to use a plug-in timer.
keithu Posted February 3, 2010 Posted February 3, 2010 Don't forget you have lifetime warranty with advance replacement on this switch. You could have a new one by next week.
Ric_ Posted February 3, 2010 Posted February 3, 2010 @keithu: It sounds like the device needs power cycling rather than the switch. The CLI commands to power cycle a particular port are: ProCurve(config)# no interface 1 power ProCurve(config)# interface 1 power 1
keithu Posted February 3, 2010 Posted February 3, 2010 @keithu: It sounds like the device needs power cycling rather than the switch. [/code] Oh yes, you're right. I think those commands can be scheduled in Procurve Manager Plus.
meastaugh1 Posted February 3, 2010 Author Posted February 3, 2010 Thanks Ric, I'll give SSH a go. And yes, it was a PoE device attached to the switch that is the problem, although I appreciate I may not have made it clear in the OP.
webman Posted February 3, 2010 Posted February 3, 2010 From a Windows box, you can use PuTTY's plink.exe to run a remote command. If we need to restart the proxy service on our IPCop box, we have a batch file that does this: plink user@hostname -P 222 -i key.ppk /usr/local/bin/restartsquid -P 222 for port 222 (omit this if it runs on port 22). -i key.ppk for passwordless login. /usr/local/bin/restartsquid in my example is the command to run on the remote host. PuTTY Download Page Using the command-line connection tool Plink Using Plink to initiate an SSH session from the command line or a script 1
meastaugh1 Posted February 3, 2010 Author Posted February 3, 2010 I'd got as far as downloading putty and plink, but the command line examples are useful, thanks.
maniac Posted February 3, 2010 Posted February 3, 2010 rather than re-boot the switch, is there a command which will turn the PoE off and back on again thus cycling the power at the device? Saves losing connection to the rest of the devices connected, some of which might complain about the disconection.
meastaugh1 Posted February 3, 2010 Author Posted February 3, 2010 Yes, I usually disable/enable PoE at a port level from the telnet/web interface. I believe the commands Ric mentioned would do the equivalent from CLI. I did originally ask about resetting the switch because I wasn't aware whether it was possible to schedule a port level reset via a script; it seems it probably is.
meastaugh1 Posted March 26, 2010 Author Posted March 26, 2010 (edited) I'm hoping for some further advice on this. I've finally got around to doing this having exhausted other possibilities. From my understanding of the Procurve SSH documentation, using the keys will not give me access to the manager mode of the switch, so I'll have to use the local user database. When I type this command, I can get the welcome screen followed by access to the CLI: plink -ssh -l admin -pw switchpassword 192.168.0.123 but if I try any of the below I get this error: FATAL ERROR: Server refused to start a shell/command plink -ssh -l admin -pw switchpassword 192.168.0.123 "config" plink -ssh -l admin -pw switchpassword -batch 192.168.0.123 "config" plink -ssh -l admin -pw switchpassword -m readers.txt 192.168.0.123 plink -ssh -l admin -pw switchpassword -batch -m readers.txt 192.168.0.123 readers.txt config no interface 5 power interface 5 power no interface 6 power interface 6 power Any ideas? Thanks Resolved: http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1417807 Edited March 26, 2010 by meastaugh1
RinSewand Posted March 29, 2010 Posted March 29, 2010 Failing that type of scripting, google 'tst10.exe' for a scriptable telnet program. We use it here to back up all the switch configs, we can do about 20 in a minute... 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now