Array-user questions - re-asking
Vinh Nguyen <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
If anyone has a clue abt this could you please give me a pointer?
I am using code generated by array-user mib2c to implement an snmp table.
1- QUESTION 1:
In initializing the table, this section sets up the callback containter
//*******************************
cb.get_value = mysnmpTable_get_value;
cb.container = netsnmp_container_find("mysnmpTable_primary:"
"icesnmpTable:"
"table_container");
netsnmp_table_container_register(my_handler, table_info, &cb,
cb.container, 1);
//*******************************
My question is about the net_container_find function call. Does it
matter what string I give to it? Does it have to be in this exact
structure:
"{tablename}_primary:"
"{tablename}:"
"table_container"
If I register two different tables, and give the same input in this
function call, would that screw things up?
2- QUESTION 2:
My snmp table is used in implementing an agentx subagent. As the agent
does not have to handle SET requests, in my mib files I set the table
entries to "read-only".
As a result variables like
cb.create_row, cb.delete_row ... are not set on table initialization in
the generated code. Does this affect the agent's ability to
create/add/delete row by itself, internally?
I assume that it should still be possible to do so internally using
macros like CONTAINER_FIND/INSERT/REMOVE, even if the mib nodes are read
only, is that correct?
Lots of thanks,
Vinh
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users