Comware

 View Only
Expand all | Collapse all

SNMP and hpsystem MIBS

This thread has been viewed 0 times
  • 1.  SNMP and hpsystem MIBS

    Posted May 01, 2006 04:01 PM
    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.


  • 2.  RE: SNMP and hpsystem MIBS

    Posted May 01, 2006 05:02 PM
    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 <IP addr=""> .1.3.6.1.4.1.11.2.14.11.5.1.7.1.5.6.0 i 2 #
    tftp <IP addr="">
    tftp> get startup-config
    tftp> quit
    # snmpset -v2c -c public <IP addr=""> .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.</IP></IP></IP>


  • 3.  RE: SNMP and hpsystem MIBS

    Posted May 01, 2006 05:24 PM
    Thanks, that works well.

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



  • 4.  RE: SNMP and hpsystem MIBS

    Posted May 01, 2006 06:56 PM
    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



  • 5.  RE: SNMP and hpsystem MIBS

    Posted May 03, 2006 06:26 AM
    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.



  • 6.  RE: SNMP and hpsystem MIBS

    Posted May 03, 2006 02:05 PM
    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.


  • 7.  RE: SNMP and hpsystem MIBS

    Posted May 08, 2006 11:37 AM
    Does anyone recommend a particular tutorial for learning SNMP?


  • 8.  RE: SNMP and hpsystem MIBS

    Posted May 08, 2006 02:40 PM
    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.


  • 9.  RE: SNMP and hpsystem MIBS

    Posted Mar 27, 2008 02:34 PM
    Is it possible to get some info regarding sflow configuration on hp procurve 2524 switches..


  • 10.  RE: SNMP and hpsystem MIBS

    Posted Jul 03, 2008 03:37 PM
    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


  • 11.  RE: SNMP and hpsystem MIBS

    Posted Jul 09, 2008 08:38 AM
    regarding sFlow config on Procurve switches see pdf at: http://www.plixer.com/products/scrutinizer_activate-netflow.php