Hi
 
 
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?
 
Thanks,
Reema
  • No status
  • Answered
  • Working on it
  • Need more info
Hi Reema,

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.

Kindly back to us for further queries.

Thanks & Regards,
  - Karthik Nehru -
  (C-Agent Team)
Post Actions
Statistics
  • 1
     Replies
  • 115
     Views
  • 0
     Followers
Tags for the post
No tags available for this topic.
© 2009 Corp. All rights reserved. Trademarks | Privacy Policy | Site Map | Contact Us | Careers

Edit Link Delete Link

Edit Link Delete Link

LoadingImage