I have a table called ocStbHostAVInterfaceTable defined in my MIB which defines
various hardware interfaces available.
Example rows of the ocStbHostAVInterfaceTable table:
row 1) S-Video port 1
row 2) 1394 port 1
row 3) 1394 port 2
row 4) Component Port 1
row 5) Analog port 1
row 6) Analog port 2
There is another table in my MIB which define "ConnnectedDevices" and these
devices can be connected to any of the AV interfaces available. For each row
in this "ConnectedDevices" table, there is a field called "AVInterfaceIndex"
which is meant to store the row index from the "ocStbHostAVInterfaceTable "
table above.
This means an SNMP request can be made to obtain all the connected devices, and
then for a specfic device which is connected to a specific interface (ex: "1394
port1") then the associated AV Interface row index can be obtained. Finally
this index can then be used to make an additional SNMP request to obtain the
specific AV Interface table row entry (ex: row 2) to see more data relating to
the interface used. Hope that made sense.
Question
In order to populate the "ConnectedDevices" table with a valid AVInterface
table row index, I believe I am going to need to loop through the AVInterface
table to determine which row is related to the correct port of the connected
device.
How can I search through the AVInterface table when I am inside the
"ConnectedDevices" table MfD row_prep routine? Are there any MfD container
routines which I can call which allow me to obtain rows from an existing table?
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel
and lay it on us.-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders