Wireless Networks Thread, Procurve: Is it possible to schedule a (recurring) reboot? in Technical; I have a PoE device on one of my 2600-8PWR switches that is misbehaving intermittently and can only be recovered ...
3rd February 2010, 07:38 PM #1
Procurve: Is it possible to schedule a (recurring) reboot?
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
3rd February 2010, 08:21 PM #2
I'm sure you could send the reboot command programmatically over SSH. A cheating way would be to use a plug-in timer.
3rd February 2010, 08:33 PM #3
Don't forget you have lifetime warranty with advance replacement on this switch. You could have a new one by next week.
3rd February 2010, 08:40 PM #4
@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
Thanks to Ric_ from:
meastaugh1 (3rd February 2010)
3rd February 2010, 08:48 PM #5
Oh yes, you're right. I think those commands can be scheduled in Procurve Manager Plus.
Originally Posted by Ric_
3rd February 2010, 08:49 PM #6
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.
3rd February 2010, 10:51 PM #7
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:
-P 222 for port 222 (omit this if it runs on port 22).
plink user@hostname -P 222 -i key.ppk /usr/local/bin/restartsquid
-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
Thanks to webman from:
meastaugh1 (3rd February 2010)
3rd February 2010, 11:14 PM #8
I'd got as far as downloading putty and plink, but the command line examples are useful, thanks.
4th February 2010, 12:22 AM #9
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.
4th February 2010, 12:34 AM #10
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.
26th March 2010, 10:27 AM #11
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
no interface 5 power
interface 5 power
no interface 6 power
interface 6 power
Any ideas? Thanks
Last edited by meastaugh1; 26th March 2010 at 05:22 PM.
29th March 2010, 04:09 PM #12
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...
Thanks to RinSewand from:
meastaugh1 (29th March 2010)
By sdc in forum Office Software
Last Post: 17th September 2009, 12:34 PM
By tomscaper in forum Scripts
Last Post: 11th June 2009, 05:32 PM
By dgsmith in forum Windows
Last Post: 16th September 2008, 09:56 AM
By FN-GM in forum Wiki Announcements
Last Post: 27th March 2008, 12:40 AM
By Neville in forum Windows
Last Post: 24th March 2008, 08:33 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)