Jump to content

Recommended Posts

Posted
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
Posted

@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 1
Posted
@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.

Posted
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.
Posted

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

  • Thanks 1
Posted
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.
Posted

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.

  • 1 month later...
Posted (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 by meastaugh1
Posted
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 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...