From: SourceForge.net <no...@so...> - 2007-10-14 09:04:11
|
Bugs item #1810814, was opened at 2007-10-10 06:32 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1810814&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: agent Group: solaris Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Thomas Anders (tanders) Summary: tcpTable missing entries and wrong ports in Solaris Initial Comment: getMibstat does not return rows in sorted order. I try in Solaris 10 SPARC/x86/amd64 and Solaris 8 SPARC/x86, all theses box does not return in sorted order. In addition, TCPTABLE_LOCALPORT and TCPCONNREMOTEPORT are returned in host byte order. I write quick hack, which build sorted linked list in tcpTable_load. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-10-14 02:04 Message: Logged In: NO I'm sorry, I forget change "#endif" comment. tcpTable.c: 167 #if defined (WIN32) || defined (cygwin) 168 iinfo->flags |= NETSNMP_ITERATOR_FLAG_SORTED; 169 #endif /* WIN32 || cygwin || solaris2 */ line 169 should be "#endif /* WIN32 || cygwin */". Thanks. ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-10-13 15:30 Message: Logged In: YES user_id=848638 Originator: NO Applied a slightly modified version of the patch as SVN Rev. 16718. Thanks. ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-10-13 15:30 Message: Logged In: YES user_id=848638 Originator: NO Thanks for the bug report! We've fixed the problem in the 5.2.x, 5.3.x and 5.4.x code branches and the main development tree, so it should be fixed in future releases of the Net-SNMP package. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-10-13 02:39 Message: Logged In: NO I changed my patch. Thanks for your advice. --- net-snmp-5.4.1/include/net-snmp/system/solaris.h- Thu Oct 12 00:02:50 2006 +++ net-snmp-5.4.1/include/net-snmp/system/solaris.h Sat Oct 13 17:16:21 2007 @@ -23,6 +23,7 @@ #define UDP_ADDRESSES_IN_HOST_ORDER 1 #define UDP_PORTS_IN_HOST_ORDER 1 +#define TCP_PORTS_IN_HOST_ORDER 1 /* get some required prototypes (strtok_r) from include files */ #define __EXTENSIONS__ --- net-snmp-5.4.1/agent/mibgroup/mibII/tcpTable.c- Tue Nov 7 08:43:27 2006 +++ net-snmp-5.4.1/agent/mibgroup/mibII/tcpTable.c Sat Oct 13 17:34:28 2007 @@ -123,6 +123,12 @@ #define TCP_STATS_CACHE_TIMEOUT MIB_STATS_CACHE_TIMEOUT #endif +#if defined(TCP_PORTS_IN_HOST_ORDER) && TCP_PORTS_IN_HOST_ORDER +#define TCP_PORT_TO_HOST_ORDER(x) x +#else +#define TCP_PORT_TO_HOST_ORDER(x) ntohs(x) +#endif + oid tcpTable_oid[] = { SNMP_OID_MIB2, 6, 13 }; void @@ -158,7 +164,7 @@ iinfo->get_first_data_point = tcpTable_first_entry; iinfo->get_next_data_point = tcpTable_next_entry; iinfo->table_reginfo = table_info; -#if defined (WIN32) || defined (cygwin) || defined (solaris2) +#if defined (WIN32) || defined (cygwin) iinfo->flags |= NETSNMP_ITERATOR_FLAG_SORTED; #endif /* WIN32 || cygwin || solaris2 */ @@ -233,7 +239,7 @@ #endif break; case TCPCONNLOCALPORT: - port = ntohs((u_short)entry->TCPTABLE_LOCALPORT); + port = TCP_PORT_TO_HOST_ORDER((u_short)entry->TCPTABLE_LOCALPORT); snmp_set_var_typed_value(requestvb, ASN_INTEGER, (u_char *)&port, sizeof(port)); break; @@ -249,7 +255,7 @@ #endif break; case TCPCONNREMOTEPORT: - port = ntohs((u_short)entry->TCPTABLE_REMOTEPORT); + port = TCP_PORT_TO_HOST_ORDER((u_short)entry->TCPTABLE_REMOTEPORT); snmp_set_var_typed_value(requestvb, ASN_INTEGER, (u_char *)&port, sizeof(port)); break; @@ -338,7 +344,7 @@ sizeof(tcp_head[i].TCPTABLE_LOCALADDRESS)); #endif - port = ntohs((u_short)tcp_head[i].TCPTABLE_LOCALPORT); + port = TCP_PORT_TO_HOST_ORDER((u_short)tcp_head[i].TCPTABLE_LOCALPORT); idx = idx->next_variable; snmp_set_var_value(idx, (u_char*)&port, sizeof(port)); @@ -352,7 +358,7 @@ sizeof(tcp_head[i].TCPTABLE_REMOTEADDRESS)); #endif - port = ntohs((u_short)tcp_head[i].TCPTABLE_REMOTEPORT); + port = TCP_PORT_TO_HOST_ORDER((u_short)tcp_head[i].TCPTABLE_REMOTEPORT); idx = idx->next_variable; snmp_set_var_value(idx, (u_char*)&port, sizeof(port)); @@ -429,7 +435,7 @@ #endif snmp_set_var_value(idx, (u_char *)&addr, sizeof(addr)); - port = ntohs(entry->TCPTABLE_LOCALPORT); + port = TCP_PORT_TO_HOST_ORDER(entry->TCPTABLE_LOCALPORT); idx = idx->next_variable; snmp_set_var_value(idx, (u_char*)&port, sizeof(port)); @@ -441,7 +447,7 @@ #endif snmp_set_var_value(idx, (u_char *)&addr, sizeof(addr)); - port = ntohs(entry->TCPTABLE_REMOTEPORT); + port = TCP_PORT_TO_HOST_ORDER(entry->TCPTABLE_REMOTEPORT); idx = idx->next_variable; snmp_set_var_value(idx, (u_char*)&port, sizeof(port)); ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-10-12 14:10 Message: Logged In: YES user_id=848638 Originator: NO As for the byte order issue, let ..._ADDRESSES_... alone for the moment and just deal with TCP_PORTS_IN_HOST_ORDER (which is the only thing that needs fixing here). ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-10-12 13:22 Message: Logged In: NO Hmm, it looks udpLocalPort has no problem. I compared udpTable.c and tcpTable.c, then I found! NETSNMP_ITERATOR_FLAG_SORTED is set to iterator flag in tcpTable.c. --- agent/mibgroup/mibII/tcpTable.c- Tue Nov 7 08:43:27 2006 +++ agent/mibgroup/mibII/tcpTable.c Sat Oct 13 04:39:48 2007 -#if defined (WIN32) || defined (cygwin) || defined (solaris2) +#if defined (WIN32) || defined (cygwin) iinfo->flags |= NETSNMP_ITERATOR_FLAG_SORTED; -#endif /* WIN32 || cygwin || solaris2 */ +#endif /* WIN32 || cygwin */ I defined TCP_PORTS_IN_HOST_ORDER, it works well. But I have some question. UDP_ADDRESSES_IN_HOST_ORDER is defined as 1 in net-snmp/system/solaris.h, but solaris box return IpAddres in network byte order, and return port in host byte order. I read udptable.c, UDP_ADDRESS_TO_HOST_ORDER and ntohl are mix used, but not converted in some place. Is this correct?, I am confused. ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-10-12 01:16 Message: Logged In: YES user_id=848638 Originator: NO Is udpTable incomplete on your boxes as well? If so, then we need a similar patch there. If not, then we may want to solve it the same way instead of the "ugly hack". ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-10-11 22:00 Message: Logged In: NO These are output. tcpConnectionState and tcpListenerProcess is fine, but tcpConnState are incorrect. I try change patch which use TCP_PORTS_IN_HOST_ORDER, and report back. Thank you. % snmpwalk -c public localhost tcp TCP-MIB::tcpRtoAlgorithm.0 = INTEGER: vanj(4) TCP-MIB::tcpRtoMin.0 = INTEGER: 400 milliseconds TCP-MIB::tcpRtoMax.0 = INTEGER: 60000 milliseconds TCP-MIB::tcpMaxConn.0 = INTEGER: -1 TCP-MIB::tcpActiveOpens.0 = Counter32: 157 TCP-MIB::tcpPassiveOpens.0 = Counter32: 114 TCP-MIB::tcpAttemptFails.0 = Counter32: 4 TCP-MIB::tcpEstabResets.0 = Counter32: 8 TCP-MIB::tcpCurrEstab.0 = Gauge32: 1 TCP-MIB::tcpInSegs.0 = Counter32: 435201 TCP-MIB::tcpOutSegs.0 = Counter32: 505524 TCP-MIB::tcpRetransSegs.0 = Counter32: 11793 TCP-MIB::tcpConnState.0.0.0.0.0.0.0.0.0.0 = INTEGER: closed(1) TCP-MIB::tcpConnState.0.0.0.0.60674.0.0.0.0.0 = INTEGER: listen(2) TCP-MIB::tcpConnState.0.0.0.0.61954.0.0.0.0.0 = INTEGER: listen(2) TCP-MIB::tcpConnState.192.168.192.2.5632.172.24.6.90.54912 = INTEGER: established(5) TCP-MIB::tcpConnLocalAddress.0.0.0.0.0.0.0.0.0.0 = IpAddress: 0.0.0.0 TCP-MIB::tcpConnLocalAddress.0.0.0.0.60674.0.0.0.0.0 = IpAddress: 0.0.0.0 TCP-MIB::tcpConnLocalAddress.0.0.0.0.61954.0.0.0.0.0 = IpAddress: 0.0.0.0 TCP-MIB::tcpConnLocalAddress.192.168.192.2.5632.172.24.6.90.54912 = IpAddress: 192.168.192.2 TCP-MIB::tcpConnLocalPort.0.0.0.0.0.0.0.0.0.0 = INTEGER: 0 TCP-MIB::tcpConnLocalPort.0.0.0.0.60674.0.0.0.0.0 = INTEGER: 60674 TCP-MIB::tcpConnLocalPort.0.0.0.0.61954.0.0.0.0.0 = INTEGER: 61954 TCP-MIB::tcpConnLocalPort.192.168.192.2.5632.172.24.6.90.54912 = INTEGER: 5632 TCP-MIB::tcpConnRemAddress.0.0.0.0.0.0.0.0.0.0 = IpAddress: 0.0.0.0 TCP-MIB::tcpConnRemAddress.0.0.0.0.60674.0.0.0.0.0 = IpAddress: 0.0.0.0 TCP-MIB::tcpConnRemAddress.0.0.0.0.61954.0.0.0.0.0 = IpAddress: 0.0.0.0 TCP-MIB::tcpConnRemAddress.192.168.192.2.5632.172.24.6.90.54912 = IpAddress: 172.24.6.90 TCP-MIB::tcpConnRemPort.0.0.0.0.0.0.0.0.0.0 = INTEGER: 0 TCP-MIB::tcpConnRemPort.0.0.0.0.60674.0.0.0.0.0 = INTEGER: 0 TCP-MIB::tcpConnRemPort.0.0.0.0.61954.0.0.0.0.0 = INTEGER: 0 TCP-MIB::tcpConnRemPort.192.168.192.2.5632.172.24.6.90.54912 = INTEGER: 54912 TCP-MIB::tcpInErrs.0 = Counter32: 0 TCP-MIB::tcpConnectionState.ipv4."0.0.0.0".0.ipv4."0.0.0.0".0 = INTEGER: closed(1) TCP-MIB::tcpConnectionState.ipv4."192.168.192.2".22.ipv4."172.24.6.90".32982 = INTEGER: established(5) TCP-MIB::tcpConnectionState.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00".0.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00".0 = INTEGER: closed(1) TCP-MIB::tcpConnectionProcess.ipv4."0.0.0.0".0.ipv4."0.0.0.0".0 = Gauge32: 0 TCP-MIB::tcpConnectionProcess.ipv4."192.168.192.2".22.ipv4."172.24.6.90".32982 = Gauge32: 0 TCP-MIB::tcpConnectionProcess.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00".0.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00".0 = Gauge32: 0 TCP-MIB::tcpListenerProcess.ipv4."0.0.0.0".22 = Gauge32: 0 TCP-MIB::tcpListenerProcess.ipv4."0.0.0.0".111 = Gauge32: 0 TCP-MIB::tcpListenerProcess.ipv4."0.0.0.0".749 = Gauge32: 0 TCP-MIB::tcpListenerProcess.ipv4."0.0.0.0".754 = Gauge32: 0 TCP-MIB::tcpListenerProcess.ipv4."0.0.0.0".7088 = Gauge32: 0 TCP-MIB::tcpListenerProcess.ipv4."127.0.0.1".25 = Gauge32: 0 TCP-MIB::tcpListenerProcess.ipv4."127.0.0.1".587 = Gauge32: 0 TCP-MIB::tcpListenerProcess.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00".22 = Gauge32: 0 % netstat -af inet -n -P tcp TCP: IPv4 Local Address Remote Address Swind Send-Q Rwind Recv-Q State -------------------- -------------------- ----- ------ ----- ------ ----------- *.* *.* 0 0 49152 0 IDLE *.749 *.* 0 0 49152 0 LISTEN *.111 *.* 0 0 49152 0 LISTEN *.* *.* 0 0 49152 0 IDLE *.754 *.* 0 0 49152 0 LISTEN *.7088 *.* 0 0 49152 0 LISTEN 192.168.192.2.22 172.24.6.90.32982 49490 31 49490 0 ESTABLISHED *.22 *.* 0 0 49152 0 LISTEN 127.0.0.1.25 *.* 0 0 49152 0 LISTEN 127.0.0.1.587 *.* 0 0 49152 0 LISTEN % netstat -af inet6 -n -P tcp TCP: IPv6 Local Address Remote Address Swind Send-Q Rwind Recv-Q State If --------------------------------- --------------------------------- ----- ------ ----- ------ ----------- ----- *.* *.* 0 0 49152 0 IDLE *.22 *.* 0 0 49152 0 LISTEN ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-10-11 16:17 Message: Logged In: YES user_id=848638 Originator: NO Could you change the host order part of your patch to follow the same style as udpTable.c, i.e. #define TCP_PORTS_IN_HOST_ORDER in <net-snmp/system/solaris.h> and use it to define helpful macros in tcpTable.c? Thanks. ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-10-11 16:08 Message: Logged In: YES user_id=848638 Originator: NO Can you attach the output of walking all of TCP-MIB (1.3.6.1.2.1.6) against the 5.4.1 agent in current configuration, please? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-10-11 12:17 Message: Logged In: NO After make distclean, I reconfigure, but I have still the problem. How can I enable the udp-mib and tcp-mib rewrites? ./configure \ --with-sys-contact=root \ --with-sys-location="" \ --with-logfile=/var/log/snmpd.log \ --with-persistent-directory=/var/net-snmp \ --with-ldflags=-R/usr/local/ssl/lib \ --with-zlib --with-db \ --enable-mfd-rewrites --with-mib-modules="udp-mib tcp-mib" \ --enable-ucd-snmp-compatibility \ --with-default-snmp-version=1 \ --enable-ipv6 \ --with-cc=/opt/SUNWspro/bin/cc % net-snmp-config --snmpd-module-list | tr ' ' '\n' udp-mib/udpEndpointTable/udpEndpointTable tcp-mib/tcpConnectionTable/tcpConnectionTable tcp-mib/tcpListenerTable/tcpListenerTable snmpv3/snmpEngine snmpv3/snmpMPDStats snmpv3/usmStats snmpv3/usmConf snmpv3/usmUser mibII/system_mib mibII/sysORTable mibII/at mibII/ip mibII/snmp_mib mibII/tcp mibII/icmp mibII/udp mibII/vacm_vars mibII/setSerialNo ucd-snmp/proc ucd-snmp/versioninfo ucd-snmp/pass ucd-snmp/pass_persist ucd-snmp/disk ucd-snmp/loadave agent/extend ucd-snmp/errormib ucd-snmp/file ucd-snmp/dlmod ucd-snmp/proxy ucd-snmp/logmatch ucd-snmp/memory ucd-snmp/vmstat notification/snmpNotifyTable notification/snmpNotifyFilterProfileTable notification-log-mib/notification_log target/snmpTargetAddrEntry target/snmpTargetParamsEntry target/target target/target_counters agent/nsTransactionTable agent/nsModuleTable agent/nsDebug agent/nsCache agent/nsLogging agent/nsVacmAccessTable agentx/master agentx/subagent disman/event/mteScalars disman/event/mteTrigger disman/event/mteTriggerTable disman/event/mteTriggerDeltaTable disman/event/mteTriggerExistenceTable disman/event/mteTriggerBooleanTable disman/event/mteTriggerThresholdTable disman/event/mteTriggerConf disman/event/mteEvent disman/event/mteEventTable disman/event/mteEventSetTable disman/event/mteEventNotificationTable disman/event/mteEventConf disman/event/mteObjects disman/event/mteObjectsTable disman/event/mteObjectsConf disman/schedule/schedCore disman/schedule/schedConf disman/schedule/schedTable utilities/override utilities/execute utilities/iquery host/hr_system host/hr_storage host/hr_device host/hr_other host/hr_proc host/hr_network host/hr_print host/hr_disk host/hr_partition host/hr_filesys host/hr_swrun host/hr_swinst udp-mib/udpEndpointTable/udpEndpointTable_interface udp-mib/udpEndpointTable/udpEndpointTable_data_access tcp-mib/data_access/tcpConn_common tcp-mib/data_access/tcpConn_solaris2 tcp-mib/tcpConnectionTable/tcpConnectionTable_interface tcp-mib/tcpConnectionTable/tcpConnectionTable_data_access tcp-mib/tcpListenerTable/tcpListenerTable_interface tcp-mib/tcpListenerTable/tcpListenerTable_data_access util_funcs kernel_sunos5 mibII/ipAddr mibII/var_route mibII/route_write mibII/tcpTable mibII/udpTable mibII/vacm_context mibII/vacm_conf header_complex snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable agentx/protocol agentx/client agentx/master_admin agentx/agentx_config udp-mib/data_access/udp_endpoint_common udp-mib/data_access/udp_endpoint_solaris2 if-mib/ifTable/ifTable if-mib/ifXTable/ifXTable hardware/memory/hw_mem hardware/memory/memory_solaris hardware/cpu/cpu hardware/cpu/cpu_kstat snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_interface snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_data_access if-mib/data_access/interface if-mib/ifTable/ifTable_interface if-mib/ifTable/ifTable_data_access if-mib/ifXTable/ifXTable_interface if-mib/ifXTable/ifXTable_data_access if-mib/data_access/interface_solaris2 ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-10-11 08:26 Message: Logged In: YES user_id=848638 Originator: NO Argh, looks like --enable-mfd-rewrites does *not* enable the udp-mib and tcp-mib rewrites. Please rebuild again with ./configure --enable-mfd-rewrites --with-mib-modules="udp-mib tcp-mib" ... and report back. Sorry for the inconvenience. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-10-11 07:56 Message: Logged In: NO % net-snmp-config --version 5.4.1 % net-snmp-config --snmpd-module-list | tr ' ' '\n' snmpv3/snmpEngine snmpv3/snmpMPDStats snmpv3/usmStats snmpv3/usmConf snmpv3/usmUser mibII/system_mib mibII/sysORTable mibII/at mibII/ip mibII/snmp_mib mibII/tcp mibII/icmp mibII/udp mibII/vacm_vars mibII/setSerialNo ucd-snmp/proc ucd-snmp/versioninfo ucd-snmp/pass ucd-snmp/pass_persist ucd-snmp/disk ucd-snmp/loadave agent/extend ucd-snmp/errormib ucd-snmp/file ucd-snmp/dlmod ucd-snmp/proxy ucd-snmp/logmatch ucd-snmp/memory ucd-snmp/vmstat notification/snmpNotifyTable notification/snmpNotifyFilterProfileTable notification-log-mib/notification_log target/snmpTargetAddrEntry target/snmpTargetParamsEntry target/target target/target_counters agent/nsTransactionTable agent/nsModuleTable agent/nsDebug agent/nsCache agent/nsLogging agent/nsVacmAccessTable agentx/master agentx/subagent disman/event/mteScalars disman/event/mteTrigger disman/event/mteTriggerTable disman/event/mteTriggerDeltaTable disman/event/mteTriggerExistenceTable disman/event/mteTriggerBooleanTable disman/event/mteTriggerThresholdTable disman/event/mteTriggerConf disman/event/mteEvent disman/event/mteEventTable disman/event/mteEventSetTable disman/event/mteEventNotificationTable disman/event/mteEventConf disman/event/mteObjects disman/event/mteObjectsTable disman/event/mteObjectsConf disman/schedule/schedCore disman/schedule/schedConf disman/schedule/schedTable utilities/override utilities/execute utilities/iquery host/hr_system host/hr_storage host/hr_device host/hr_other host/hr_proc host/hr_network host/hr_print host/hr_disk host/hr_partition host/hr_filesys host/hr_swrun host/hr_swinst util_funcs kernel_sunos5 mibII/ipAddr mibII/var_route mibII/route_write mibII/tcpTable mibII/udpTable mibII/vacm_context mibII/vacm_conf header_complex snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable agentx/protocol agentx/client agentx/master_admin agentx/agentx_config if-mib/ifTable/ifTable if-mib/ifXTable/ifXTable hardware/memory/hw_mem hardware/memory/memory_solaris hardware/cpu/cpu hardware/cpu/cpu_kstat snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_interface snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_data_access if-mib/data_access/interface if-mib/ifTable/ifTable_interface if-mib/ifTable/ifTable_data_access if-mib/ifXTable/ifXTable_interface if-mib/ifXTable/ifXTable_data_access if-mib/data_access/interface_solaris2 % /usr/local/bin/snmpnetstat -c public -Ca -Cp tcp -Cn localhost Active Internet (tcp) Connections (including servers) Proto Local Address Remote Address (state) tcp *.* *.* CLOSED tcp *.60674 *.* LISTEN tcp *.61954 *.* LISTEN tcp 192.168.192.2.5632 172.24.6.90.51328 ESTABLISHED espresso% netstat -af inet -n -P tcp TCP: IPv4 Local Address Remote Address Swind Send-Q Rwind Recv-Q State -------------------- -------------------- ----- ------ ----- ------ ----------- *.* *.* 0 0 49152 0 IDLE *.749 *.* 0 0 49152 0 LISTEN *.111 *.* 0 0 49152 0 LISTEN *.* *.* 0 0 49152 0 IDLE *.754 *.* 0 0 49152 0 LISTEN *.7088 *.* 0 0 49152 0 LISTEN *.22 *.* 0 0 49152 0 LISTEN 192.168.192.2.22 172.24.6.90.32968 49490 0 49490 0 ESTABLISHED 127.0.0.1.25 *.* 0 0 49152 0 LISTEN 127.0.0.1.587 *.* 0 0 49152 0 LISTEN 192.168.192.2.22 172.24.6.90.32966 49490 0 49490 0 ESTABLISHED I think this problem caused solaris kernel does not return socket table in sorted order, but tcpTable_load expcets sorted. written comments in tcpTable.c tcpTable_load(): "Note that since getMibstat returns rows in sorted order," ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-10-11 03:34 Message: Logged In: YES user_id=848638 Originator: NO What's the output of "net-snmp-config --snmpd-module-list"? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-10-11 03:02 Message: Logged In: NO Thank you. But, my build configuration has --enable-mfd-rewrites already. I tried in 5.4.1, ./configure \ --with-ldflags=-R/usr/local/ssl/lib \ --with-zlib --with-db \ --enable-mfd-rewrites \ --enable-ucd-snmp-compatibility \ --with-default-snmp-version=1 \ --enable-ipv6 \ --with-cc=/opt/SUNWspro/bin/cc ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-10-10 11:45 Message: Logged In: YES user_id=848638 Originator: NO Please rebuild 5.4.x with ./configure --enable-mfd-rewrites (to enable the new tcp-mib implementation) and report back. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1810814&group_id=12694 |