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: Bart V. A. <bva...@ac...> - 2020-08-08 18:18:14
|
>From https://pubs.opengroup.org/onlinepubs/9699919799/functions/fclose.html: "The fclose() function shall perform the equivalent of a close() on the file descriptor that is associated with the stream pointed to by stream." See also https://github.com/net-snmp/net-snmp/issues/157 . Fixes: fd9a42d142d8 ("- (pass-persist.c pass-persist.h): moved to pass_persist.[ch].") Fixes: a36188e50dcc ("Patch #760417 from Bob Rowlands/Sun for fixing Bug #751920") --- agent/mibgroup/ucd-snmp/pass_persist.c | 24 ++---------------------- agent/snmpd.c | 6 +----- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/agent/mibgroup/ucd-snmp/pass_persist.c b/agent/mibgroup/ucd-snmp/pass_persist.c index 4d88ff2b54bf..173510aa51c5 100644 --- a/agent/mibgroup/ucd-snmp/pass_persist.c +++ b/agent/mibgroup/ucd-snmp/pass_persist.c @@ -775,32 +775,12 @@ close_persist_pipe(int iindex) fclose(persist_pipes[iindex].fOut); persist_pipes[iindex].fOut = (FILE *) 0; } - if (persist_pipes[iindex].fdOut != -1) { -#ifndef WIN32 - /* - * The sequence open()/fdopen()/fclose()/close() triggers an access - * violation with the MSVC runtime. Hence skip the close() call when - * using the MSVC runtime. - */ - close(persist_pipes[iindex].fdOut); -#endif - persist_pipes[iindex].fdOut = -1; - } + persist_pipes[iindex].fdOut = -1; if (persist_pipes[iindex].fIn) { fclose(persist_pipes[iindex].fIn); persist_pipes[iindex].fIn = (FILE *) 0; } - if (persist_pipes[iindex].fdIn != -1) { -#ifndef WIN32 - /* - * The sequence open()/fdopen()/fclose()/close() triggers an access - * violation with the MSVC runtime. Hence skip the close() call when - * using the MSVC runtime. - */ - close(persist_pipes[iindex].fdIn); -#endif - persist_pipes[iindex].fdIn = -1; - } + persist_pipes[iindex].fdIn = -1; #ifdef __uClinux__ /*remove the pipes*/ diff --git a/agent/snmpd.c b/agent/snmpd.c index ae73eda1390e..2c925d8ff408 100644 --- a/agent/snmpd.c +++ b/agent/snmpd.c @@ -955,17 +955,13 @@ main(int argc, char *argv[]) } } else { if ((PID = fdopen(fd, "w")) == NULL) { + close(fd); snmp_log_perror(pid_file); goto out; } else { fprintf(PID, "%d\n", (int) getpid()); fclose(PID); } -#ifndef _MSC_VER - /* The sequence open()/fdopen()/fclose()/close() makes MSVC crash, - hence skip the close() call when using the MSVC runtime. */ - close(fd); -#endif } } #endif |
From: Aferjes B. R. <are...@gm...> - 2020-08-08 06:41:07
|
Hi Ian, Everything seems to be fine. Not sure why "tabreq" is getting NULL in netsnmp_get_table_handler. I have a suggestion. I see the same implementation with slight modification in init_icmp() function in agent/mibgroup/mibII/icmp.c. There I can see the table is using a different function "netsnmp_register_table_iterator2" to register the table. Maybe this function might help you. I'm not sure whether this will solve the issue. Just a suggestion so that you can try. Thanks, Aferjes Blesswin Redeemson M On Fri, Aug 7, 2020 at 12:21 AM Ian C via Net-snmp-coders < net...@li...> wrote: > I took Wes' advice and ran with -DALL, along with some extra DEBUGMSGTLs > in suspect areas (-DALL output follows): > void > initialize_table_chAsinHwSbcNtpTable(void) > { > syslog( LOG_ERR, "initialize_table_chAsinHwSbcNtpTable()"); > const oid chAsinHwSbcNtpTable_oid[] = {1,3,6,1,4,1,25228,3,3,1,9,6,6}; > const size_t chAsinHwSbcNtpTable_oid_len = > OID_LENGTH(chAsinHwSbcNtpTable_oid); > netsnmp_handler_registration *reg; > netsnmp_iterator_info *iinfo; > netsnmp_table_registration_info *table_info; > > DEBUGMSGTL(("chAsinHwSbcNtpTable", "initializing table > chAsinHwSbcNtpTable\n")); > > reg = netsnmp_create_handler_registration( > "chAsinHwSbcNtpTable", chAsinHwSbcNtpTable_handler, > chAsinHwSbcNtpTable_oid, chAsinHwSbcNtpTable_oid_len, > HANDLER_CAN_RONLY > ); > > table_info = SNMP_MALLOC_TYPEDEF( netsnmp_table_registration_info ); > if(table_info == NULL) { > DEBUGMSGTL(("chAsinHwSbcNtpTable", "after SNMP_MALLOC_TYPEDEF( ) > table_info is _N_U_L_L!\n")); > } > else { > DEBUGMSGTL(("chAsinHwSbcNtpTable", "after SNMP_MALLOC_TYPEDEF( ) > table_info _NOT_ null\n")); > } > netsnmp_table_helper_add_indexes(table_info, > ASN_OCTET_STR, /* index: chAsinHwSbcNtpSbcName > */ > 0); > if(table_info == NULL) { > DEBUGMSGTL(("chAsinHwSbcNtpTable", "after > netsnmp_table_helper_add_indexes( ) table_info is _N_U_L_L!\n")); > } > else { > DEBUGMSGTL(("chAsinHwSbcNtpTable", "after > netsnmp_table_helper_add_indexes( ) table_info _NOT_ null\n")); > } > table_info->min_column = COLUMN_CHASINHWSBCNTPSBCNAME; > table_info->max_column = COLUMN_CHASINHWSBCNTPSTATUSSTRING; > > iinfo = SNMP_MALLOC_TYPEDEF( netsnmp_iterator_info ); > iinfo->get_first_data_point = chAsinHwSbcNtpTable_get_first_data_point; > iinfo->get_next_data_point = chAsinHwSbcNtpTable_get_next_data_point; > iinfo->table_reginfo = table_info; > iinfo->free_loop_context_at_end = nsModuleTable_loop_free; > iinfo->free_data_context = freeTableEntry; > > if(iinfo->table_reginfo == NULL) { > DEBUGMSGTL(("chAsinHwSbcNtpTable", "before > netsnmp_register_table_iterator( ) iinfo->table_reginfo is _N_U_L_L!\n")); > } > else { > DEBUGMSGTL(("chAsinHwSbcNtpTable", "before > netsnmp_register_table_iterator( ) iinfo->table_reginfo _NOT_ null\n")); > } > netsnmp_register_table_iterator( reg, iinfo ); > > /* Initialise the contents of the table here */ > } > > > Now a snippet from the -DALL logging, but nothing stands out to me, > perhaps someone on the list may have some idea: > > 9:callback:lock: locked (LIB,POST_READ_CONFIG) > trace: netsnmp_register_callback(): callback.c, 296: > callback: registered (0,0) at 806c818 with priority 0 > trace: _callback_unlock(): callback.c, 170: > 9:callback:lock: unlocked (LIB,POST_READ_CONFIG) > trace: subagent_init(): mibgroup/agentx/subagent.c, 162: > agentx/subagent: initializing.... DONE > trace: internal_register_config_handler(): read_config.c, 219: > 9:read_config:register_handler: registering ./icSNMPntpSubAgentChA.exe > com2sec > trace: internal_register_config_handler(): read_config.c, 219: > 9:read_config:register_handler: registering ./icSNMPntpSubAgentChA.exe > com2sec6 > trace: internal_register_config_handler(): read_config.c, 219: > 9:read_config:register_handler: registering ./icSNMPntpSubAgentChA.exe > com2secunix > trace: initialize_table_chAsinHwSbcNtpTable(): > C:/Users/clougia/workspace/SIN_4/SIN_QNX7/seg_src/SNMP/sinHwSbcNTPtable/channelA/chAsinHwSbcNtpTable.cpp, > 60: > chAsinHwSbcNtpTable: initializing table chAsinHwSbcNtpTable > trace: initialize_table_chAsinHwSbcNtpTable(): > C:/Users/clougia/workspace/SIN_4/SIN_QNX7/seg_src/SNMP/sinHwSbcNTPtable/channelA/chAsinHwSbcNtpTable.cpp, > 73: > chAsinHwSbcNtpTable: after SNMP_MALLOC_TYPEDEF( ) table_info _NOT_ null > trace: initialize_table_chAsinHwSbcNtpTable(): > C:/Users/clougia/workspace/SIN_4/SIN_QNX7/seg_src/SNMP/sinHwSbcNTPtable/channelA/chAsinHwSbcNtpTable.cpp, > 82: > chAsinHwSbcNtpTable: after netsnmp_table_helper_add_indexes( ) table_info > _NOT_ null > trace: initialize_table_chAsinHwSbcNtpTable(): > C:/Users/clougia/workspace/SIN_4/SIN_QNX7/seg_src/SNMP/sinHwSbcNTPtable/channelA/chAsinHwSbcNtpTable.cpp, > 98: > chAsinHwSbcNtpTable: before netsnmp_register_table_iterator( ) > iinfo->table_reginfo _NOT_ null > trace: netsnmp_inject_handler_before(): agent_handler.c, 444: > handler:inject: injecting table_iterator before chAsinHwSbcNtpTable > netsnmp_get_table_handler(NULL) called > could not create table handler > > Thanks again Wes, and everyone else reading this! > > Ian > > > > > On Thursday, August 6, 2020, 9:56:00 a.m. EDT, Ian C <mc...@ya...> > wrote: > > > Thanks Wes, will try this soon. > > On Wednesday, August 5, 2020, 1:47:24 p.m. EDT, Wes Hardaker < > har...@us...> wrote: > > > Ian C via Net-snmp-coders <net...@li...> > > writes: > > > Hi, > > > > We previously had net-snmp 5.6 running on QNX 6.5 (from pkgsrc), and had > various > > sub-agents retrieving data and working well. However we've recently > migrated our OS > > to QNX 7.0 and since there are no pkgsrc packages available for that OS > we've > > upgraded and compiled net-snmp 5.8 ourselves. > > > > Most of the system has ported well, GETs for scalars are fine; snmp > table queries > > for system OIDs such as ifTable & atTable also work, however any table > query for our > > own table-based subagents fail. While digging into this I noticed that > upon start-up > > our subagent reports: > > > > Qnx7->SubAgentChA.exe -Lo -d > > netsnmp_get_table_handler(NULL) called > > could not create table handler > > > I'd run with -DALL in order to get a *lot* of debug output (assuming you > didn't turn off debugging output). Specifically, look for the same > error message to figure out where in the code the problem is triggered > from in the output trace. Because this is where the code is: > > netsnmp_mib_handler * > netsnmp_get_table_handler(netsnmp_table_registration_info *tabreq) > { > netsnmp_mib_handler *ret = NULL; > > if (!tabreq) { > snmp_log(LOG_INFO, "netsnmp_get_table_handler(NULL) called\n"); > return NULL; > } > > Which means that the function is getting called with a NULL input, which > certainly shouldn't happen. But *where* is calling it? > > -DALL should help identify that > -- > Wes Hardaker > Please mail all replies to net...@li... > > _______________________________________________ > Net-snmp-coders mailing list > Net...@li... > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > |
From: Wes H. <har...@us...> - 2020-08-06 21:32:22
|
The next release candidate of Net-SNMP (5.9.rc2) is available at https://sourceforge.net/projects/net-snmp/files/net-snmp/5.9-pre-releases/ This is barely different from 5.8.1.rc1, but contains a 5.9 version number instead. There were too many API changes (though small) under the V5-8-branches git branch to justify a 5.8.1 release, so we've changed the pending version number 5.9. This will hopefully be the last release of the 5.9 pre-releases. Only show stopping bug fixes should be committed at this point. -- Wes Hardaker Please mail all replies to net...@li... |
From: Ian C <mc...@ya...> - 2020-08-06 18:49:57
|
I took Wes' advice and ran with -DALL, along with some extra DEBUGMSGTLs in suspect areas (-DALL output follows):void initialize_table_chAsinHwSbcNtpTable(void) { syslog( LOG_ERR, "initialize_table_chAsinHwSbcNtpTable()"); const oid chAsinHwSbcNtpTable_oid[] = {1,3,6,1,4,1,25228,3,3,1,9,6,6}; const size_t chAsinHwSbcNtpTable_oid_len = OID_LENGTH(chAsinHwSbcNtpTable_oid); netsnmp_handler_registration *reg; netsnmp_iterator_info *iinfo; netsnmp_table_registration_info *table_info; DEBUGMSGTL(("chAsinHwSbcNtpTable", "initializing table chAsinHwSbcNtpTable\n")); reg = netsnmp_create_handler_registration( "chAsinHwSbcNtpTable", chAsinHwSbcNtpTable_handler, chAsinHwSbcNtpTable_oid, chAsinHwSbcNtpTable_oid_len, HANDLER_CAN_RONLY ); table_info = SNMP_MALLOC_TYPEDEF( netsnmp_table_registration_info ); if(table_info == NULL) { DEBUGMSGTL(("chAsinHwSbcNtpTable", "after SNMP_MALLOC_TYPEDEF( ) table_info is _N_U_L_L!\n")); } else { DEBUGMSGTL(("chAsinHwSbcNtpTable", "after SNMP_MALLOC_TYPEDEF( ) table_info _NOT_ null\n")); } netsnmp_table_helper_add_indexes(table_info, ASN_OCTET_STR, /* index: chAsinHwSbcNtpSbcName */ 0); if(table_info == NULL) { DEBUGMSGTL(("chAsinHwSbcNtpTable", "after netsnmp_table_helper_add_indexes( ) table_info is _N_U_L_L!\n")); } else { DEBUGMSGTL(("chAsinHwSbcNtpTable", "after netsnmp_table_helper_add_indexes( ) table_info _NOT_ null\n")); } table_info->min_column = COLUMN_CHASINHWSBCNTPSBCNAME; table_info->max_column = COLUMN_CHASINHWSBCNTPSTATUSSTRING; iinfo = SNMP_MALLOC_TYPEDEF( netsnmp_iterator_info ); iinfo->get_first_data_point = chAsinHwSbcNtpTable_get_first_data_point; iinfo->get_next_data_point = chAsinHwSbcNtpTable_get_next_data_point; iinfo->table_reginfo = table_info; iinfo->free_loop_context_at_end = nsModuleTable_loop_free; iinfo->free_data_context = freeTableEntry; if(iinfo->table_reginfo == NULL) { DEBUGMSGTL(("chAsinHwSbcNtpTable", "before netsnmp_register_table_iterator( ) iinfo->table_reginfo is _N_U_L_L!\n")); } else { DEBUGMSGTL(("chAsinHwSbcNtpTable", "before netsnmp_register_table_iterator( ) iinfo->table_reginfo _NOT_ null\n")); } netsnmp_register_table_iterator( reg, iinfo ); /* Initialise the contents of the table here */ } Now a snippet from the -DALL logging, but nothing stands out to me, perhaps someone on the list may have some idea: 9:callback:lock: locked (LIB,POST_READ_CONFIG) trace: netsnmp_register_callback(): callback.c, 296: callback: registered (0,0) at 806c818 with priority 0 trace: _callback_unlock(): callback.c, 170: 9:callback:lock: unlocked (LIB,POST_READ_CONFIG) trace: subagent_init(): mibgroup/agentx/subagent.c, 162: agentx/subagent: initializing.... DONE trace: internal_register_config_handler(): read_config.c, 219: 9:read_config:register_handler: registering ./icSNMPntpSubAgentChA.exe com2sec trace: internal_register_config_handler(): read_config.c, 219: 9:read_config:register_handler: registering ./icSNMPntpSubAgentChA.exe com2sec6 trace: internal_register_config_handler(): read_config.c, 219: 9:read_config:register_handler: registering ./icSNMPntpSubAgentChA.exe com2secunix trace: initialize_table_chAsinHwSbcNtpTable(): C:/Users/clougia/workspace/SIN_4/SIN_QNX7/seg_src/SNMP/sinHwSbcNTPtable/channelA/chAsinHwSbcNtpTable.cpp, 60: chAsinHwSbcNtpTable: initializing table chAsinHwSbcNtpTable trace: initialize_table_chAsinHwSbcNtpTable(): C:/Users/clougia/workspace/SIN_4/SIN_QNX7/seg_src/SNMP/sinHwSbcNTPtable/channelA/chAsinHwSbcNtpTable.cpp, 73: chAsinHwSbcNtpTable: after SNMP_MALLOC_TYPEDEF( ) table_info _NOT_ null trace: initialize_table_chAsinHwSbcNtpTable(): C:/Users/clougia/workspace/SIN_4/SIN_QNX7/seg_src/SNMP/sinHwSbcNTPtable/channelA/chAsinHwSbcNtpTable.cpp, 82: chAsinHwSbcNtpTable: after netsnmp_table_helper_add_indexes( ) table_info _NOT_ null trace: initialize_table_chAsinHwSbcNtpTable(): C:/Users/clougia/workspace/SIN_4/SIN_QNX7/seg_src/SNMP/sinHwSbcNTPtable/channelA/chAsinHwSbcNtpTable.cpp, 98: chAsinHwSbcNtpTable: before netsnmp_register_table_iterator( ) iinfo->table_reginfo _NOT_ null trace: netsnmp_inject_handler_before(): agent_handler.c, 444: handler:inject: injecting table_iterator before chAsinHwSbcNtpTable netsnmp_get_table_handler(NULL) called could not create table handler Thanks again Wes, and everyone else reading this! Ian On Thursday, August 6, 2020, 9:56:00 a.m. EDT, Ian C <mc...@ya...> wrote: Thanks Wes, will try this soon. On Wednesday, August 5, 2020, 1:47:24 p.m. EDT, Wes Hardaker <har...@us...> wrote: Ian C via Net-snmp-coders <net...@li...> writes: > Hi, > > We previously had net-snmp 5.6 running on QNX 6.5 (from pkgsrc), and had various > sub-agents retrieving data and working well. However we've recently migrated our OS > to QNX 7.0 and since there are no pkgsrc packages available for that OS we've > upgraded and compiled net-snmp 5.8 ourselves. > > Most of the system has ported well, GETs for scalars are fine; snmp table queries > for system OIDs such as ifTable & atTable also work, however any table query for our > own table-based subagents fail. While digging into this I noticed that upon start-up > our subagent reports: > > Qnx7->SubAgentChA.exe -Lo -d > netsnmp_get_table_handler(NULL) called > could not create table handler I'd run with -DALL in order to get a *lot* of debug output (assuming you didn't turn off debugging output). Specifically, look for the same error message to figure out where in the code the problem is triggered from in the output trace. Because this is where the code is: netsnmp_mib_handler * netsnmp_get_table_handler(netsnmp_table_registration_info *tabreq) { netsnmp_mib_handler *ret = NULL; if (!tabreq) { snmp_log(LOG_INFO, "netsnmp_get_table_handler(NULL) called\n"); return NULL; } Which means that the function is getting called with a NULL input, which certainly shouldn't happen. But *where* is calling it? -DALL should help identify that -- Wes Hardaker Please mail all replies to net...@li... |
From: Wes H. <har...@us...> - 2020-08-05 17:47:38
|
Ian C via Net-snmp-coders <net...@li...> writes: > Hi, > > We previously had net-snmp 5.6 running on QNX 6.5 (from pkgsrc), and had various > sub-agents retrieving data and working well. However we've recently migrated our OS > to QNX 7.0 and since there are no pkgsrc packages available for that OS we've > upgraded and compiled net-snmp 5.8 ourselves. > > Most of the system has ported well, GETs for scalars are fine; snmp table queries > for system OIDs such as ifTable & atTable also work, however any table query for our > own table-based subagents fail. While digging into this I noticed that upon start-up > our subagent reports: > > Qnx7->SubAgentChA.exe -Lo -d > netsnmp_get_table_handler(NULL) called > could not create table handler I'd run with -DALL in order to get a *lot* of debug output (assuming you didn't turn off debugging output). Specifically, look for the same error message to figure out where in the code the problem is triggered from in the output trace. Because this is where the code is: netsnmp_mib_handler * netsnmp_get_table_handler(netsnmp_table_registration_info *tabreq) { netsnmp_mib_handler *ret = NULL; if (!tabreq) { snmp_log(LOG_INFO, "netsnmp_get_table_handler(NULL) called\n"); return NULL; } Which means that the function is getting called with a NULL input, which certainly shouldn't happen. But *where* is calling it? -DALL should help identify that -- Wes Hardaker Please mail all replies to net...@li... |
From: Ian C <mc...@ya...> - 2020-08-05 15:11:59
|
Hi, We previously had net-snmp 5.6 running on QNX 6.5 (from pkgsrc), and had various sub-agents retrieving data and working well. However we've recently migrated our OS to QNX 7.0 and since there are no pkgsrc packages available for that OS we've upgraded and compiled net-snmp 5.8 ourselves. Most of the system has ported well, GETs for scalars are fine; snmp table queries for system OIDs such as ifTable & atTable also work, however any table query for our own table-based subagents fail. While digging into this I noticed that upon start-up our subagent reports: Qnx7->SubAgentChA.exe -Lo -dnetsnmp_get_table_handler(NULL) calledcould not create table handler The subagent will run but no queries ever reach it. If anyone has any thoughts on how to resolve this I'd love to get the feedback. thanks,Ian |
From: Wes H. <har...@us...> - 2020-07-24 13:43:36
|
François Isabelle <fra...@gm...> writes: > I just want to being your attention to the issue reported on GitHub > https://github.com/net-snmp/net-snmp/issues/147 and the corresponding > pull-request I submitted. Coincidentally I merged this patch yesterday, and just now found this message. -- Wes Hardaker Please mail all replies to net...@li... |
From: Wes H. <har...@us...> - 2020-07-24 13:43:10
|
Narendra Kumar S S <ssn...@gm...> writes: > When I build net-snmp code, I am getting a file by name .packlist, > which contains the list of file that will get delivered when the > package is installed. I want to understand the significance of this > file and whether this file is used in the installed system? The .packlist is created by the perl module specific build system. You can safely ignore the files as part of the build process I believe (I'm not an expert in how they're used). -- Wes Hardaker Please mail all replies to net...@li... |
From: Wes H. <har...@us...> - 2020-07-24 02:55:02
|
The first release candidate of Net-SNMP 5.8.1 is available at https://sourceforge.net/projects/net-snmp/files/net-snmp/5.8.1-pre-releases/ About release candidates: as a reminder, Net-SNMP development policy [1] is that any changes that are to go into the V5-8-patches branch to be included in this release from now on must have +3 people on -coders vouch for it as being a change that should go into the release. Proposed changes should be posted here (-coders) or as a pull request with a reference to it posted here. The CHANGES file entries for 5.8.1: *5.8.1* snmplib: - Add IPv6 support to DTLSUDP transport - use new netsnmp_sockaddr_storage in netsnmp_addr_pair - add base_transport ptr for tunneled transports - Add support for OpenSSL 1.1.1 - Dtls: overhaul of debug - Remove inline versions of container funcs snmpd: - Use ETHTOOL_GLINKSETTINGS when available Newer Linux kernels support ETHTOOL_GLINKSETTINGS. Use it when available instead of the older and deprecated ETHTOOL_GSET. This patch avoids that the Linux kernel reports the following kernel warning: warning: 'snmpd' uses legacy ethtool link settings API, link modes are only partially reported See also https://sourceforge.net/p/net-snmp/patches/1387/. [bvanassche: reworked this patch significantly] - Reduce the time needed to execute "pass" scripts on BSD systems See also https://github.com/net-snmp/net-snmp/issues/8. - [BUG 2926]: Make it possible to set agentXPingInterval for a subagent - register agentXPingInterval for the subagent list handler, before it was registered for snmp - added agentxTimeout to the subagent list handler. It's now possible to set for snmpd and the subagent. See 'man snmpd.conf' - added agentxRetries to the subagent list handler. See 'man snmpd.conf'. It's never used in the subagent, but it's now following the documentation Signed-off-by: Anders Wallin <wal...@gm...> snmptrap: - BUG: 2899: Patch from Drew Roedersheimer to set library engineboots/time values before sending snmptrapd: - Add support for the latest libmysqlclient version libsnmp: - Scan MIB directories in alphabetical order This guarantees that e.g. mibs/RFC1213-MIB.txt is read before mibs/SNMPv2-MIB.txt. The order in which these MIBs is read matters because both define sysLocation but with different attributes. unspecified: - [BUG 2930]: Fix a Solaris hrSWInst crash Avoid that snmpd crashes on Solaris when querying software packages with an empty CATEGORY field. See also https://sourceforge.net/p/net-snmp/bugs/2930/. See also https://sourceforge.net/p/net-snmp/patches/1390/. FreeBSD: - Fix first byte of IF-MIB::ifPhysAddress Don't write past the interface name, and use temporary copy instead. This fixes the first byte of ifPhysAddress always being 0 on FreeBSD. See also https://sourceforge.net/p/net-snmp/code/merge-requests/20/. [ bvanassche: edited patch title / added test for malloc() result / reduced number of free(if_name) calls ] Win32: - BUG: 2779541 Fixed handle leak in pass_persist. [1] http://www.net-snmp.org/dev/release-policy.html -- Wes Hardaker Please mail all replies to net...@li... |
From: Narendra K. S S <ssn...@gm...> - 2020-07-21 11:21:04
|
Hi, When I build net-snmp code, I am getting a file by name .packlist, which contains the list of file that will get delivered when the package is installed. I want to understand the significance of this file and whether this file is used in the installed system? Regards, Narendra |
From: François I. <fra...@gm...> - 2020-07-17 11:31:11
|
Hi. I just want to being your attention to the issue reported on GitHub https://github.com/net-snmp/net-snmp/issues/147 and the corresponding pull-request I submitted. Thanks Regards. Frank |
From: SURYA T S <sur...@gm...> - 2020-07-15 10:31:11
|
does snmpget (with netsnmp library) compare the src IP of the source ip of response pkt to the dest IP of the request packet? I have made changes for snmp response from a source ip, but on verifying the changes am getting a timeout error. How can we verify the changes without a timeout error. root@Ubuntu3381:~# snmpwalk -v2c -c public 10.1.1.1 .1.3.6.1.2.1.17.1.1 12:39:49.623579 IP 10.1.1.2.42888 > 10.1.1.1.snmp: GetNextRequest(28) 17.1.1 12:39:49.645601 IP 10.100.74.208.snmp > 10.1.1.2.42888: GetResponse(35) 17.1.1.0=90_20_c2_25_cc_80 ...... ...... 12:39:54.629226 IP 10.1.1.2.42888 > 10.1.1.1.snmp: GetNextRequest(28) 17.1.1 12:39:54.631532 IP 10.100.74.208.snmp > 10.1.1.2.42888: GetResponse(35) 17.1.1.0=90_20_c2_25_cc_80 Timeout: No Response from 10.1.1.1 |
does snmpget (with netsnmp library) compare the src IP of the source ip of response pkt to the dest IP of the request packet? I have made changes for snmp response from a source ip, but on verifying the changes am getting a timeout error. How can we verify the changes without a timeout error. root@Ubuntu3381:~# snmpwalk -v2c -c public 10.1.1.1 .1.3.6.1.2.1.17.1.1 12:39:49.623579 IP 10.1.1.2.42888 > 10.1.1.1.snmp: GetNextRequest(28) 17.1.1 12:39:49.645601 IP 10.100.74.208.snmp > 10.1.1.2.42888: GetResponse(35) 17.1.1.0=90_20_c2_25_cc_80 ...... ...... 12:39:54.629226 IP 10.1.1.2.42888 > 10.1.1.1.snmp: GetNextRequest(28) 17.1.1 12:39:54.631532 IP 10.100.74.208.snmp > 10.1.1.2.42888: GetResponse(35) 17.1.1.0=90_20_c2_25_cc_80 Timeout: No Response from 10.1.1.1 |
From: Wes H. <har...@us...> - 2020-07-09 01:01:25
|
Wes Hardaker <har...@us...> writes: > That one should be easy to fix and I think should go in. Wanted to bug > Robert first though. Looks like it'll slip to next week due to a scheduled vacation. -- Wes Hardaker Please mail all replies to net...@li... |
From: Wes H. <har...@us...> - 2020-07-09 01:01:09
|
"Satpute, Niranjan" <Nir...@ex...> writes: > We are trying to inventory of AS400 devices using Net-SNMP with SNMPv3. We are > not able to pull the data from AS400 device as everything is configured > correctly. There is no reason it shouldn't work. Make sure you understand how net-snmp with version 3 works: http://www.net-snmp.org/wiki/index.php/TUT:SNMPv3_Options -- Wes Hardaker Please mail all replies to net...@li... |
From: Satpute, N. <Nir...@ex...> - 2020-07-07 10:00:12
|
**This message has been automatically created by the Saint-Gobain emails Antivirus protection** A file directly attached to this message or included in an attached zip or archive file has been removed. Its extension is not allowed by the Saint-Gobain Security Policy. If you want to send or receive this file, please use the Secure File Transfer (SFTS) that is available on the Saint-Gobain Portal / “Collaboration Tools”. **Ce message a été automatiquement généré par la protection antivirale Saint-Gobain des emails ** Hello Team, We are trying to inventory of AS400 devices using Net-SNMP with SNMPv3. We are not able to pull the data from AS400 device as everything is configured correctly. Could you please confirm us If Net-SNMP is supported for AS400 Device? We are able to connect to AS400 device with Paeslers SNMP Tester but not with Net-SNMP. We have also put all required MIB's but still not get luck on it. We are waiting for your reply. [cid:image001.png@01D4574C.D7099F10] Niranjan Satpute Systems Engineer Cloud Factory Saint-Gobain DSI Groupe SG INDEC, Mumbai, India Mob :+91-9175014446 E-mail: Nir...@ex...<mailto:Nir...@ex...> [Discover Cloud Factory][logo-cloud-factory-blanc]<https://portal.saint-gobain.com/fr/web/cloud-factory> [mySG_512] <https://my.saint-gobain.com/groups/cloud-factory> |
From: Josef R. <jr...@re...> - 2020-07-07 06:33:51
|
Hi Magnus, sorry for delay. I have to admit, I've lost this bug report from my sight. Due this is downstream issue, I'll deal with it. Once again, I'm sorry for inconveniences. Josef Ridky Software Engineer Core Services Team Red Hat Czech, s.r.o. ----- Original Message ----- | From: "Magnus Fromreide" <ma...@ly...> | To: net...@li..., jr...@re... | Sent: Sunday, July 5, 2020 6:18:42 PM | Subject: RedHat errors in packaging | | Hello! | | I found a bug in the RedHat/Fedora net-snmp packaging a few months back and | wrote a bug report (https://bugzilla.redhat.com/show_bug.cgi?id=1815984) but | nothing have happend with it. | | This broke my intended use of --compile-subagent | | The problem is that they have added a wrapper script for net-snmp-config and | fails to properly quote the arguments they are passing on so any spaces | embedded in arguments are mangled into argument separators. | | This is an obvious case of using $* where "$@" is needed. | | Anyway, how does one go about getting that bug resolved downstream? | | /MF | | |
From: Wes H. <har...@us...> - 2020-07-06 21:29:14
|
Magnus Fromreide <ma...@ly...> writes: > On Mon, Jun 29, 2020 at 07:11:16AM -0700, Wes Hardaker via Net-snmp-coders wrote: > > Hugh McMaster <hug...@ou...> writes: > > > > > net-snmp v5.8.1.pre2 was released a little over four months ago. > > > > > > Following a lot of excellent work by Bart and others since then, what > > > is the proposed timeline for the next pre-release or final v5.8.1? > > > > We don't have a good proposed timeline. So let's come up with one: > > > > + We could release 5.8.1.pre3 this week > > + (and people should test it) > > + We could then freeze development in that branch and shift into > > release mode > > + Push 5.8.1.rc1 next week and start "really freezing" > > > > Is there consensus that 5.8.1 is "ready" to really lock down. It's > > certainly beyond time it gets out the door. > > I think 5-8-patches looks good at the moment. There was one bug I hit Friday while I was starting the process that I wanted to look into. https://github.com/net-snmp/net-snmp/issues/99 That one should be easy to fix and I think should go in. Wanted to bug Robert first though. -- Wes Hardaker Please mail all replies to net...@li... |
From: Magnus F. <ma...@ly...> - 2020-07-05 16:18:52
|
Hello! I found a bug in the RedHat/Fedora net-snmp packaging a few months back and wrote a bug report (https://bugzilla.redhat.com/show_bug.cgi?id=1815984) but nothing have happend with it. This broke my intended use of --compile-subagent The problem is that they have added a wrapper script for net-snmp-config and fails to properly quote the arguments they are passing on so any spaces embedded in arguments are mangled into argument separators. This is an obvious case of using $* where "$@" is needed. Anyway, how does one go about getting that bug resolved downstream? /MF |
From: Magnus F. <ma...@ly...> - 2020-07-05 16:02:25
|
On Mon, Jun 29, 2020 at 07:11:16AM -0700, Wes Hardaker via Net-snmp-coders wrote: > Hugh McMaster <hug...@ou...> writes: > > > net-snmp v5.8.1.pre2 was released a little over four months ago. > > > > Following a lot of excellent work by Bart and others since then, what > > is the proposed timeline for the next pre-release or final v5.8.1? > > We don't have a good proposed timeline. So let's come up with one: > > + We could release 5.8.1.pre3 this week > + (and people should test it) > + We could then freeze development in that branch and shift into > release mode > + Push 5.8.1.rc1 next week and start "really freezing" > > Is there consensus that 5.8.1 is "ready" to really lock down. It's > certainly beyond time it gets out the door. I think 5-8-patches looks good at the moment. /MF |
From: Bart V. A. <bva...@ac...> - 2020-06-29 21:33:55
|
On 2020-06-29 07:11, Wes Hardaker via Net-snmp-coders wrote: > Hugh McMaster <hug...@ou...> writes: > >> net-snmp v5.8.1.pre2 was released a little over four months ago. >> >> Following a lot of excellent work by Bart and others since then, what >> is the proposed timeline for the next pre-release or final v5.8.1? > > We don't have a good proposed timeline. So let's come up with one: > > + We could release 5.8.1.pre3 this week > + (and people should test it) > + We could then freeze development in that branch and shift into > release mode > + Push 5.8.1.rc1 next week and start "really freezing" > > Is there consensus that 5.8.1 is "ready" to really lock down. It's > certainly beyond time it gets out the door. Not sure what others think but I'm fine with locking down 5.8.1. Thanks, Bart. |
From: Wes H. <har...@us...> - 2020-06-29 14:27:02
|
Craig Small <csmall@dropbear.xyz> writes: > Observed NETSNMP_DISABLE_SNMPV2C, NETSNMP_DISABLE_SNMPV1 defines. How > can we set and unset it? > > That's done at compile time with things like configure > --disable-snmpv1 Specifically, the only real benifit in doing so is that it removes the actual code that implements v1/v2c. That code is fairly small, the savings is minimal. It was developed as a sponsored effort by someone that wanted to be ultra-sure that v1/v2c wouldn't be used. -- Wes Hardaker Please mail all replies to net...@li... |
From: Wes H. <har...@us...> - 2020-06-29 14:26:54
|
Hugh McMaster <hug...@ou...> writes: > net-snmp v5.8.1.pre2 was released a little over four months ago. > > Following a lot of excellent work by Bart and others since then, what > is the proposed timeline for the next pre-release or final v5.8.1? We don't have a good proposed timeline. So let's come up with one: + We could release 5.8.1.pre3 this week + (and people should test it) + We could then freeze development in that branch and shift into release mode + Push 5.8.1.rc1 next week and start "really freezing" Is there consensus that 5.8.1 is "ready" to really lock down. It's certainly beyond time it gets out the door. -- Wes Hardaker Please mail all replies to net...@li... |
From: Wes H. <har...@us...> - 2020-06-29 14:21:56
|
Philippe Denis <phd...@gm...> writes: > Hello all, > > I have a question linked to snmp traps in V3 version. > Sorry for responding so late, but you should read this page which discusses how v3 traps and informs work with respect to engineIDs: http://www.net-snmp.org/wiki/index.php/TUT:snmptrap_SNMPv3 -- Wes Hardaker Please mail all replies to net...@li... |
From: Wes H. <har...@us...> - 2020-06-29 14:21:55
|
SURYA T S <sur...@gm...> writes: > Please suggest me better way to change srcip in snmpresponses, Have you set the "agentaddress" token in snmpd.conf? This should have an effect. -- Wes Hardaker Please mail all replies to net...@li... |