Hello Bernhard,
I am trying to run a simple master daemon, without smpd running. I'm trying to do an agent that works with a modified snmpdemoapp. But I keep getting that error, and don't know what to do to solve it. I think the solution you describe is when using agentx subagent, but I what it to be the master agent.
thanks
From: "Penz, Bernhard" <[EMAIL PROTECTED]> To: "Andres C" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> Subject: RE: Again example-daemon in win32 Date: Wed, 10 Nov 2004 09:44:21 +0100
> /* we're an agentx subagent? */ > if (agentx_subagent) { > /* make us a agentx client. */ > netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID, > NETSNMP_DS_AGENT_ROLE, 1); }
netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET, "localhost:705");
You have to tell the subagent to go to the configured agentx port, 705 in general. This "localhost:705" must be also told the master agent at startup, that is you have to add : -x localhost:705 in your snmpd commandline .This parameter also works when installing the master agent as a service.
The commandline switch is explained in README.agentx, perhaps adding a few lines for the win32 case would help since the agentx stuff uses unix domain sockets when not told otherwise.
Regards, Bernhard
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.com/
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
