+ Post New Thread
Results 1 to 12 of 12
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 ...
  1. #1
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    888
    Thank Post
    68
    Thanked 84 Times in 69 Posts
    Rep Power
    31

    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

  2. #2

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179
    I'm sure you could send the reboot command programmatically over SSH. A cheating way would be to use a plug-in timer.

  3. #3

    Join Date
    Oct 2007
    Location
    Lincolnshire
    Posts
    133
    Thank Post
    0
    Thanked 22 Times in 22 Posts
    Rep Power
    17
    Don't forget you have lifetime warranty with advance replacement on this switch. You could have a new one by next week.

  4. #4

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179
    @keithu: It sounds like the device needs power cycling rather than the switch.

    The CLI commands to power cycle a particular port are:

    Code:
    ProCurve(config)# no interface 1 power
    ProCurve(config)# interface 1 power

  5. Thanks to Ric_ from:

    meastaugh1 (3rd February 2010)

  6. #5

    Join Date
    Oct 2007
    Location
    Lincolnshire
    Posts
    133
    Thank Post
    0
    Thanked 22 Times in 22 Posts
    Rep Power
    17
    Quote Originally Posted by Ric_ View Post
    @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.

  7. #6
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    888
    Thank Post
    68
    Thanked 84 Times in 69 Posts
    Rep Power
    31
    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.

  8. #7

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,374
    Thank Post
    625
    Thanked 951 Times in 653 Posts
    Blog Entries
    2
    Rep Power
    318
    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:

    Code:
    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

  9. Thanks to webman from:

    meastaugh1 (3rd February 2010)

  10. #8
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    888
    Thank Post
    68
    Thanked 84 Times in 69 Posts
    Rep Power
    31
    I'd got as far as downloading putty and plink, but the command line examples are useful, thanks.

  11. #9

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    143
    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.

  12. #10
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    888
    Thank Post
    68
    Thanked 84 Times in 69 Posts
    Rep Power
    31
    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.

  13. #11
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    888
    Thank Post
    68
    Thanked 84 Times in 69 Posts
    Rep Power
    31

    Stuck

    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/...readId=1417807
    Last edited by meastaugh1; 26th March 2010 at 04:22 PM.

  14. #12
    RinSewand's Avatar
    Join Date
    Apr 2009
    Location
    Wakefield
    Posts
    264
    Thank Post
    14
    Thanked 46 Times in 43 Posts
    Rep Power
    18
    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...

  15. Thanks to RinSewand from:

    meastaugh1 (29th March 2010)

SHARE:
+ Post New Thread

Similar Threads

  1. [MS Office - 2007] Recurring appointment - create exception
    By sdc in forum Office Software
    Replies: 0
    Last Post: 17th September 2009, 11:34 AM
  2. Shutdown Schedule
    By tomscaper in forum Scripts
    Replies: 12
    Last Post: 11th June 2009, 04:32 PM
  3. Replies: 0
    Last Post: 16th September 2008, 08:56 AM
  4. Maintainece Schedule
    By FN-GM in forum Wiki Announcements
    Replies: 2
    Last Post: 26th March 2008, 11:40 PM
  5. Maintainece Schedule
    By Neville in forum Windows
    Replies: 18
    Last Post: 24th March 2008, 07:33 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •