Email Subscription Notifications Suspended Temporarily
We are in the process of making navigation in the Servers and Operating Systems forums simpler and more direct. While doing this, we have to temporarily suspend email notifications for subscriptions. If you are subscribed to one or more discussion boards or blogs in the community, please check them daily to see new content. Notifications will be turned back on in a few days. We apologize for any inconvenience this may cause. Thanks, Warren_Admin
Switches, Hubs, and Modems
cancel
Showing results for 
Search instead for 
Did you mean: 

Reset through SNMP

SOLVED
Go to solution
swaize
Frequent Advisor

Reset through SNMP

Hi,

We have quite a number of 2524's that have hung since we configured SSH access. You can access the log on screen but they hang after password is entered.

A reboot fixes this temporarily, unfortunately a lot of these are in remote locations and we can only communicate with SNMP currently.

Therefore my question is; is there a way to reboot a procurve switches via SNMP?

Thanks.
13 REPLIES
Mohammed Faiz
Honored Contributor

Re: Reset through SNMP

Not sure about SNMP access but have you tried web/SSL?
swaize
Frequent Advisor

Re: Reset through SNMP

Web UI is disabled as SSL not supported on 2524s.

Basically switch is only responding to SNMP traps right now, hence wondering if there was a way to reboot via this method.

Thanks
Mohammed Faiz
Honored Contributor
Solution

Re: Reset through SNMP

Ok, the OID seems to be: 1.3.6.1.4.1.11.2.14.1.3

hpicfReset

setting it to a value of '1' will give you a warm reboot, although I haven't managed to get it to work on my test switch yet.
EckerA
Respected Contributor

Re: Reset through SNMP

hi,
i tested it with an 4208vl and it worked.
At least from the cli.

hpicfReset.0 -i 2
just to set it to another value
and then
hpicfReset.0 -i 1
and it rebooted.

hth
alex
Mohammed Faiz
Honored Contributor

Re: Reset through SNMP

Yes, just tried it through the cli on a 2610 running r.11.30 and the value it seems to want is '2'.

# getmib hpicfReset.0
hpicfReset.0 = 1

#setmib hpicfReset.0 -i 2
hpicfReset.0 = 2

Then the switch reboots with the current config.
I still can't seem to access that mib remotely though.
swaize
Frequent Advisor

Re: Reset through SNMP


Thanks to your responses I have just managed to get this work remotely.

Using SNMPc I have set up this mib as custom tool on the right-lick menu for all switch objects. I have attached a screen shot to show settings.

Now I can right click any of the switch and give them a remote reboot. It even works on the hung ones, which I was having the original issue with.

Perfect!
Mohammed Faiz
Honored Contributor

Re: Reset through SNMP

Hi,

Thanks for the screenshot, that was useful! One question, how did you work out the string for the Argument? If I browse for the Mib I get something completely different (which fails to work).
I'm fairly sure it's using the latest MIB files from the HP site.

Thanks.
swaize
Frequent Advisor

Re: Reset through SNMP


First I located it using mib browser under the tools menu by searching for 'hpicfReset'

Then I just browsed to that location from 'Add custom Menu' it and it worked.
swaize
Frequent Advisor

Re: Reset through SNMP

In fact, if you find it on mib browser first (see screen shot); you can see how the argument is structured from the properties:

MIB|Name.0 x ---> HP-ICF-BASIC|hpicfReset.0 2

x is the variable

Hope that helps.
swaize
Frequent Advisor

Re: Reset through SNMP

In fact, if you find it on mib browser first (see screen shot); you can see how the argument is structured from the properties:

MIB|Name.0 x ---> HP-ICF-BASIC|hpicfReset.0 2

x is the variable

Hope that helps.
Mohammed Faiz
Honored Contributor

Re: Reset through SNMP

Thanks. I think my MIB files are in a bit of a mess so I'll try clearing out all the old ones and try again.
When you said "using mib browser under the tools menu by searching for 'hpicfReset'", I assume you meant a manual search?
swaize
Frequent Advisor

Re: Reset through SNMP

In SNMPc;

1. Highlight the object you want see mibs for.
2. Click tools > mib browser
3. In the dialgouge, type in the search string
4. Click next

That's how I found it. Then just did the steps I mentioned before.
Mohammed Faiz
Honored Contributor

Re: Reset through SNMP

Great, that did the trick, many thanks!