Re: DISMAN PING MIB test case question
On Sun, Apr 29, 2018, at 9:20 AM, Bill Fenner wrote: > On Fri, Apr 27, 2018 at 12:15 PM, Keith Mendoza wrote: > > > Bill, > > > > On Thu, Apr 26, 2018, at 6:54 PM, Bill Fenner wrote: > > > I do not think the DISMAN PING module builds anywhere but Linux. I am > > not > > > a fan of the existing implementation since it is synchronous. > > > > Would it be worth it to update RUNFULLTEST or T154dismanpingmib_simple to > > only run on Linux? > > > > T154dismanpingmib_simple runs if the module is compiled in (e.g., > --with-mib-modules=disman/ping), which it isn't by default. After I checked-out the v5.8pre3 tag, and ran autoreconf and configure --enable-blumenthal-aes --with-defaults --with-openssl=; I went ahead and took a closer look at the configuration summary. I spotted the following items in "Agent MIB code": disman/event disman/schedule I'll double-check if these 2 are actually enabling T154dismanpingmib_simple and get back to the group with what I find. > > Bill Now, regarding rerunning autoreconf: When I run this git reports that aclocal.m4 and configure are modified. -- Thanks, Keith (pantherse) -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
Re: DISMAN PING MIB test case question
On Fri, Apr 27, 2018 at 12:15 PM, Keith Mendoza wrote: > Bill, > > On Thu, Apr 26, 2018, at 6:54 PM, Bill Fenner wrote: > > I do not think the DISMAN PING module builds anywhere but Linux. I am > not > > a fan of the existing implementation since it is synchronous. > > Would it be worth it to update RUNFULLTEST or T154dismanpingmib_simple to > only run on Linux? > T154dismanpingmib_simple runs if the module is compiled in (e.g., --with-mib-modules=disman/ping), which it isn't by default. Bill -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
Re: DISMAN PING MIB test case question
After looking further into what's going on with T154_dismanpingmib_simple, I discovered that the test script checks if the UID is 0 before it checks if disman/ping was enabled. https://sourceforge.net/p/net-snmp/code/merge-requests/16/ reorders the check to prevent any confusion when the module is not enabled at all. On Mon, Apr 30, 2018, at 9:11 AM, Keith Mendoza wrote: > > > On Sun, Apr 29, 2018, at 9:20 AM, Bill Fenner wrote: > > On Fri, Apr 27, 2018 at 12:15 PM, Keith Mendoza wrote: > > > > > Bill, > > > > > > On Thu, Apr 26, 2018, at 6:54 PM, Bill Fenner wrote: > > > > I do not think the DISMAN PING module builds anywhere but Linux. I am > > > not > > > > a fan of the existing implementation since it is synchronous. > > > > > > Would it be worth it to update RUNFULLTEST or T154dismanpingmib_simple to > > > only run on Linux? > > > > > > > T154dismanpingmib_simple runs if the module is compiled in (e.g., > > --with-mib-modules=disman/ping), which it isn't by default. > > After I checked-out the v5.8pre3 tag, and ran autoreconf and configure > --enable-blumenthal-aes --with-defaults --with-openssl= OpenSSL install>; I went ahead and took a closer look at the > configuration summary. I spotted the following items in "Agent MIB > code": disman/event disman/schedule > > I'll double-check if these 2 are actually enabling > T154dismanpingmib_simple and get back to the group with what I find. > > > > > Bill > > Now, regarding rerunning autoreconf: When I run this git reports that > aclocal.m4 and configure are modified. > > -- > Thanks, > Keith (pantherse) -- Thanks, Keith (pantherse) -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
Re: DISMAN PING MIB test case question
Bill, On Thu, Apr 26, 2018, at 6:54 PM, Bill Fenner wrote: > I do not think the DISMAN PING module builds anywhere but Linux. I am not > a fan of the existing implementation since it is synchronous. Would it be worth it to update RUNFULLTEST or T154dismanpingmib_simple to only run on Linux? > > (I have a from-scratch asynchronous rewrite sitting around languishing that > I haven't tested anywhere but Linux; raw sockets are pretty notoriously > incompatible across OSes. It needs a bit of cleanup and support for > sending/receiving IPv6 packets...) Maybe we can revisit this code after 5.8 is released? > > Bill > > > On Thu, Apr 26, 2018 at 2:01 PM, Keith Mendoza wrote: > > > I have a question about what permissions DISMAN PING MIB test case > > expects. I'm running on a macOS 12.3.4 with --enable-blumenthal-aes > > --with-openssl= --with-defaults. When I > > run make test as my normal user I get "skipped: Not permitted to create raw > > sockets". However, when I run make test using "sudo make test" I instead > > get "skipped: USING_DISMAN_PING_MIB_MODULE is not defined". Should I be > > running "make test" as root? > > > > -- > > Thanks, > > Keith (pantherse) > > > > > > -- > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > ___ > > Net-snmp-coders mailing list > > Net-snmp-coders@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > > -- Thanks, Keith (pantherse) -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
Re: DISMAN PING MIB test case question
I do not think the DISMAN PING module builds anywhere but Linux. I am not a fan of the existing implementation since it is synchronous. (I have a from-scratch asynchronous rewrite sitting around languishing that I haven't tested anywhere but Linux; raw sockets are pretty notoriously incompatible across OSes. It needs a bit of cleanup and support for sending/receiving IPv6 packets...) Bill On Thu, Apr 26, 2018 at 2:01 PM, Keith Mendoza wrote: > I have a question about what permissions DISMAN PING MIB test case > expects. I'm running on a macOS 12.3.4 with --enable-blumenthal-aes > --with-openssl= --with-defaults. When I > run make test as my normal user I get "skipped: Not permitted to create raw > sockets". However, when I run make test using "sudo make test" I instead > get "skipped: USING_DISMAN_PING_MIB_MODULE is not defined". Should I be > running "make test" as root? > > -- > Thanks, > Keith (pantherse) > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Net-snmp-coders mailing list > Net-snmp-coders@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
Re: DISMAN PING MIB test case question
On 04/26/18 11:01, Keith Mendoza wrote: I have a question about what permissions DISMAN PING MIB test case expects. I'm running on a macOS 12.3.4 with --enable-blumenthal-aes --with-openssl= --with-defaults. When I run make test as my normal user I get "skipped: Not permitted to create raw sockets". However, when I run make test using "sudo make test" I instead get "skipped: USING_DISMAN_PING_MIB_MODULE is not defined". Should I be running "make test" as root? Hello Keith, Have you tried to add --with-mib-modules=disman/ping-mib to the Net-SNMP configure script argument list? Bart. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders