On 08.12.2010, at 07:45, Wes Hardaker wrote: > > pre2 contains only a small number of bug fixes over .pre1 and can be > grabbed from: > > https://sourceforge.net/projects/net-snmp/files/net-snmp/5.6.1-pre-releases/ > > Let us know if you find any critical issues. >
I downloaded the tar archive, configure and make test. Than I started it with this snmpd.conf: engineIDType 3 # use mac addr master agentx agentxsocket tcp:127.0.0.1:705 agentxTimeout 5 # agentxTimeout AgentX Timeout (seconds) agentxRetries 0 # agentxRetries AgentX Retries view iso included .iso createUser unsec MD5 "--none--" DES "--none--" rwuser unsec noAuthNoPriv -V iso * snmpNotifyTable "NMS" "NMS" 1 3 1 targetAddr NMS .1.3.6.1.6.1.1 0x7f00000100a2 1500 3 "NMS" NMS 3 1 targetParams NMS 3 3 trapuser 1 3 1 trapsess -v 3 -e 0x80001f88017f000001 -u trapuser -l noAuthNoPriv udp:127.0.0.1:162 Why dit you ignore my patch? claus-kleins-macbook-pro:net-snmp-5.6.1.pre2 clausklein$ sudo agent/ snmpd -f -Le -C -c ./snmpd.conf -Dsnmpv3,trap,notif,send,usm registered debug token snmpv3, 1 registered debug token trap, 1 registered debug token notif, 1 registered debug token send, 1 registered debug token usm, 1 notification_log: registering with '(null)' context trap: freeing trap sessions trap: freeing trap sessions trap: freeing trap sessions trap: freeing trap sessions ./snmpd.conf: line 7: Error: Unsupported enginedIDType, forcing IPv4 snmpv3: engineIDType: 1 Turning on AgentX master support. usmUser: created a new user unsec at 80 00 1F 88 01 C0 A8 01 81 trap: adding callback trap sink (0x387ce0) trapsess: adding to trap table trap: send_trap 0 0 NET-SNMP-MIB::netSnmpAgentOIDs.255 send_notifications: starting: pdu=0x388550, vars=0x0 send_notifications: sent 0 notifications send_notifications: starting: pdu=0x388610, vars=0x818000 send_notifications: checking filters... send_notifications: no matching profile trap: sending trap type=167, version=3 usm: match on user trapuser Bus error claus-kleins-macbook-pro:net-snmp-5.6.1.pre2 clausklein$ starting with -Dall ... trace: send_notifications(): notification/snmpNotifyTable.c, 213: send_notifications: starting: pdu=0x3885b0, vars=0x818000 trace: get_target_sessions(): target/target.c, 44: target_sessions: looking for: NMS trace: get_target_sessions(): target/target.c, 48: target_sessions: for: 0=NMS trace: get_target_sessions(): target/target.c, 89: target_sessions: found one: NMS trace: netsnmp_tdomain_transport_oid(): snmp_transport.c, 637: tdomain: domain "SNMPv2-TM::snmpUDPDomain" trace: netsnmp_udpipv4base_transport(): transports/ snmpUDPIPv4BaseDomain.c, 83: netsnmp_udpbase: open remote UDP: [127.0.0.1]:162->[0.0.0.0]:0 trace: netsnmp_udpipv4base_transport(): transports/ snmpUDPIPv4BaseDomain.c, 87: UDPBase: openned socket 8 as local=0 trace: _sock_buffer_size_get(): transports/snmpSocketBaseDomain.c, 199: socket:buffer: Requested client send buffer is 0 verbose:socket:buffer: Original client send buffer is 9216 verbose:socket:buffer: New client send buffer size is smaller than original! socket:buffer: client send buffer not valid or not specified; using OS default(9216) trace: _sock_buffer_size_get(): transports/snmpSocketBaseDomain.c, 199: socket:buffer: Requested client receive buffer is 0 verbose:socket:buffer: Original client receive buffer is 42080 verbose:socket:buffer: New client receive buffer size is smaller than original! socket:buffer: client receive buffer not valid or not specified; using OS default(42080) trace: netsnmp_udpipv4base_transport(): transports/ snmpUDPIPv4BaseDomain.c, 163: netsnmp_udpbase: client open UDP: [127.0.0.1]:162->[0.0.0.0]:0 trace: get_target_sessions(): target/target.c, 170: target_sessions: to: UDP: [127.0.0.1]:162->[0.0.0.0]:0 trace: get_target_sessions(): target/target.c, 241: target_sessions: timeout: 1500 -> 1500000 trace: netsnmp_sess_config_and_open_transport(): snmp_api.c, 1515: snmp_sess: opening transport: 0 trace: netsnmp_sess_config_and_open_transport(): snmp_api.c, 1540: snmp_sess: done opening transport: 20 trace: snmp_sess_add_ex(): snmp_api.c, 1753: snmp_sess_add: fd 8 trace: _callback_lock(): callback.c, 127: 9:callback:lock: locked (LIB,SESSION_INIT) trace: snmp_call_callbacks(): callback.c, 319: callback: START calling callbacks for maj=0 min=5 trace: snmp_call_callbacks(): callback.c, 333: callback: calling a callback for maj=0 min=5 trace: snmp_call_callbacks(): callback.c, 345: callback: END calling callbacks for maj=0 min=5 (1 called) trace: _callback_unlock(): callback.c, 161: 9:callback:lock: unlocked (LIB,SESSION_INIT) trace: snmp_sess_add_ex(): snmp_api.c, 1775: snmp_sess_add: adding v3 session -- maybe engineID probe now trace: _checkFilter(): notification/snmpNotifyTable.c, 109: send_notifications: checking filters... trace: header_complex_generate_oid(): header_complex.c, 236: header_complex_generate_oid: generated: .78.77.83 trace: _checkFilter(): notification/snmpNotifyTable.c, 124: send_notifications: no matching profile trace: send_trap_to_sess(): agent_trap.c, 903: trap: sending trap type=167, version=3 trace: usm_get_user_from_list(): snmpusm.c, 3123: usm: match on user trapuser trace: usm_get_user_from_list(): snmpusm.c, 3129: Bus error Please add all my test scripts to the project and apply my patch! With Regards, Claus ------------------------------------------------------------------------------ This SF Dev2Dev email is sponsored by: WikiLeaks The End of the Free Internet http://p.sf.net/sfu/therealnews-com _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
