From: Andres C <bl...@ho...> - 2004-11-10 00:00:40
|
Hi Robert, I am using version 5.1.2, but I even tryied with 5.2.rc3 and the same error comes up. Is there any solution palnned for this? Is there a way I can get it to work on wondows? Is it diferent if I use MinGW or Cygwin? Which one is better? >From: rs...@fr... >To: Andres C <bl...@ho...> >CC: net...@li... >Subject: Re: Again example-daemon in win32 >Date: Tue, 9 Nov 2004 16:29:49 -0500 > >On Tue, Nov 09, 2004 at 04:17:43PM -0500, Andres C wrote: > > I've been trying to run the example-daemon found int the tutorial as a > > master agent. But I'm receiving this error (I'm using windows): > > > > Error opening specified endpoint "udp:161" > > midaemon is up and running. > > select: No such file or directory > > select: No such file or directory > > ... and so on infinately > >This is a problem from a while back, because windows doesn't support >the callback transport. I think you must be using an older version. >Try 5.1.2 or 5.2.rc3. _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.com/ |
From: Andres C <bl...@ho...> - 2004-11-10 03:55:09
|
Hello Robert, Is there a way tu turn off the message printing no such file? I have no windows snmp installed. The snmpd demon is not running. When I run snmpd daemon, no error comes up, it works like a charm, but with the example-daemon there is. I run netstat -a, and there is no listing of snmp port anywhere. >From: Robert Story <rs...@fr...> >To: "Andres C" <bl...@ho...>, net...@li... >Subject: Re: Again example-daemon in win32 >Date: Tue, 9 Nov 2004 21:02:04 -0500 > >On Tue November 9 2004 6:59 pm, Andres C wrote: > > >On Tue, Nov 09, 2004 at 04:17:43PM -0500, Andres C wrote: > > > > I've been trying to run the example-daemon found int the tutorial as >a > > > > master agent. But I'm receiving this error (I'm using windows): > > > > > > > > Error opening specified endpoint "udp:161" > > > > midaemon is up and running. > > > > select: No such file or directory > > > > ... and so on infinately > > > > > >This is a problem from a while back, because windows doesn't support > > >the callback transport. I think you must be using an older version. > > >Try 5.1.2 or 5.2.rc3. > > > > I am using version 5.1.2, but I even tryied with 5.2.rc3 and the same >error > > comes up. > >Ok, the "No such file" message is what looks like the old problem, and I >haven't seen any complaints about it lately. I just noticed the "error >opening specified endpoint" message, which means that another application >had >port 161 open. Are you running the windows snmp agent? If so, you'll need >to >stop it before you can run another master agent. > >I also just noticed you are trying to run the tutorial daemon. Have you >tried >the reguar daemon, snmpd? Does it work? > _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.com/ |
From: Robert S. (C. <rs...@fr...> - 2004-11-15 23:51:35
|
On Tue, 09 Nov 2004 22:54:22 -0500 Andres wrote: AC> Is there a way tu turn off the message printing no such file? Not until we figure out why it is being printed. AC> I have no windows snmp installed. The snmpd demon is not running. When I AC> run snmpd daemon, no error comes up, it works like a charm, but with the AC> example-daemon there is. Try telling the example demon to run on a different port. Add this before it calls init_agent: netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_PORTS, "1161"); -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. |
From: Penz, B. <Ber...@fa...> - 2004-11-10 08:44:28
|
> /* we're an agentx subagent? */ > if (agentx_subagent) { > /* make us a agentx client. */ > netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID,=20 > 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 |
From: Andres C <bl...@ho...> - 2004-11-10 15:50:13
|
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" <Ber...@fa...> >To: "Andres C" <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 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 >Net...@li... >https://lists.sourceforge.net/lists/listinfo/net-snmp-coders _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.com/ |
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 |
From: Andres C <bl...@ho...> - 2004-11-10 17:51:10
|
Hello Bernhard, I tryied what you told me to, and there was no listing of port 161. I have no windows SNMP and the snmpd is registered as a service, but I tryied by stopping the service and unregistering agent service and it didn't work. I hava no idea what the problem is. thanks >From: "Penz, Bernhard" <Ber...@fa...> >To: "Andres C" <bl...@ho...>,<net...@li...> >Subject: RE: Again example-daemon in win32 >Date: Wed, 10 Nov 2004 17:00:19 +0100 > >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 > ............ > >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...] > > Sent: Mittwoch, 10. November 2004 16:49 > > To: Penz, Bernhard; net...@li... > > Subject: RE: Again example-daemon in win32 > > > > > > 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" <Ber...@fa...> > > >To: "Andres C" > > ><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 > > 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 > > >Net...@li... > > >https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > > > > _________________________________________________________________ > > Express yourself instantly with MSN Messenger! Download today > > it's FREE! > > http://messenger.msn.com/ > > > > > > _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.com/ |
From: Andres C <bl...@ho...> - 2004-11-16 04:06:10
|
Hello Robert, >From: Robert Story (Coders) <rs...@fr...> >Reply-To: net...@li... >To: "Andres C" <bl...@ho...> >CC: net...@li... >Subject: Re: Again example-daemon in win32 >Date: Mon, 15 Nov 2004 18:51:30 -0500 > >On Tue, 09 Nov 2004 22:54:22 -0500 Andres wrote: >AC> Is there a way tu turn off the message printing no such file? > >Not until we figure out why it is being printed. > >AC> I have no windows snmp installed. The snmpd demon is not running. When >I >AC> run snmpd daemon, no error comes up, it works like a charm, but with >the >AC> example-daemon there is. > >Try telling the example demon to run on a different port. Add this before >it >calls init_agent: > > netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_PORTS, > "1161"); I did what you told me, but the same message error keeps coming up. But this time with the other port: Error opening specified endpoint "1161" midaemon is up and running. select: No such file or directory select: No such file or directory ... I don't know if I'm doing something wrong, since the snmpd demon works fine. Do I need to do something else in the example demon? Thanks a lot. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.com/ |
From: Robert S. (C. <rs...@fr...> - 2004-11-17 17:21:12
|
On Mon, 15 Nov 2004 23:05:22 -0500 Andres wrote: AC> I did what you told me, but the same message error keeps coming up. But AC> this time with the other port: AC> AC> Error opening specified endpoint "1161" Ding ding ding! I think I've got it. The example demon does not call the windoze socket init stuff... Take a peek at apps/snmpget.c and add simliar calls to SOCK_STARTUP and SOCK_CLEANUP, and I'll be it works... -- Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. |
From: Andres C <bl...@ho...> - 2004-11-18 04:32:13
|
Hello Robert, It worked perfectly. Thank you very much. I'd also like to know what is the Report message that is sent sometimes. I was using a sniffer to se the snmv3 message and I encountered a Report message. Is this part of the dicovery part that sends the snmpEngineID? I saw on the message that there is a flag for this, can it be disabled? What is the OID (1.3.6.1.6.3.15.1.1.4.0) that it contains? This message is preceded by a Get message, and then the Report, can you please explain me this? Thanks a lot. >From: Robert Story (Coders) <rs...@fr...> >Reply-To: net...@li... >To: "Andres C" <bl...@ho...> >CC: net...@li... >Subject: Re: Again example-daemon in win32 >Date: Wed, 17 Nov 2004 12:20:07 -0500 > >On Mon, 15 Nov 2004 23:05:22 -0500 Andres wrote: >AC> I did what you told me, but the same message error keeps coming up. But >AC> this time with the other port: >AC> >AC> Error opening specified endpoint "1161" > >Ding ding ding! I think I've got it. The example demon does not call the >windoze socket init stuff... Take a peek at apps/snmpget.c and add simliar >calls to SOCK_STARTUP and SOCK_CLEANUP, and I'll be it works... > >-- >Robert Story; NET-SNMP Junkie >Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> >Archive: ><http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> > >You are lost in a twisty maze of little standards, all different. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Thomas A. <tho...@bl...> - 2004-11-18 08:10:25
|
Andres C wrote: > I'd also like to know what is the Report message that is sent sometimes. > I was using a sniffer to se the snmv3 message and I encountered a Report > message. Is this part of the dicovery part that sends the snmpEngineID? > > I saw on the message that there is a flag for this, can it be disabled? > > What is the OID (1.3.6.1.6.3.15.1.1.4.0) that it contains? > > This message is preceded by a Get message, and then the Report, can you > please explain me this? Yes, this is normal SNMPv3 discovery. If the client doesn't know the snmpEngineID of the server, it sends an empty one and picks up the engine ID from the REPORT reply. See RFC3414 for details. The name for the oid is SNMP-USER-BASED-SM-MIB::usmStatsUnknown EngineIDs.0. HTH, Thomas -- Thomas Anders (thomas.anders at blue-cable.de) |
From: Robert S. <rs...@fr...> - 2004-11-10 02:02:33
|
On Tue November 9 2004 6:59 pm, Andres C wrote: > >On Tue, Nov 09, 2004 at 04:17:43PM -0500, Andres C wrote: > > > I've been trying to run the example-daemon found int the tutorial as a > > > master agent. But I'm receiving this error (I'm using windows): > > > > > > Error opening specified endpoint "udp:161" > > > midaemon is up and running. > > > select: No such file or directory > > > ... and so on infinately > > > >This is a problem from a while back, because windows doesn't support > >the callback transport. I think you must be using an older version. > >Try 5.1.2 or 5.2.rc3. > > I am using version 5.1.2, but I even tryied with 5.2.rc3 and the same error > comes up. Ok, the "No such file" message is what looks like the old problem, and I haven't seen any complaints about it lately. I just noticed the "error opening specified endpoint" message, which means that another application had port 161 open. Are you running the windows snmp agent? If so, you'll need to stop it before you can run another master agent. I also just noticed you are trying to run the tutorial daemon. Have you tried the reguar daemon, snmpd? Does it work? |