SNMP OID Index ?

gfbarros

19-08-2004 12:08:43

Hi there,

im trying to create a custom SNMP query to grab interface data from our FIbre Channel Switches, but i cant figure out how to create an index for them.

help?

silfreed

19-08-2004 16:08:28

You'll need to add a new 'SNMP Test'. Look at the 'Interfaces - Bytes In/Out' tests for examples.
If you actually have interfaces (ie, they use the interface ifIndex), you can use the '%ifIndex%' variable, which will be very helpful.
You'll also want to make a new template graph using these tests; you will then be able to apply these graphs when you're in the 'view interface cache' page.

-Doug

gfbarros

20-08-2004 10:42:20

the issue im having is with creating a lookup for an index oid. the FC switches dont use the standard ifIndex as their interface index...

silfreed

20-08-2004 13:51:06

At this point we don't have a 'generic' lookup table like we have with interfaces and disks (ie, where ifName gets translated to its ifIndex). Hopefully your indexes won't change often; what you can do is create your own subdevices for each interface (P), and define your own custom parameter ('add parameter' next to the subdevice). Name it whatever you want; you can you this as your variable in your SNMP OID; so if you define your variable 'fiberIndex', you could add an SNMP OID with a value of '.1.3.6.1.4.1.3939.3.2.1.%fiberIndex%' and it will be substituted with the value you specified for the subdevice parameter.
Hopefully this helps you scale a little more..

-Doug