Ok, I now believe the "Writing a Dynamically Loadable Object" tutorial outlines 
the steps required when certain fields defined in a MIB file should be loaded a 
runtime (or automatically loaded when the master agent loads via the snmpd.conf 
file).  I do not believe this tutorial is going to help me figure out why my 
subagent library (so) file can be loaded but can not talk with the master 
agent.  I geuss I originally thought I might need to have a "dlmod (name) 
(path)" statement somewhere in my "snmpd.conf" file to load library (so) files, 
but I do not think this is correct anymore.

My subagent is built to process the complete "OC-STB-HOST-MIB" mib file which 
has many tables and scalars defined.  After I cross-compile my subagent code 
into a library file (ie: "libsnmp_subagent.so"), then I can start up our 
hardware box and see that the subagent library file loads successfully since I 
can see the printf statements I added into the subagent.c file indicating it is 
"up and running".   I then start the master agent, but can not not get the 
subagent talking with the master agent.

I am not really sure where to go from here.   Perhaps someone will explain why 
the subagent library (so) file can not communicate with the master agent?



Need Help <[EMAIL PROTECTED]> wrote: I discovered some stuff .....

If I build the subagent into a ".so" file (ie: "libsnmp_subagent.so") then the 
subagent will NOT talk with the master agent when started.  

If I build the subagent as a binary file (ie: snmp_subagent.bin) then the 
subagent will talk with the master agent when started.

I also was looking through the "Writing a Dynamically Loadable Object" 
tutorial.  Does "dynamically loadable object" refer to me creating the subagent 
as a ".so" file?  If so, then the following statement (found in the tutorial) 
might be something important for me to do:

"For this to work, you must have compiled the net-snmp package with dynamically 
loadable module support turned on, as well as built it with --enable-shared 
turned on. (It's on by default, if your system supports it)."

I currently am not using the "--enable-shared" option when configuring the 
master agent .... should I  be?  Also, I have no idea how to turn on 
dynamically loadable module support ..... maybe someone can explain what this 
is if I need to do it?







Need Help <[EMAIL PROTECTED]> wrote: Currently, my master agent and subagent 
can not talk.   I am assuming the master agent has been confirmed to be working 
since I can perform the following commands:

snmpget -v 1 -c mycommunity_ro 127.0.0.1 sysUpTime.0
snmpget -v 1 -c mycommunity_ro 127.0.0.1 sysORDescr.1
snmpwalk -v 2c -c mycommunity_ro 127.0.0.1 system


Now, when I try to execute subagent MIB-specific SNMP requests, then nothing 
happens at all.  I would like the master agent and subagent to be configured on 
port 1610, but I am not sure anymore if I did this correctly.   Apparently our 
hardware box does not recognize  "localhost" as a keyword either, so I am using 
127.0.0.1 instead.   Any help which can confirm this is all configured 
correctly would be appreciated.

Here is the snmpd.conf file contents:

master agentx
agentxsocket 127.0.0.1:1610
rocommunity  mycommunity_ro   


Here is what is included in the "subagent.c" file:

netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
                                   NETSNMP_DS_AGENT_X_SOCKET, "127.0.0.1:1610");


Can someone please let me know if the "snmpd.conf" and "subagent.c" file 
contents look correct?  If so, then will someone please tell me how I can test 
whether the subagent is receiving any SNMP requests from the master agent at  
all.




        

---------------------------------
Pinpoint customers who are looking for what you sell.           

---------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection.  
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  
http://get.splunk.com/_______________________________________________
Net-snmp-coders mailing  list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

        

---------------------------------
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.          

---------------------------------
Need a vacation? Get great deals  to amazing places on Yahoo! Travel. 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  
http://get.splunk.com/_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


       
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.
       
---------------------------------
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to