I am performing the configure (and cross-sompilation) on my Linux machine and
then copying everything I need to the target location (ie: hardware box). So
I guess I need to make sure to configure the master agent with the "target"
specific installation locations appropriately so afetr I copy everything to the
target, then it will work. I guess this is what you are saying.
Originally I did not instruct the master agent and subagent to use any specific
port and the subagent could not connect to the master agent. I then decided to
make the following changes to indicate the master agent and subagent should use
port 705:
Updated the "snmpd.conf" file to include:
master agentx
agentxsocket localhost:705
rocommunity mycommunity_ro
Updated the "ocStbHostMib_subagent.c" code file to include:
etc..
etc..
/* initialize tcpip, if necessary */
SOCK_STARTUP;
netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET,
"localhost:705");
init_agent("ocStbHostMib_subagent");
etc..
etc..
.... however the subagent still could not connect to the master agent.
Perhaps the problem is that I am using the "localhost" keyword?
Dave Shield <[EMAIL PROTECTED]> wrote: On 13/07/07, Need Help wrote:
> I have all the MIB
> text files (even the ones which are reportedly not being found) located in
> the "/usr/local/share/snmp/mibs" directory on our hardware box.
But you say that you ran configure using the option
"--prefix=$(BUILDROOT)/usr/local'
So the library MIB code (used by both the agent and client tools)
will be looking in $(BUILDROOT)/usr/local/share/snmp/mibs
for the MIB files.
> Anyway, it would be nice to understand why these errors are being produced?
> Where does the master agent try to "find" these MIB files?
See above.
> Also, is there any ideas why my subagent can not find the master agent?
Where is the subagent trying to connect to the master agent?
I.e, what port is it trying to use?
Is the master agent listening on this port?
> Must the master agent and subagent use the same
> port to register on?
Yes.
> Currently I am not setting any ports at all,
> which I
> thought means that the master agent would be listening to all ports for SNMP
> queries and subagent registration requests .... is this correct?
No. SNMP queries and AgentX processing are two completely different
things, and use two completely separate ports.
By default, the master agent will listen for AgentX connections on the
named port /var/agentx/master. Does this socket get created when
the master agent starts up?
Dave
---------------------------------
Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online.-------------------------------------------------------------------------
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