1) Here is the output I get when using the -Le option:

[EMAIL PROTECTED] net-snmp]# /export/home/myname/snmp/usr/local/sbin/snmpd -f 
-Le &
[1] 27644
[EMAIL PROTECTED] net-snmp]# Turning on AgentX master support.
Error: Couldn't open a master agentx socket to listen on ():


Obviously I am not configured correctly .... what am I missing?


2) Currently, I am using the snmpd master agent to process my "OC-STB-HOST-MIB" 
MIBfile.  I am using the MfD configuration framework and have multiple 
directories where my code is located:

.../agent/mibgroup/OC-STB-HOST-MIB/ocStbHostAnalogVideoTable/  
 .../agent/mibgroup/OC-STB-HOST-MIB/ocStbHostAVInterfaceTable/  
 .../agent/mibgroup/OC-STB-HOST-MIB/ocStbHostComponentVideoTable/  
etc..
etc..

** Each directory represents a "Table" defined in the MIB.
 
Now, I would like to create a subagent to handle this MIB file (instead of the 
snmpd master agent) and I am not sure how to go about doing this.  I have 
multiple directories which contain code for this MIB and I am not sure how to 
create the subagent.  Must I create an "example-demon.c" similiar type file for 
each of the tables and edit it was specific MIB information somehow?

Basically, I am confused as to what the tutorial is showing me.   In the 
tutorial, I simply perform a "make" on a "example-demon.c" file and suddenly I 
have a subagent which can be executed by issuing the "example-demon" command.

I do not understand what table files I need to perform a "make" on to suddenly 
get a useable subagent for my own code.   Hopefully I do not have to create a 
subagent for each table in my MIB.... correct?

Any insight here would be appreciated.  I clearly do not understand how to 
relate what the tutorial is showing me to my own MIB code in order to produce a 
subagent which can handle my MIB.    




Dave Shield <[EMAIL PROTECTED]> wrote: On 13/06/07, Need Help  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


 
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.
-------------------------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to