Hi

Following your instructions,I run snmpd -f -Le -Dagentx and it is displaying
the following details:

agentx/subagent: init_subagent sess 08051080
agentx_register_app_config_handler: registering .conf token for
"agentxsocket"
agentx_register_app_config_handler: registering .conf token for
"agentxperms"
agentx_register_app_config_handler: registering .conf token for
"agentxRetries"
agentx_register_app_config_handler: registering .conf token for
"agentxTimeout"
Turning on AgentX master support.
agentx/config: port spec: 10.9.10.195:705
agentx/master: initializing...
agentx/master: initializing...   DONE
NET-SNMP version 5.2.1.2

When i run ./netstat -apn|grep 705 its is displaying the following details

tcp        0      0 10.9.10.195:705         0.0.0.0:*               LISTEN
2323/snmpd

I guess i am on the right track now .Can you please help me out further as
to how to configure a subagent and if anything else i need to set for master
agent .It would be a great help for me .

Thanks in advance
Vishakha

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dave
Shield
Sent: Thursday, February 09, 2006 4:10 PM
To: vishakha s
Cc: net-snmp-coders@lists.sourceforge.net
Subject: Re: Masteragent & subagent Communication


On Thu, 2006-02-09 at 15:04 +0530, vishakha s wrote:

> In 10.9.10.195 (master agent ) in snmpd.conf
> i included
>  master agentx
>  agentxsocket 10.50.32.153:705

So you've told the agent running on a host with IP
address 10.9.10.195, that it should listen for connections
on the interface with IP address 10.50.32.153?
Just how do you expect it to do that?

The master agent can only listen on its *local*
interfaces.  Try

    agentxsocket  10.9.10.195:705


> and configured it as --with-mib-modules=master/agentx

Eh?  That doesn't make sense at all!

Firstly, the "--with-mib-modules" settings are used before
you *compile* the software, not before you run it.

Secondly, that MIB module doesn't even exist.  I'd expect
the configure script to throw an error.

Thirdly, the AgentX support is included by default.
You don't need to give any special flags to configure.
In fact, I'd forget about configure altogether.

If you've got an SNMP agent installed, just use that
and don't fiddle with the source at all.


> What settings i need to do in subagent ,i am confused in this.

I think you're confused about the master agent, let alone
the subagent.   Concentrate on one thing at a time. Until
you get the master agent running with AgentX successfully,
there's no point in looking at the subagent at all.

Set up the snmpd.conf file as indicated above, and run
the (master) agent as

        snmpd -f -Le -Dagentx

What does it display?
If you then run "netstat -an", can you see a listening
connection on port 705 or not?
If you run "lsof" on the running agent, can you see
mention of TCP port 705?

Don't even think about running the subagent until those
tests are successful.

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to