|
|
| Author |
Message |
gfbarros Beginner
Joined: 19 Aug 2004 Posts: 2
|
Posted: Thu Aug 19, 2004 4:08 pm Post subject: SNMP OID Index ? |
|
|
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? |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Thu Aug 19, 2004 8:08 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
gfbarros Beginner
Joined: 19 Aug 2004 Posts: 2
|
Posted: Fri Aug 20, 2004 2:42 pm Post subject: |
|
|
| 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... |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Fri Aug 20, 2004 5:51 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|