From: Buchan M. <bg...@st...> - 2009-03-12 19:04:38
|
----- "Jose Mª Erquiaga" <mos...@gm...> wrote: > Hello, > i need a template for hp procurve. anyone know where to find them. I think one of the devmon users in my LUGs IRC channel may have started a template for HP ProCurve switches. I will try and check with him tomorrow. > if this is not possible .How can i get all my switch´s OIDs and know > if this OID is for memmory or for cpu etc.. to make my own templates The method I usually use is to first just walk the device with snmpwalk, and see if the device supports standard MIBs. In many cases, network devices support the basics of IFMIB, and quite a few devices support parts of the HOST-RESOURCES-MIB. If this is the case for the HP ProCurve switches, you can start off by: 1)Creating a new directory in the templates directory, something like 'hp-procurve'. In this directory, create the specs file, and ensure that vendor is exactly the first part of the directory name you created (e.g. 'hp'), and the model is exactly the second part of the directory name (e.g. 'procurve'). Try and use a regex for sysdesc that is generic enough to match most compatible devices, but specific enough to exclude others (if you have trouble with this, send the sysdescr.0 value you get). 2)Copy the if_* directories from the linux-openwrt template (they are generic enough and use only IFMIB OIDs, unlike the Cisco templates) into your hp-procurve directory. 3)If you get memory and cpu values from HOST-RESOURCES-MIB, then you can try copying the cpu and memory tests from the linux-openwrt template as well. You can also post some of the snmpwalk output if you get stuck. Finally, if there are OIDs that are not from standard MIBs, I often use http://www.mibdepot.com to investigate the MIBs (or, if I have the MIB file, tkmib is quite convenient). Regards, Buchan |