Hi,

I want to log snmpv3 traps with different context.
So I configure to send snmpv3 traps to my trap receiver.
I use this trap session configuration:
snmpd.conf:trapsess -v 3 -u unsec -l noAuthNoPriv udp:localhost:162

This is what happens on snmptrapd:

claus-kleins-macbook-pro:net-snmp-5.4.3-patched clausklein$ sudo apps/ 
snmptrapd -f -c ./snmptrapd.conf -C -Le - 
Dread_config,auth,trap,notif,dump,usm,view -x /dev/null
registered debug token read_config, 1
registered debug token auth, 1
registered debug token trap, 1
registered debug token notif, 1
registered debug token dump, 1
registered debug token usm, 1
registered debug token view, 1
notification_log: registering with 'snmptrapd' context
read_config: reading premib configuration tokens
read_configs_optional: reading optional configuration tokens for  
snmptrapd
read_config: Reading optional config file: "./snmptrapd.conf"
read_config: Reading configuration ./snmptrapd.conf
read_config: ./snmptrapd.conf:16 examining:  
doNotRetainNotificationLogs no
read_config: ./snmptrapd.conf:18 examining: disableAuthorization yes
read_config: ./snmptrapd.conf:21 examining: authCommunity log public  
default
read_config: ./snmptrapd.conf:22 examining: authUser log unsec  
noAuthNoPriv -V _all_ *
read_config: ./snmptrapd.conf:23 examining: createUser unsec MD5 "-- 
none--" DES "--none--"
read_config: reading normal configuration tokens
read_configs_optional: reading optional configuration tokens for  
snmptrapd
read_config: Reading optional config file: "./snmptrapd.conf"
read_config: Reading configuration ./snmptrapd.conf
read_config: ./snmptrapd.conf:16 examining:  
doNotRetainNotificationLogs no
read_config: Found a parser.  Calling it:  
doNotRetainNotificationLogs / no
read_config: ./snmptrapd.conf:18 examining: disableAuthorization yes
read_config: Found a parser.  Calling it: disableAuthorization / yes
read_config: ./snmptrapd.conf:21 examining: authCommunity log public  
default
read_config: Found a parser.  Calling it: authCommunity / log public  
default
authCommunity: passing: com2secunix comm1 default 'public'
authCommunity:  checking view levels for 8
authCommunity: passing: setaccess grpcomm1 "" any noauth prefix log  
_all_
read_config: ./snmptrapd.conf:22 examining: authUser log unsec  
noAuthNoPriv -V _all_ *
read_config: Found a parser.  Calling it: authUser / log unsec  
noAuthNoPriv -V _all_ *
authUser: setting auth level: "noAuthNoPriv"
authUser: passing: group grpunsec usm unsec
authUser:  checking view levels for 8
authUser: passing: setaccess grpunsec "" usm noAuthNoPriv prefix log  
_all_
read_config: ./snmptrapd.conf:23 examining: createUser unsec MD5 "-- 
none--" DES "--none--"
read_config: Found a parser.  Calling it: createUser / unsec MD5 "-- 
none--" DES "--none--"
usmUser: created a new user unsec at 80 00 1F 88 80 DC A8 68 0C 3F 60  
E0 4C
NET-SNMP version 5.4.3
dumpx_recv:02 01 03
dumpv_recv:  Integer:   3 (0x03)
dumph_recv: SNMPv3 Message
dumph_recv:   SNMP Version Number
dumpx_recv:    02 01 03
dumpv_recv:      Integer:       3 (0x03)
dumph_recv:   msgGlobalData
dumph_recv:     msgID
dumpx_recv:      02 04 33 8D 94 5C
dumpv_recv:        Integer:     864916572 (0x338D945C)
dumph_recv:     msgMaxSize
dumpx_recv:      02 03 00 FF E3
dumpv_recv:        Integer:     65507 (0xFFE3)
dumph_recv:     msgFlags
dumpx_recv:      04 01 00
dumpv_recv:        String:      .
dumph_recv:     msgSecurityModel
dumpx_recv:      02 01 03
dumpv_recv:        Integer:     3 (0x03)
dumph_recv:   SM msgSecurityParameters
usm: USM processing begun...
dumph_recv:     msgAuthoritativeEngineID
dumpx_recv:      04 0D 80 00 1F 88 80 5E B8 38 0F BC 5F E0 4C
dumpv_recv:        String:      .....^?8.?_?L
dumph_recv:     msgAuthoritativeEngineBoots
dumpx_recv:      02 01 01
dumpv_recv:        Integer:     1 (0x01)
dumph_recv:     msgAuthoritativeEngineTime
dumpx_recv:      02 02 00 88
dumpv_recv:        Integer:     136 (0x88)
dumph_recv:     msgUserName
dumpx_recv:      04 05 75 6E 73 65 63
dumpv_recv:        String:      unsec
dumph_recv:     msgAuthenticationParameters
dumpx_recv:      04 00
dumpv_recv:        String:      
dumph_recv:     msgPrivacyParameters
dumpx_recv:      04 00
dumpv_recv:        String:      
usm: match on user unsec
usm: no match on engineID (80 00 1F 88 80 5E B8 38 0F BC 5F E0 4C )
usm: Unknown User(unsec)
dumph_recv:     ScopedPDU
dumph_recv:       contextEngineID
dumpx_recv:        04 0D 80 00 1F 88 80 5E B8 38 0F BC 5F E0 4C
dumpv_recv:          String:    .....^?8.?_?L
dumph_recv:       contextName
dumpx_recv:        04 00
dumpv_recv:          String:    
dumph_recv:       TRAP2
dumpv_recv:     Command TRAP2
dumph_recv:         request_id
dumpx_recv:          02 04 69 7F 51 1F
dumpv_recv:            Integer: 1769951519 (0x697F511F)
dumph_recv:         error status
dumpx_recv:          02 01 00
dumpv_recv:            Integer: 0 (0x00)
dumph_recv:         error index
dumpx_recv:          02 01 00
dumpv_recv:            Integer: 0 (0x00)
dumph_recv:         VarBindList
dumph_recv:           VarBind
dumph_recv:             Name
dumpx_recv:              06 08 2B 06 01 02 01 01 03 00
dumpv_recv:                ObjID: SNMPv2-MIB::sysUpTime.0
dumph_recv:             Value
dumpx_recv:              43 02 35 67
dumpv_recv:                UInteger:    13671 (0x3567)
dumph_recv:           VarBind
dumph_recv:             Name
dumpx_recv:              06 0A 2B 06 01 06 03 01 01 04 01 00
dumpv_recv:                ObjID: SNMPv2-MIB::snmpTrapOID.0
dumph_recv:             Value
dumpx_recv:              06 0A 2B 06 01 04 01 BF 08 04 00 02
dumpv_recv:                ObjID: SNMPv2-SMI::enterprises.8072.4.0.2
dumph_recv:           VarBind
dumph_recv:             Name
dumpx_recv:              06 0A 2B 06 01 06 03 01 01 04 03 00
dumpv_recv:                ObjID: SNMPv2-MIB::snmpTrapEnterprise.0
dumph_recv:             Value
dumpx_recv:              06 08 2B 06 01 04 01 BF 08 04
dumpv_recv:                ObjID: SNMPv2-SMI::enterprises.8072.4
#######################

That is all, no log, no entry at notification log mib?

//regards,

Claus

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to