You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(14) |
Nov
(315) |
Dec
(298) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(254) |
Feb
(467) |
Mar
(430) |
Apr
(345) |
May
(406) |
Jun
(336) |
Jul
(313) |
Aug
(265) |
Sep
(433) |
Oct
(462) |
Nov
(387) |
Dec
(232) |
2002 |
Jan
(352) |
Feb
(556) |
Mar
(463) |
Apr
(500) |
May
(557) |
Jun
(337) |
Jul
(317) |
Aug
(279) |
Sep
(273) |
Oct
(354) |
Nov
(267) |
Dec
(347) |
2003 |
Jan
(351) |
Feb
(445) |
Mar
(520) |
Apr
(665) |
May
(499) |
Jun
(393) |
Jul
(304) |
Aug
(425) |
Sep
(262) |
Oct
(329) |
Nov
(220) |
Dec
(174) |
2004 |
Jan
(365) |
Feb
(479) |
Mar
(515) |
Apr
(522) |
May
(214) |
Jun
(471) |
Jul
(292) |
Aug
(341) |
Sep
(243) |
Oct
(446) |
Nov
(294) |
Dec
(147) |
2005 |
Jan
(171) |
Feb
(209) |
Mar
(218) |
Apr
(321) |
May
(233) |
Jun
(534) |
Jul
(268) |
Aug
(345) |
Sep
(498) |
Oct
(557) |
Nov
(459) |
Dec
(238) |
2006 |
Jan
(288) |
Feb
(180) |
Mar
(151) |
Apr
(113) |
May
(164) |
Jun
(277) |
Jul
(160) |
Aug
(383) |
Sep
(221) |
Oct
(404) |
Nov
(358) |
Dec
(163) |
2007 |
Jan
(293) |
Feb
(175) |
Mar
(202) |
Apr
(155) |
May
(427) |
Jun
(484) |
Jul
(414) |
Aug
(125) |
Sep
(131) |
Oct
(160) |
Nov
(79) |
Dec
(70) |
2008 |
Jan
(133) |
Feb
(115) |
Mar
(158) |
Apr
(194) |
May
(197) |
Jun
(230) |
Jul
(146) |
Aug
(68) |
Sep
(93) |
Oct
(53) |
Nov
(95) |
Dec
(69) |
2009 |
Jan
(81) |
Feb
(162) |
Mar
(215) |
Apr
(216) |
May
(78) |
Jun
(131) |
Jul
(61) |
Aug
(176) |
Sep
(127) |
Oct
(28) |
Nov
(83) |
Dec
(94) |
2010 |
Jan
(100) |
Feb
(187) |
Mar
(320) |
Apr
(161) |
May
(194) |
Jun
(142) |
Jul
(129) |
Aug
(139) |
Sep
(239) |
Oct
(202) |
Nov
(139) |
Dec
(196) |
2011 |
Jan
(195) |
Feb
(191) |
Mar
(201) |
Apr
(127) |
May
(84) |
Jun
(126) |
Jul
(101) |
Aug
(237) |
Sep
(123) |
Oct
(104) |
Nov
(197) |
Dec
(114) |
2012 |
Jan
(65) |
Feb
(85) |
Mar
(129) |
Apr
(84) |
May
(94) |
Jun
(83) |
Jul
(89) |
Aug
(85) |
Sep
(89) |
Oct
(73) |
Nov
(34) |
Dec
(38) |
2013 |
Jan
(89) |
Feb
(30) |
Mar
(25) |
Apr
(18) |
May
(20) |
Jun
(45) |
Jul
(74) |
Aug
(37) |
Sep
(72) |
Oct
(30) |
Nov
(67) |
Dec
(24) |
2014 |
Jan
(23) |
Feb
(16) |
Mar
(40) |
Apr
(37) |
May
(12) |
Jun
(18) |
Jul
(30) |
Aug
(26) |
Sep
(24) |
Oct
(32) |
Nov
(15) |
Dec
(33) |
2015 |
Jan
(15) |
Feb
(45) |
Mar
(21) |
Apr
(24) |
May
(22) |
Jun
(7) |
Jul
(57) |
Aug
(17) |
Sep
(16) |
Oct
(3) |
Nov
(8) |
Dec
(13) |
2016 |
Jan
(7) |
Feb
(14) |
Mar
(40) |
Apr
(8) |
May
(10) |
Jun
(6) |
Jul
(8) |
Aug
(10) |
Sep
(19) |
Oct
(20) |
Nov
(45) |
Dec
(10) |
2017 |
Jan
(10) |
Feb
(12) |
Mar
(3) |
Apr
(17) |
May
(41) |
Jun
(21) |
Jul
(13) |
Aug
(13) |
Sep
(7) |
Oct
(23) |
Nov
(10) |
Dec
(23) |
2018 |
Jan
(45) |
Feb
(3) |
Mar
(57) |
Apr
(107) |
May
(173) |
Jun
(47) |
Jul
(28) |
Aug
(26) |
Sep
(38) |
Oct
(56) |
Nov
(22) |
Dec
(11) |
2019 |
Jan
(37) |
Feb
(8) |
Mar
(7) |
Apr
(29) |
May
(32) |
Jun
(5) |
Jul
(21) |
Aug
(31) |
Sep
(38) |
Oct
(8) |
Nov
(13) |
Dec
(10) |
2020 |
Jan
(9) |
Feb
(33) |
Mar
(14) |
Apr
(4) |
May
(16) |
Jun
(11) |
Jul
(14) |
Aug
(50) |
Sep
(24) |
Oct
(3) |
Nov
(14) |
Dec
(13) |
2021 |
Jan
(18) |
Feb
(15) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(8) |
Jul
(6) |
Aug
(7) |
Sep
(26) |
Oct
(17) |
Nov
(6) |
Dec
(2) |
2022 |
Jan
(3) |
Feb
(11) |
Mar
(7) |
Apr
(15) |
May
(5) |
Jun
(4) |
Jul
(29) |
Aug
(6) |
Sep
(7) |
Oct
|
Nov
(4) |
Dec
(1) |
2023 |
Jan
|
Feb
|
Mar
|
Apr
(10) |
May
(3) |
Jun
(5) |
Jul
(3) |
Aug
(10) |
Sep
(10) |
Oct
(7) |
Nov
(2) |
Dec
(4) |
2024 |
Jan
(22) |
Feb
(5) |
Mar
(11) |
Apr
(20) |
May
(16) |
Jun
(9) |
Jul
(14) |
Aug
(5) |
Sep
(7) |
Oct
(4) |
Nov
(3) |
Dec
|
2025 |
Jan
(6) |
Feb
(6) |
Mar
(14) |
Apr
(2) |
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Sanjay K. <san...@gm...> - 2020-11-03 11:39:18
|
Hi Netsnmp Team, Does Netsnmp-5.8 used internal OpenSSL files or external Openssl library under yoctoproject? README under "net-snmp-5.8/snmplib/openssl" points that " --with-openssl=internal" to force the internal OpenSSL code. Can I assume without this configuration netsnmp is using the OpenSSL library? Is there any flag/config under in yoctoproject which confirms that the OpenSSL library is being used? Any info/help on this? *README:* This directory contains modified crypto code from OpenSSL 1.0.0.beta5. Please see the OpenSSL license from that release in the OPENSSL-LICENSE which will apply if this code is selected. Net-SNMP may be compiled with this code using the --with-openssl=internal flag to the configure command line. Note*: It is generally a better idea to link with the latest OpenSSL* *library rather than rely on this internal support*, as the latest OpenSSL code may contain important security or other fixes that may not have been incorporated into this snapshot. Small device vendors, however, have requested a stripped down version of the OpenSSL cryptography code in order to shrink their memory footprint and this feature provides such support. *Note also that the new SNMP over DTLS, SNMP over TLS support also* *available in Net-SNMP 5.6 and beyond is incompatible with the internal* *version of the OpenSSL** support since SNMP over (D)TLS requires the* *full TLS support available in OpenSSL.* *Thanks,* *Sanjay* |
From: Oezer, J. K (J. C. U. (USA) <jos...@na...> - 2020-11-02 17:42:13
|
Good afternoon, I am following up on the below email. Has your organization had time to review the below questions? Thank you. Regards, Josh Oezer PMA-290 P-8 EWSP Deputy Team Lead PMA-290 P-8 Acting MCDS Team Lead PMA-290 P-8 MCDS Lead Engineer SIPR: <mailto:jos...@na...> jos...@na... (advise email delivery on NIPR) (219) 241-2750 (cell) From: Oezer, Joshua K (Josh) CTR USN (USA) Sent: Monday, October 26, 2020 9:29 AM To: net...@li... Cc: Higgins, Dorothy A CIV USN NAS PAX MD (USA) <dor...@na...>; Kirkwood, Robert D CIV USN COMNAVAIRSYSCOM PAX (USA) <Rob...@na...> Subject: net-snmp-5.5.0-2.x64.exe Questions Good morning, My name is Josh Oezer, I am the team lead and lead engineer on the Mission Computing and Display Systems team for the U.S. Navy with PMA-290. The USN requires net-snmp-5.5.0-2.x64.exe binary installation on its maintenance laptops to communicate with certain equipment. Reading the license agreements, I did not see anything that did not permit use of net-SNMP by the US Government. However, I would like to request approval for use from net-SNMP to ensure we are not crossing any legal boundaries with your software. In addition to the requested approval for use, can you please verify that the software is UNCALSSIFIED (for our documentation)? Thank you for your assistance. Regards, Josh Oezer PMA-290 P-8 EWSP Deputy Team Lead PMA-290 P-8 Acting MCDS Team Lead PMA-290 P-8 MCDS Lead Engineer SIPR: jos...@na... <mailto:jos...@na...> (advise email delivery on NIPR) (219) 241-2750 (cell) |
From: Wes H. <har...@us...> - 2020-11-02 16:56:09
|
Bill Fenner <fe...@gm...> writes: > I imagined writing a test that exercises all of the output options (-Of, -On, -Os, -OS, -Ou) for > both netSnmpExampleAnonymousIntermediateNode and netSnmpExamples.42.1. Does anyone have any other > suggestions of what to test? I'd think it'd be easy to extract a list of all nodes using the tree/etc printer of snmptranslate with MIBS=ALL set, and then diff the results with before/after the patch? -- Wes Hardaker Please mail all replies to net...@li... |
From: Bill F. <fe...@gm...> - 2020-11-02 14:38:00
|
Hi, I found that net-snmp will output a nonsense name if there's an anonymous node in the path. For example, if you add +-- +-- An object defined with an anonymous intermeidate node +-- for testing object output in "-On" mode +-- + +netSnmpExampleAnonymousIntermediateNode OBJECT IDENTIFIER + ::= { netSnmpExamples 42 2 } + to NET-SNMP-EXAMPLES-MIB, and then "snmptranslate netSnmpExamples.42.1", you get "NET-SNMP-EXAMPLES-MIB::42.1", which is not an object. I have a small patch at https://github.com/fenner/net-snmp/commit/37d2e018254806ccbd9d84e75c594bbed35708d7 which fixes my example, but I want to make sure that it doesn't have any bad side effects. I imagined writing a test that exercises all of the output options (-Of, -On, -Os, -OS, -Ou) for both netSnmpExampleAnonymousIntermediateNode and netSnmpExamples.42.1. Does anyone have any other suggestions of what to test? Thanks, Bill |
From: Wes H. <har...@us...> - 2020-10-13 15:49:56
|
Philippe Guibert <phi...@6w...> writes: > Instead of using agentX, I wonder if it could be possible to link the > application with a master agent library Somehow, the agent would be > configured as a proxy, and session would convey information over an > unixSocket to the real snmpAgent. Could it be possible ? Yes, certainly you can have multiple "real" snmp daemons query to a sub-process via a proxy like mechanism. There is no reason that shouldn't work to allow multiple upstreams query to your internal agent. The net-snmp package's snmpd actually supports that through the use of the "proxy" directive ; see the snmpd.conf manual page in the "Proxy Support" section. -- Wes Hardaker Please mail all replies to net...@li... |
From: Philippe G. <phi...@6w...> - 2020-10-12 20:33:34
|
Thanks Wes for confirmation, Instead of using agentX, I wonder if it could be possible to link the application with a master agent library Somehow, the agent would be configured as a proxy, and session would convey information over an unixSocket to the real snmpAgent. Could it be possible ? Philippe On Sat, Sep 19, 2020 at 12:33 AM Wes Hardaker < har...@us...> wrote: > Philippe Guibert <phi...@6w...> writes: > > > I think you can confirm me it is not possible to 1 agent: N masters > > relationships ? > > That is correct, the current code does not support more than one parent > agent. > -- > Wes Hardaker > Please mail all replies to net...@li... > |
From: Wes H. <har...@us...> - 2020-10-02 02:15:23
|
Pushpa Thimmaiah <pus...@gm...> writes: > Why output of few mib-object of data-type string are enclosed in quote and few > are not > Eg: > IF-MIB::ifName.5 = STRING: eth2 <----- No quotes > RFC1213-MIB::sysName.0 = STRING: "pushpat-ThinkPad-L480" <----- Quotes > > Wireshark shows that quotes are added at snmp-agent side i.e not by > snmp-manager I'd have to know what type of system this was, as I don't recognize why that should have quotes around it. I can tell you that on my host, it returns the host name without quotes. Is that our agent running on an operating system, or are you querying something else? Does SNMPv2-MIB::sysObjectID.0 return something in the NET-SNMP-MIB::netSnmpAgentOIDs tree? -- Wes Hardaker Please mail all replies to net...@li... |
From: Magnus F. <ma...@ly...> - 2020-09-30 19:58:23
|
On Wed, Sep 30, 2020 at 03:19:47PM +0530, Sanjay Kumar wrote: > Hi Netsnmp team, > I am using netsnmp-5.8 > Trying to perform SNMP some operation and got the below crash. > Any patch for this is available? > > (gdb) bt > #0 __libc_do_syscall () at > ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47 > #1 0xf759d182 in __libc_signal_restore_set (set=0xd38fe708) > at ../sysdeps/unix/sysv/linux/nptl-signals.h:79 > #2 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:48 > #3 0xf759de0a in __GI_abort () at abort.c:89 > #4 0xf75c4712 in __libc_message (do_abort=do_abort@entry=2, fmt=<optimized > out>) > at ../sysdeps/posix/libc_fatal.c:175 > #5 0xf75c8a76 in malloc_printerr (action=<optimized out>, > str=0xf7644b84 "corrupted double-linked list", ptr=<optimized out>, > ar_ptr=<optimized out>) at malloc.c:5077 Not from our side but this suggests that your program have trashed the heap. Make sure you never free anything more than once. For problems like this valgrind is your friend. /MF > #6 0xf75c9e08 in _int_free (av=0xf4400010, p=0xf44634f8, have_lock=0) at > malloc.c:4021 > #7 0xf5ca646e in _sess_async_send (cb_data=0x0, callback=0x0, > pdu=0xcd824cf0, > sessp=0xdd1c4868) at snmp_api.c:5297 > #8 snmp_sess_async_send (sessp=0xdd1c4868, pdu=0xcd824cf0, callback=0x0, > cb_data=0x0) > at snmp_api.c:5399 > #9 0xf5c9eea0 in snmp_synch_response_cb (ss=0xdd1c48c8, > ss@entry=0xf77e8cf0 <__stack_chk_guard>, pdu=pdu@entry=0xcd824cf0, > response=response@entry=0xd38fec10, pcb=<optimized out>) at > snmp_client.c:1061 > #10 0xf6049cd0 in agentx_synch_response (response=0xd38fec10, > pdu=0xcd824cf0, > ss=0xf77e8cf0 <__stack_chk_guard>) at mibgroup/agentx/client.c:96 > #11 agentx_send_ping (ss=ss@entry=0xdd1c48c8) at > mibgroup/agentx/client.c:481 > #12 0xf6045c7c in agentx_check_session (clientreg=1, clientarg=0xdd1c48c8) > ---Type <return> to continue, or q <return> to quit--- > at mibgroup/agentx/subagent.c:1052 > #13 0xf5cb7ad8 in run_alarms () at snmp_alarm.c:218 > #14 0xf6044334 in agent_check_and_process (block=1) at snmp_agent.c:850 > #15 0xf67590e2 in ?? () > Backtrace stopped: previous frame identical to this frame (corrupt stack?) > (gdb) > > Thanks, > Sanjay > _______________________________________________ > Net-snmp-coders mailing list > Net...@li... > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders |
From: Sanjay K. <san...@gm...> - 2020-09-30 09:50:25
|
Hi Netsnmp team, I am using netsnmp-5.8 Trying to perform SNMP some operation and got the below crash. Any patch for this is available? (gdb) bt #0 __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47 #1 0xf759d182 in __libc_signal_restore_set (set=0xd38fe708) at ../sysdeps/unix/sysv/linux/nptl-signals.h:79 #2 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:48 #3 0xf759de0a in __GI_abort () at abort.c:89 #4 0xf75c4712 in __libc_message (do_abort=do_abort@entry=2, fmt=<optimized out>) at ../sysdeps/posix/libc_fatal.c:175 #5 0xf75c8a76 in malloc_printerr (action=<optimized out>, str=0xf7644b84 "corrupted double-linked list", ptr=<optimized out>, ar_ptr=<optimized out>) at malloc.c:5077 #6 0xf75c9e08 in _int_free (av=0xf4400010, p=0xf44634f8, have_lock=0) at malloc.c:4021 #7 0xf5ca646e in _sess_async_send (cb_data=0x0, callback=0x0, pdu=0xcd824cf0, sessp=0xdd1c4868) at snmp_api.c:5297 #8 snmp_sess_async_send (sessp=0xdd1c4868, pdu=0xcd824cf0, callback=0x0, cb_data=0x0) at snmp_api.c:5399 #9 0xf5c9eea0 in snmp_synch_response_cb (ss=0xdd1c48c8, ss@entry=0xf77e8cf0 <__stack_chk_guard>, pdu=pdu@entry=0xcd824cf0, response=response@entry=0xd38fec10, pcb=<optimized out>) at snmp_client.c:1061 #10 0xf6049cd0 in agentx_synch_response (response=0xd38fec10, pdu=0xcd824cf0, ss=0xf77e8cf0 <__stack_chk_guard>) at mibgroup/agentx/client.c:96 #11 agentx_send_ping (ss=ss@entry=0xdd1c48c8) at mibgroup/agentx/client.c:481 #12 0xf6045c7c in agentx_check_session (clientreg=1, clientarg=0xdd1c48c8) ---Type <return> to continue, or q <return> to quit--- at mibgroup/agentx/subagent.c:1052 #13 0xf5cb7ad8 in run_alarms () at snmp_alarm.c:218 #14 0xf6044334 in agent_check_and_process (block=1) at snmp_agent.c:850 #15 0xf67590e2 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) Thanks, Sanjay |
From: Jenny Y. <jen...@gm...> - 2020-09-21 00:36:55
|
Hi Wes, The option -l works for us. Thanks a lot for your help. Jenny On Fri, Sep 18, 2020 at 3:31 PM Wes Hardaker <har...@us...> wrote: > Jenny Yao <jen...@gm...> writes: > > > It works fine. However, we would like to have this proxy transparent to > the > > user, and wonder if there is a way to achieve this without using > > context. > > There is no way to do exactly what you want without removing the > registrations that the agent itself is implementing. > > You can see the use of the -I switch to snmpd to remove registrations > for things you wish to pass to the proxy instead. > -- > Wes Hardaker > Please mail all replies to net...@li... > |
From: Pushpa T. <pus...@gm...> - 2020-09-19 12:16:53
|
Hi All, Why output of few mib-object of data-type string are enclosed in quote and few are not Eg: IF-MIB::ifName.5 = STRING: eth2 <----- No quotes RFC1213-MIB::sysName.0 = STRING: "pushpat-ThinkPad-L480" <----- Quotes Wireshark shows that quotes are added at snmp-agent side i.e not by snmp-manager I would like to know whether we are allowed change code to remove quotes? Any specific reason for adding quotes ? Thank you, Pushpa.T On Sat, Sep 19, 2020 at 3:11 PM Pushpa Thimmaiah <pus...@gm...> wrote: > Hi Wes Hardaker, > > I have noticed following > > 1 ) Few mib-object with string type has no double-quotes > IF-MIB::ifName.5 = STRING: eth2 > HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory > HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 2020-9-19,14:33:8.0,+5:30 > > 2) snmpcmd/snmpget has no options to hide/escape quotes in output value. > > Thank you, > Pushpa.T > > On Sat, Sep 19, 2020 at 3:59 AM Wes Hardaker < > har...@us...> wrote: > >> Pushpa Thimmaiah <pus...@gm...> writes: >> >> > Hi All, >> > >> > I can understand response to snmpget/snmpwalk display string datatype >> in >> > double-quotes as in following example. Kindly let me know If there any >> way to >> > remove or hide quotes from display. >> >> I know you anwsered yourself, but you might also read the OUTPUT OPTIONS >> section of the snmpcmd manual page. >> -- >> Wes Hardaker >> Please mail all replies to net...@li... >> > |
From: Pushpa T. <pus...@gm...> - 2020-09-19 09:41:24
|
Hi Wes Hardaker, I have noticed following 1 ) Few mib-object with string type has no double-quotes IF-MIB::ifName.5 = STRING: eth2 HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 2020-9-19,14:33:8.0,+5:30 2) snmpcmd/snmpget has no options to hide/escape quotes in output value. Thank you, Pushpa.T On Sat, Sep 19, 2020 at 3:59 AM Wes Hardaker <har...@us...> wrote: > Pushpa Thimmaiah <pus...@gm...> writes: > > > Hi All, > > > > I can understand response to snmpget/snmpwalk display string datatype in > > double-quotes as in following example. Kindly let me know If there any > way to > > remove or hide quotes from display. > > I know you anwsered yourself, but you might also read the OUTPUT OPTIONS > section of the snmpcmd manual page. > -- > Wes Hardaker > Please mail all replies to net...@li... > |
From: Wes H. <har...@us...> - 2020-09-18 22:33:45
|
Philippe Guibert <phi...@6w...> writes: > I think you can confirm me it is not possible to 1 agent: N masters > relationships ? That is correct, the current code does not support more than one parent agent. -- Wes Hardaker Please mail all replies to net...@li... |
From: Wes H. <har...@us...> - 2020-09-18 22:32:04
|
Jenny Yao <jen...@gm...> writes: > It works fine. However, we would like to have this proxy transparent to the > user, and wonder if there is a way to achieve this without using > context. There is no way to do exactly what you want without removing the registrations that the agent itself is implementing. You can see the use of the -I switch to snmpd to remove registrations for things you wish to pass to the proxy instead. -- Wes Hardaker Please mail all replies to net...@li... |
From: Wes H. <har...@us...> - 2020-09-18 22:29:56
|
Pushpa Thimmaiah <pus...@gm...> writes: > Hi All, > > I can understand response to snmpget/snmpwalk display string datatype in > double-quotes as in following example. Kindly let me know If there any way to > remove or hide quotes from display. I know you anwsered yourself, but you might also read the OUTPUT OPTIONS section of the snmpcmd manual page. -- Wes Hardaker Please mail all replies to net...@li... |
From: Wes H. <har...@us...> - 2020-09-18 22:28:29
|
Magnus Fromreide <ma...@ly...> writes: > If the former then there is no support. Additionally, it would be in violation of the RFC which says a response must be sent when authentication has succeeded. Thus, if someone uses the correct community name or SNMPv3 credentials, they always deserve a response at least (even if it is "not authorized" or some other answer). -- Wes Hardaker Please mail all replies to net...@li... |
From: Magnus F. <ma...@ly...> - 2020-09-18 19:43:38
|
On Fri, Sep 18, 2020 at 08:21:35PM +0530, Sanjay Kumar wrote: > Hi Expert, > > I am getting a crash in the below backtrace path. You have removed most of the interesting parts of the stack trace. Given the information you have provided there is no way for us to help you. Please provide a full call trace and if you have some private modules in the call path then please provide those as well or anonymized ones that exhibit the same behaviour. > > I am not sure, it because of* Input to **send_trap_vars* or *some issue > in netsnmp_send_traps, at agent_trap.c:1014* It is most likely the input - lots of people do manage to send traps. Could you please elaborate on the input, "<optimized out>" ain't exactly helpful. > Wanted to check if anyone encountered the crash in the below path? Nope, I have never seen one there. > Or any patch is available for this part of the code for netsnmp-5.8? Nope, no changes sinze v5.8 > > *#5 netsnmp_send_traps (trap=-1, specific=<optimized out>, > enterprise=enterprise@entry=0xf5c0fa7c <trap_version_id>, > enterprise_length=enterprise_length@entry=10, vars=vars@entry=0xf35f1f70, * > > * context=context@entry=0x0, flags=flags@entry=0) at agent_trap.c:1014* > > #6 0xf5c05656 in send_enterprise_trap_vars (trap=<optimized out>, > specific=<optimized out>, enterprise=enterprise@entry=0xf5c0fa7c > <trap_version_id>, enterprise_length=enterprise_length@entry=10, > > vars=0xf35f1f70) at agent_trap.c:1047 > > #7 0xf5c05676 in send_trap_vars (trap=<optimized out>, specific=<optimized > out>, vars=<optimized out>) at agent_trap.c:1311 > > > Thanks, > > Sanjay > _______________________________________________ > Net-snmp-coders mailing list > Net...@li... > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders |
From: Magnus F. <ma...@ly...> - 2020-09-18 19:26:00
|
On Fri, Sep 18, 2020 at 04:39:21PM +0530, Sanjay Kumar wrote: > Hi Net-SNMP team, > Need help on below scenario: > We are handling the Error condition for the SNMP request(get/set) packet > with the below options in the *"subagent"* > > netsnmp_request_set_error(request, SNMP_ERR_NOSUCHNAME); > > netsnmp_request_set_error(request, SNMP_ERR_GENERR); > > With this error handling *"snmpd"-the agent*, is responding to the > client(SNMP get/set request command) with these errors in error-status (in > response packet) with null values for the OID(OID-value pair). > > We think this is expected and valid. > > > But for some scenario, we want* "snmpd" -the agent* to drop the packet > without responding. > > Is there any options in the net-SNMP code we can use or > > any error handling scenario which can be set to drop the response packet > for a get/set request? Do you want the get/set to be processed or do you want to drop the incoming packet? If the former then there is no support. When it comes to the latter there is no way to do it from an agentx subagent. It might be possible from the agent but you have to be a bit more specific about the conditions than 'some scenario'. /MF > > Thanks a lot in Advance. > > Sanjay > _______________________________________________ > Net-snmp-coders mailing list > Net...@li... > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders |
From: Sanjay K. <san...@gm...> - 2020-09-18 14:52:05
|
Hi Expert, I am getting a crash in the below backtrace path. I am not sure, it because of* Input to **send_trap_vars* or *some issue in netsnmp_send_traps, at agent_trap.c:1014* Wanted to check if anyone encountered the crash in the below path? Or any patch is available for this part of the code for netsnmp-5.8? *#5 netsnmp_send_traps (trap=-1, specific=<optimized out>, enterprise=enterprise@entry=0xf5c0fa7c <trap_version_id>, enterprise_length=enterprise_length@entry=10, vars=vars@entry=0xf35f1f70, * * context=context@entry=0x0, flags=flags@entry=0) at agent_trap.c:1014* #6 0xf5c05656 in send_enterprise_trap_vars (trap=<optimized out>, specific=<optimized out>, enterprise=enterprise@entry=0xf5c0fa7c <trap_version_id>, enterprise_length=enterprise_length@entry=10, vars=0xf35f1f70) at agent_trap.c:1047 #7 0xf5c05676 in send_trap_vars (trap=<optimized out>, specific=<optimized out>, vars=<optimized out>) at agent_trap.c:1311 Thanks, Sanjay |
From: Sanjay K. <san...@gm...> - 2020-09-18 11:09:57
|
Hi Net-SNMP team, Need help on below scenario: We are handling the Error condition for the SNMP request(get/set) packet with the below options in the *"subagent"* netsnmp_request_set_error(request, SNMP_ERR_NOSUCHNAME); netsnmp_request_set_error(request, SNMP_ERR_GENERR); With this error handling *"snmpd"-the agent*, is responding to the client(SNMP get/set request command) with these errors in error-status (in response packet) with null values for the OID(OID-value pair). We think this is expected and valid. But for some scenario, we want* "snmpd" -the agent* to drop the packet without responding. Is there any options in the net-SNMP code we can use or any error handling scenario which can be set to drop the response packet for a get/set request? Thanks a lot in Advance. Sanjay |
From: Drovalev R.N. <dro...@al...> - 2020-09-17 06:15:23
|
Hello! How to get value in perl extension via command as below. snmpset -c private -v 1 localhost .1.3.6.1.4.1.318.2.1.2.1.2.1 s 2222 i.e. How to get the value "2222" for the variable $string_value Thanks ----- code ----- #!/usr/bin/perl use NetSNMP::OID (':all'); use NetSNMP::agent (':all'); use NetSNMP::ASN qw(ASN_IPADDRESS ASN_GAUGE ASN_OCTET_STR); sub hello_handler { my ($handler, $registration_info, $request_info, $requests) = @_; my $request; my $string_value = "1234"; my $string_ASN = ASN_OCTET_STR; for($request = $requests; $request; $request = $request->next()) { my $oid = $request->getOID(); # SET mode if ($request_info->getMode() == MODE_SET) { if ($oid == new NetSNMP::OID(".1.3.6.1.4.1.318.2.1.2.1.2.1")) { $request->setValue($string_ASN, ($string_value)); } elsif ($oid == new NetSNMP::OID(".1.3.6.1.4.1.318.2.1.2.1.2.1")) { $request->setValue($string_ASN, ($string_value)); } } elsif ($request_info->getMode() == MODE_GETNEXT) { if ($oid == new NetSNMP::OID(".1.3.6.1.4.1.318.2.1.2.1.2.1")) { $request->setOID(".1.3.6.1.4.1.318.2.1.2.1.2.1"); $request->setValue($string_ASN, ($string_value)); } elsif ($oid < new NetSNMP::OID(".1.3.6.1.4.1.318.2.1.2.1.2.1")) { $request->setOID(".1.3.6.1.4.1.318.2.1.2.1.2.1"); $request->setValue($string_ASN, ($string_value)); } } } } my $agent = new NetSNMP::agent(); $agent->register(".1.3.6.1.4.1.318.2.1.2.1.2.1", ".1.3.6.1.4.1.318.2.1.2.1.2.1", \&hello_handler); |
From: Drovalev R.N. <dro...@al...> - 2020-09-16 08:15:00
|
Pashpa, thank you very mach! Сhanging the parameter to “1234” helped me! It remains to figure out how to convert an address from an integer. From: Pushpa Thimmaiah [mailto:pus...@gm...] Sent: Wednesday, September 16, 2020 6:39 AM To: Net-SNMP Coders Subject: snmpget: Remove quotes in output string Hi All, I can understand response to snmpget/snmpwalk display string datatype in double-quotes as in following example. Kindly let me know If there any way to remove or hide quotes from display. Output of SNMPWALK: --------------------------------------------------------------------------------------- RFC1213-MIB::sysContact.0 = STRING: "Me <me...@ex...>" RFC1213-MIB::sysName.0 = STRING: "pushpat-ThinkPad-L480" RFC1213-MIB::sysLocation.0 = STRING: "Sitting on the Dock of the Bay" Thank you, Pushpa.T |
From: Jenny Y. <jen...@gm...> - 2020-09-16 06:07:19
|
Hi All, We are using net-snmpd 5.8 as a proxy. But when the objects from the remote device conflict with objects from the proxy, we get the objects from the proxy. To solve this problem, we follow the suggestion in the wiki to use context as a selector to integrate the entire tree. http://net-snmp.sourceforge.net/wiki/index.php/Snmpd_proxy It works fine. However, we would like to have this proxy transparent to the user, and wonder if there is a way to achieve this without using context. Thanks, Jenny |
From: Pushpa T. <pus...@gm...> - 2020-09-16 03:39:29
|
Hi All, I can understand response to snmpget/snmpwalk display string datatype in double-quotes as in following example. Kindly let me know If there any way to remove or hide quotes from display. Output of SNMPWALK: --------------------------------------------------------------------------------------- RFC1213-MIB::sysContact.0 = STRING: "Me <me...@ex...>" RFC1213-MIB::sysName.0 = STRING: "pushpat-ThinkPad-L480" RFC1213-MIB::sysLocation.0 = STRING: "Sitting on the Dock of the Bay" Thank you, Pushpa.T |
From: Fulko H. <ful...@gm...> - 2020-09-15 14:30:03
|
I don't know for sure, but I suspect that the routine does not expect a dotted quad string (to encode into an ASN_IPADRESS, but that it expects a 4 byte packed integer instead. On Tue, Sep 15, 2020 at 3:02 AM Drovalev R.N. <dro...@al...> wrote: > Hello! > > > > There is a need to return the value of the ip address when requesting a > specific OID. > > It is necessary to emulate the snmp device. > > Implemented via perl, which I am new to. > > > > Perl extension NetSNMP::ASN does not return values in the request, where > Exportable constants - ASN_IPADDRESS, but return values other any types is > very good! > > Why? > > > > 1. If in the file - my $string_ASN = ASN_OCTET_STR; > > *# snmpget -c public -v 1 192.168.3.102 1.3.6.1.4.1.318.2.1.2.1.2.1* > > Iso.1.3.6.1.4.1.318.2.1.2.1.2.1 = STRING: "192.168.3.7" > > > > 2. If in the file - my $string_ASN = ASN_IPADDRESS; > > #*snmpget -c public -v 1 192.168.3.102 1.3.6.1.4.1.318.2.1.2.1.2.1* > > Reason: *(noSuchName) There is no such variable name in this MIB*. > > Failed object: iso.1.3.6.1.4.1.318.2.1.2.1.2.1 > > > > But > > > > #systemctl status snmpd (p.#2) > > snmpd.service - Simple Network Management Protocol (SNMP) Daemon. > > Loaded: loaded (/lib/systemd/system/snmpd.service; enabled; vendor > preset: enabled) > > Active: active (running) since Fri 2020-09-11 14:24:24 MSK; 5min ago > > Process: 30895 ExecStartPre=/bin/mkdir -p /var/run/agentx > (code=exited, status=0/SUCCESS) > > Main PID: 30905 (snmpd) > > Tasks: 1 (limit: 1075) > > Memory: 19.6M > > CGroup: /system.slice/snmpd.service > > └─30905 /usr/sbin/snmpd -LOw -u Debian-snmp -g Debian-snmp -I > -smux mteTrigger mteTriggerConf -f -p /run/snmpd.pid > > > > Sep 11 14:24:24 snmpd systemd[1]: Starting Simple Network Management > Protocol (SNMP) Daemon.... > > Sep 11 14:24:24 snmpd systemd[1]: Started Simple Network Management > Protocol (SNMP) Daemon.. > > Sep 11 14:24:26 snmpd snmpd[30905*]: IP address of 11 bytes passed to > setValue with ASN_IPADDRESS* > > > > > > > > Why isn't the ip address returned? How to correctly assign ip address in > perl for ASN_IPADDRESS? > > Where is my mistake? Please tell me. > > Thanks. > > > > --- code --- > > Enable the file in snmpd.conf: > > *perl do "/usr/share/snmp/2.1.2.1.pl <http://2.1.2.1.pl>";* > > > > Example my 2.1.2.1.pl.pl file : > > #!/usr/bin/perl > > use NetSNMP::agent (':all'); > > use NetSNMP::ASN qw(ASN_IPADDRESS ASN_OCTET_STR); > > > > sub hello_handler { > > my ($handler, $registration_info, $request_info, $requests) = @_; > > my $request; > > my $string_value = "192.168.3.7"; > > > > my $string_ASN = ASN_OCTET_STR; > > #my $string_ASN = ASN_IPADDRESS; > > > > for($request = $requests; $request; $request = $request->next()) { > > my $oid = $request->getOID(); > > if ($request_info->getMode() == MODE_GET) { > > if ($oid == new NetSNMP::OID(".1.3.6.1.4.1.318.2.1.2.1.2.1")) { > > $request->setValue($string_ASN, ($string_value)); > > } > > elsif ($oid == new NetSNMP::OID(".1.3.6.1.4.1.318.2.1.2.1.2.1")) { > > $request->setValue($string_ASN, ($string_value)); > > } > > } elsif ($request_info->getMode() == MODE_GETNEXT) { > > if ($oid == new NetSNMP::OID(".1.3.6.1.4.1.318.2.1.2.1.2.1")) { > > $request->setOID(".1.3.6.1.4.1.318.2.1.2.1.2.2"); > > $request->setValue($string_ASN, ($string_value)); > > } > > elsif ($oid < new NetSNMP::OID(".1.3.6.1.4.1.318.2.1.2.1.2.1")) { > > $request->setOID(".1.3.6.1.4.1.318.2.1.2.1.2.1"); > > $request->setValue($string_ASN, ($string_value)); > > } > > } > > } > > } > > my $agent = new NetSNMP::agent(); > > $agent->register(".1.3.6.1.4.1.318.2.1.2.1.2.1", > ".1.3.6.1.4.1.318.2.1.2.1.2.1", > > \&hello_handler); > > > > P.S. My task is to return the address of the computer that makes the > request for this OID. But at least just returned an arbitrary address! > > > > > > > _______________________________________________ > Net-snmp-coders mailing list > Net...@li... > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > |