On Fri, 2006-02-10 at 15:29 +0530, vishakha s wrote:
> 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 .
Yup. That's looking good.
> Can you please help me out further as
> to how to configure a subagent
You've told the master agent where to listen for connections.
Now you've got to tell the subagent the same thing.
(There's no possibility of communication if the two sides
don't agree where to meet!)
You haven't said anything about how you are coding your
subagent, but I'm assuming that you're using the subagent
framework generated by "net-snmp-config --compile-subagent",
or from the on-line tutorial.
Try adding the code:
netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_X_SOCKET,
"10.9.10.195:705");
Note that all of this is covered in the FAQ entry:
How can I run AgentX with a different socket address?
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-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users