Switches, Hubs, and Modems
1748007 Members
4461 Online
108757 Solutions
New Discussion юеВ

Re: SNMP and hpsystem MIBS

 
SOLVED
Go to solution
Walker3
Occasional Advisor

SNMP and hpsystem MIBS

I have many Procurve 2524 switchs, some 4000 and 5308xl switches.

What I would like to do is send an snmp tftp command to have there current config send to a storage location.

I have the oids from the hp mib files, but can not get them to work.

Note: I think the hpSystem mibs/oids sub-branch are not on these switches.

eg: I can't walk
HP ProCurve Switch 2524# walkmib iso.3.6.1.4.1.11.2.3
No such variable: iso.3.6.1.4.1.11.2.3.

Yet a one level back works
walkmib iso.3.6.1.4.1.11.2
... results ...

Is there something that needs to be enabled, or is there a different set of OIDs I can use to tell the switch to tftp a config.
10 REPLIES 10
Matt Hobbs
Honored Contributor
Solution

Re: SNMP and hpsystem MIBS

I don't think it's possible to do this on ProCurve switches.

What you can do instead though, is enable and disable the TFTP server on the switch:

5308# walkmib 1.3.6.1.4.1.11.2.14.11.5.1.7.1.5.6
hpSwitchIpTftpMode.0 = 1 - indicates disabled hpSwitchIpTftpMode.0 = 2 -
indicates enabled

Below are some example linux commands to achieve this:

# snmpset -v2c -c public .1.3.6.1.4.1.11.2.14.11.5.1.7.1.5.6.0 i 2 #
tftp
tftp> get startup-config
tftp> quit
# snmpset -v2c -c public .1.3.6.1.4.1.11.2.14.11.5.1.7.1.5.6.0 i 1

For the 4000M I believe you need to get 'browse' instead of the startup-config.
Walker3
Occasional Advisor

Re: SNMP and hpsystem MIBS

Thanks, that works well.

I will play and test a bit more, but it worked form my 2524.

Walker3
Occasional Advisor

Re: SNMP and hpsystem MIBS

thanks again.

Just been playing and the tftp is restricted to the IP Managers (which is good).

Also the 4000, you need to get config

Gary Yates
New Member

Re: SNMP and hpsystem MIBS

I use the following software to accomplish this and much more.

http://www.kiwisyslog.com/cattools2.htm

My favorite feature is the email notification on config changes.

Walker3
Occasional Advisor

Re: SNMP and hpsystem MIBS

I need to do it as a module in a bigger collection of tools. We have other non HP Equipment and systems that I need to talk to as well.

eg: When I get snmp traps, or an snmp oid value (relative to a prev. value) is outside a threshold, it will submit a job to our Job Tracking system for a tech to look at.

So when all is working, my techs should just look at there job list and the problems will be listed. A bit more proactive then just waiting until someone tells me its broken, then go looking for the problem.

So, back to task at hand... This was just so I could auto d/l config images as part of the bigger picture.

Thanks again for the help and advice.
NelsonC2
Advisor

Re: SNMP and hpsystem MIBS

Does anyone recommend a particular tutorial for learning SNMP?
Walker3
Occasional Advisor

Re: SNMP and hpsystem MIBS

Good Question. I learnt the hard way and are still learning.

Some notes (feel free to correct me anyone)

SNMP - Simple Network Management Protocol
In short its a way to send a command to a device and for device to take some action.

Two Key Sides - Read and Write
Read -> Send a command, Receive a value (or group of values)
Write -> Send a command, that either sets a value to start a process.

What are the Commands ?
These are a group of decimal seperated numbers called OIDs. Vendors define these in text form called MIBs.

The are some generic OIDs for base informaion and thats a good place to start.

The hardest thing I have found is "what can it do and what OIDs do I use to do it?"

To help here, you need a MIB Builder (to compile the MIBs into OIDs).

If you have all your MIBs loaded into an snmp system, then to a walk of .1 this will list every value that can be read (or at least what you can currently see). Since the MIBs are loaded you should get text descriptions of the values.

Play, Play then Play some more. Linuc has the cli tools snmpset, snmpget and snmpwalk these are a good place to start.

Feel free to ask any questions.
sammy-2000
Occasional Contributor

Re: SNMP and hpsystem MIBS

Is it possible to get some info regarding sflow configuration on hp procurve 2524 switches..
EAnderson
New Member

Re: SNMP and hpsystem MIBS

In the past, I've used this SNMP Tutorial:

http://www.dpstele.com/layers/l2/snmp_l2_tut_part1.php

Sounds like the introduction you were looking for.

-Eric