|
From: Buchan M. <bg...@st...> - 2011-08-10 07:17:42
|
On Monday, 8 August 2011 19:02:10 White, Bruce wrote: > HI all, > > I'm trying to create my own template (first one) for a new Cisco Nexus > n7000 switch. I see in the documentation the INDEX transforms option > but the example is not very good and I can't get it to work. > Unfortunately with the new Nexus switches the ifName, ifAlias, etc. is > not stored using a number which is just incremented, but by an Index you > can find in the ifIndex field (OID = .1.3.6.1.2.1.2.2.1.1 ). So to get > the name you need the ifIndex and then you can get the correct ifName. > Like: > > IF-MIB::ifIndex.436207616 = INTEGER: 436207616 > IF-MIB::ifDescr.436207616 = STRING: Ethernet1/1 This is not the case for which the INDEX transform was created. There shouldn't be any real complications here, as this looks like a standard IF-MIB usage, ifTable is usually a single table indexed by the same index. The example given for the INDEX transform is the actual reason it was created, where the index is not provided as a value, and can only be seen as the suffix of the OID, and is used in a *different* table. But, I'll reply in more detail to your other mail. Regards, Buchan |