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