I am using trial version of Adventnet SNMP C Agent. I have a MIB Table which has a composite key having 4 parameters(both primary and secondary keys). How does the agent handle a get request with incomplete key. Does it proceed by doing a getAll on that table or it can forward the get request as it is to the hook provided to user. Can you indicate the area of code performing this operation?
In the table, if we are having primary and foreign keys means, the foreign key(External Index) will have the same OID as in the original table. So when we are doing the Get request, it responds according to the OID.
Say for example, we have a mib AGENT-SAMPLE-MIB available in our product mib directory which has few tables and few scalar groups. In which we have a table aaplicationTable and aaplicationUserTable. In the aaplicationTable, there is an index named aaplicationID which is a primary key of aaplicationTable and the same aaplciationID is used as an external index in the table aaplicationUserTable which is Foreign Key of aaplicationUserTable.
Here the table which has the derived index from other table is called Augmented table i.e. aaplicationUserTable is an augmented table and the table which has the index which is derived in some other table is called Original Table.
But the index aaplicationID have the same OID in both the tables. If we do a get request on aaplicationID (ForeignKey/ External Index) in aaplicationUserTable, it will get the value from the aapliationTable.
Hope we answered your query. If not, please elaborate your query so that it will help us to assist you at the earliest.