|
From: Buchan M. <bg...@st...> - 2011-08-10 07:36:53
|
On Tuesday, 9 August 2011 22:53:00 White, Bruce wrote: > Hi all, > > Can anyone take pity on me and give me a hand getting my oids, > transforms, and message file to work with the below scenario? This is > my first new template> I have gotten the cpu and memory tests working > including the graphs, they reference a series of single (leaf) oids, no > repeating data and no need to access data via an Index. I am running > Devmon 0.3.1.-beta1. How did you create this template? From scratch? For Cisco-based networking equipment, it is usually easiest to copy a template for a similar device. The only complication is that some devices use IF-MIB v1 (with no ifName or ifAlias, but with an ifDescr), where others use IF-MIB v2. On Cisco devices, ifName and ifDescr are similar, but differ in the abbreviations of interface names, and ifAlias typically contains the port 'description'. > I have been spinning my wheels for two days. Here is the setup. I have > a table in the MIB which is not indexed by a sequence of 1, 2, 3, etc. This is not a requirement. Devmon should work with any SNMP table, regardless of the index values and whether they are monotonic, sequential etc., as long as they are unique. > but based on number which appears to drop from the sky. This number > however can be found in the ifIndex table by the same index number. > > So the first entry in ifIndex is 151126017 and at > 1.3.6.1.2.1.2.2.1.1.151126017 you will obtain the integer 151126017. > Like: > > ifIndex.151126017 = INTEGER: 151126017 This is standard for IF-MIB. > If you use this number to access the ifName table you will get the name > of the port on the switch. Like: > > ifName.151126017 = STRING: Vlan1 > > I can pull these individual entries via devmon from the MIB with > hardcoded oids and using the leaf type. That is of little use. I can > not figure out the proper syntax for the INDEX transforms entry to pull > the full set of ifIndex entries nor how to format the proper transforms > entries to use those Index entries to access the entries in the MIB for > the ifName table. I have tried many different entries for the INDEX > and CHAIN transforms with no luck. Usually I end up with an error > message "Missing repeater data for primary OID <variable>" You shouldn't need to use INDEX or CHAIN here. > When using snmpwalk I can get the data just fine. Pointing snmpwalk at > oid 1.3.6.1.2.1.2.2.1.1 for the ifIndex field I get back: > > IF-MIB::ifIndex.151126017 = INTEGER: 151126017 [...] > IF-MIB::ifIndex.436756480 = INTEGER: 436756480 > > When using snmpwalk I can get the data just fine. Pointing snmpwalk at > oid 1.3.6.1.2.1.31.1.1.1.1 for the ifName field I get back: > > IF-MIB::ifName.151126017 = STRING: Vlan1 [...] > IF-MIB::ifName.436756480 = STRING: Ethernet2/7 > > For grins here are the ifInOctets entries which uses the same set of > index numbers: > > IF-MIB::ifInOctets.151126017 = Counter32: 11511941 [...] > IF-MIB::ifInOctets.436756480 = Counter32: 52874384 So far, this looks like a standard network device, using standard IF-MIB v2 conventions. Have you tried just copying all the if_* tests from e.g. the cisco-7206 or cisco-6509 template? If so, and things didn't work, could you provide more detail? Regards, Buchan |