From: Penz, B. <Ber...@fa...> - 2004-11-10 16:00:38
|
Sorry, did not read your email carefully enough. It seems that someone is already listening on "udp:161". If you are on a Windows 2003 Server, try the following to check this: C:\Documents and Settings\bernhard.penz>net start remoteaccess The Routing and Remote Access service is starting. The Routing and Remote Access service was started successfully. C:\Documents and Settings\bernhard.penz>netsh netsh>interface ip netsh interface ip>show udpconn MIB-II UDP Listener Entry Local Address LocalPort ------------------------------------------------- 0.0.0.0 161 ............ =20 I think this netsh is also available on XP and 2000. If somebody is listening on 161, you have to start looking who the culprit is. You don't have Windows SNMP services installed, and you did not register the snmpd as a service?? Regards, Bernhard > -----Original Message----- > From: Andres C [mailto:bl...@ho...]=20 > Sent: Mittwoch, 10. November 2004 16:49 > To: Penz, Bernhard; net...@li... > Subject: RE: Again example-daemon in win32 >=20 >=20 > Hello Bernhard, >=20 > I am trying to run a simple master daemon, without smpd=20 > running. I'm trying to do an agent that works with a modified=20 > snmpdemoapp. But I keep getting that error, and don't know=20 > what to do to solve it. I think the solution you describe is=20 > when using agentx subagent, but I what it to be the master agent. >=20 > thanks >=20 >=20 > >From: "Penz, Bernhard" <Ber...@fa...> > >To: "Andres C"=20 > ><bl...@ho...>,<net...@li...> > >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=20 > port, 705=20 > >in general. This "localhost:705" must be also told the=20 > master agent at=20 > >startup, that is you have to add : -x localhost:705 in your snmpd=20 > >commandline .This parameter also works when installing the=20 > master agent=20 > >as a service. > > > >The commandline switch is explained in README.agentx,=20 > perhaps adding a=20 > >few lines for the win32 case would help since the agentx stuff uses=20 > >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=20 > >Reader's Choice Award Winner for best database on Linux. > >http://ads.osdn.com/?ad_idU88&alloc_id=12065&op=3Dclick > >_______________________________________________ > >Net-snmp-coders mailing list > >Net...@li... > >https://lists.sourceforge.net/lists/listinfo/net-snmp-coders >=20 > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today=20 > it's FREE!=20 > http://messenger.msn.com/ >=20 >=20 >=20 |