On Tue, 26 Apr 2005 16:53:40 +0400 Andrey wrote: AB> Thank you for your response. Now we have a MIB with needed structure for AB> traffic accounting. How could we extend snmp-agent for getting traffic by AB> ports? Are there any net-snmp api-functions that we can use to obtain this?
mib2c can generate skeleton code based on a MIB. Then you flesh out the details, and you can compile the code into the agent or a sub-agent. Since you are probably gathering data from outside the agent, I'd recommend that you look at the mfd or iterate conf files for mib2c. -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users