On 13/06/07, Need Help <[EMAIL PROTECTED]> wrote:
> I was not sure where to put these files
It doesn't matter.
The whole point of a standalone subagent is that it's standalone.
It doesn't depend on the rest of the source tree.
As long as you've got the Net-SNMP suite installed, the
Makefile will pick up the headers and libraries from their
installed locations.
> 1) I then tried to fire up the snmpd master agent but it will not start. I
> am trying to start it using the following command:
>
> /export/home/myname/snmp/usr/local/sbin/snmpd -f &
Does it produce any error messages?
Try running it as
/export/home/myname/snmp/usr/local/sbin/snmpd -f -Le
What does it display?
> 2) I am not sure how the "example-demon" subagent is actually related to the
> "NET-SNMP-TUTORIAL-MIB.txt" MIB file at all.
The file 'example-demon.c' is the framework for an AgentX subagent.
This is basically equivalent to the framework that
net-snmp-config --compile-subagent
will generate.
This is then linked together with the code from 'nstAgentSubagentObject.c',
which is where the NET-SNMP-TUTORIAL-MIB.txt stuff is implemented.
These two code files are compiled and linked together to produce the binary
'example-demon'
> If my assumptions are correct, then how does a subagent become associated
> with a MIB file?
Because there are two (or more) code files that are compiled into the
example-demon binary - not just example-demon.c.
Try watching what happens when you run "make"
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders