Re: Query on configuring master and subagent in net-snmp
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel,gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 22/01/07, [email protected] <[email protected]> wrote: > Using mib2c, I am generating .c and .h files. But it is giving only skeleton program. That's right. Mib2c can construct the framework of your MIB module - the code for handling the SNMP side (the syntax of the MIB). But it can't know how to retrieve the necessary information - the semantics. That's your job. Please see the FAQ section 'Coding' for more information (http://www.net-snmp.org/wiki/index.php/FAQ:Coding) > Could you please give me one entire MIB code or atleast one Table code. > So that I can modify for my mib. There are dozens of examples of MIB implementations in the source tree. See under 'agent/mibgroup', and the FAQ entry Are there any examples, or documentation? (http://www.net-snmp.org/wiki/index.php/FAQ:Coding_10) But you'd be better off starting from the mib2c template code and adding the interface to your local information. Trying to amend the code for a completely different MIB module is likely to be much harder. > It would be very much appreciable if you give me the correct options while > running mib2c command. See the FAQ section mentioned above. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV