Hi Dave,
The error is coming only when both trapsink and trap2sink lines are present
in snmpd.conf file.
I have given output of snmpwalk on snmpTargetAddrTable below.
On 4/23/07, Dave Shield <[EMAIL PROTECTED]> wrote:
On 21/04/07, rama p <[EMAIL PROTECTED]> wrote:
> For me also SNMP agent is sending both V1 and V2 traps to the
configured
> SNMP trap destinations . Here only the problem is with the below error
> messages that are reported in the snmpd.log file for each trap.
>
> "snmpd: send_trap: Cannot send V1 PDU on V2 session"
Hmmm....
What happens if you comment out the "trap2sink" line from snmpd.conf.
and restart the agent. Do you get the same error?
No , everything is fine.
What about commenting out "trapsink" and restarting?
Or commenting them both out, and restarting?
No error in this case also.
The error is coming only when both trapsink and trap2sink are present in
the snmpd.conf file.
The other thing to check would be walking the snmpTargetAddrTable
and snmpTargetParamsTable.
What do these look like, compared to the trap*sink settings
in your snmpd.conf?
Output of snmpwalk on snmpTargetAddrTable with snmptrap commented
.1.3.6.1.6.3.12.1.2.1.2.105.110.116.101.114.110.97.108.48 = OID:
.1.3.6.1.6.1.1
.1.3.6.1.6.3.12.1.2.1.3.105.110.116.101.114.110.97.108.48 = Hex-STRING: 0A
00 00 04 00 A2
.1.3.6.1.6.3.12.1.2.1.4.105.110.116.101.114.110.97.108.48 = INTEGER: 0
.1.3.6.1.6.3.12.1.2.1.5.105.110.116.101.114.110.97.108.48 = INTEGER: 0
.1.3.6.1.6.3.12.1.2.1.6.105.110.116.101.114.110.97.108.48 = STRING:
internal0
.1.3.6.1.6.3.12.1.2.1.7.105.110.116.101.114.110.97.108.48 = STRING:
internal0
.1.3.6.1.6.3.12.1.2.1.8.105.110.116.101.114.110.97.108.48 = INTEGER:
readOnly(5)
.1.3.6.1.6.3.12.1.2.1.9.105.110.116.101.114.110.97.108.48 = INTEGER:
active(1)
#snmpwalk ***** snmpTargetParamsTable
registered debug token dump, 1
.1.3.6.1.6.3.12.1.3.1.2.105.110.116.101.114.110.97.108.48 = INTEGER: 1
.1.3.6.1.6.3.12.1.3.1.3.105.110.116.101.114.110.97.108.48 = INTEGER: 2
.1.3.6.1.6.3.12.1.3.1.4.105.110.116.101.114.110.97.108.48 = STRING: public
.1.3.6.1.6.3.12.1.3.1.5.105.110.116.101.114.110.97.108.48 = INTEGER:
noAuthNoPriv(1)
.1.3.6.1.6.3.12.1.3.1.6.105.110.116.101.114.110.97.108.48 = INTEGER:
readOnly(5)
.1.3.6.1.6.3.12.1.3.1.7.105.110.116.101.114.110.97.108.48 = INTEGER:
active(1)
Output of snmpwalk with snmp2trap commented
#snmpwalk ***** snmpTargetParamsTable
registered debug token dump, 1
.1.3.6.1.6.3.12.1.3.1.2.105.110.116.101.114.110.97.108.48 = INTEGER: 0
.1.3.6.1.6.3.12.1.3.1.3.105.110.116.101.114.110.97.108.48 = INTEGER: 1
.1.3.6.1.6.3.12.1.3.1.4.105.110.116.101.114.110.97.108.48 = STRING: public
.1.3.6.1.6.3.12.1.3.1.5.105.110.116.101.114.110.97.108.48 = INTEGER:
noAuthNoPriv(1)
.1.3.6.1.6.3.12.1.3.1.6.105.110.116.101.114.110.97.108.48 = INTEGER:
readOnly(5)
.1.3.6.1.6.3.12.1.3.1.7.105.110.116.101.114.110.97.108.48 = INTEGER:
active(1)
#snmpwalk ***** snmpTargetAddrTable
registered debug token dump, 1
.1.3.6.1.6.3.12.1.2.1.2.105.110.116.101.114.110.97.108.48 = OID:
.1.3.6.1.6.1.1
.1.3.6.1.6.3.12.1.2.1.3.105.110.116.101.114.110.97.108.48 = Hex-STRING: 0A
00 00 05 00 A2
.1.3.6.1.6.3.12.1.2.1.4.105.110.116.101.114.110.97.108.48 = INTEGER: 0
.1.3.6.1.6.3.12.1.2.1.5.105.110.116.101.114.110.97.108.48 = INTEGER: 0
.1.3.6.1.6.3.12.1.2.1.6.105.110.116.101.114.110.97.108.48 = STRING:
internal0
.1.3.6.1.6.3.12.1.2.1.7.105.110.116.101.114.110.97.108.48 = STRING:
internal0
.1.3.6.1.6.3.12.1.2.1.8.105.110.116.101.114.110.97.108.48 = INTEGER:
readOnly(5)
.1.3.6.1.6.3.12.1.2.1.9.105.110.116.101.114.110.97.108.48 = INTEGER:
active(1)
Output of snmpwalk when both trapsink and trap2sink are present snmpd.conffile
#snmpwalk ***** snmpTargetAddrTable
.1.3.6.1.6.3.12.1.2.1.2.105.110.116.101.114.110.97.108.48 = OID:
.1.3.6.1.6.1.1
.1.3.6.1.6.3.12.1.2.1.2.105.110.116.101.114.110.97.108.49 = OID:
.1.3.6.1.6.1.1
.1.3.6.1.6.3.12.1.2.1.3.105.110.116.101.114.110.97.108.48 = Hex-STRING: 0A
00 00 04 00 A2
.1.3.6.1.6.3.12.1.2.1.3.105.110.116.101.114.110.97.108.49 = Hex-STRING: 0A
00 00 05 00 A2
.1.3.6.1.6.3.12.1.2.1.4.105.110.116.101.114.110.97.108.48 = INTEGER: 0
.1.3.6.1.6.3.12.1.2.1.4.105.110.116.101.114.110.97.108.49 = INTEGER: 0
.1.3.6.1.6.3.12.1.2.1.5.105.110.116.101.114.110.97.108.48 = INTEGER: 0
.1.3.6.1.6.3.12.1.2.1.5.105.110.116.101.114.110.97.108.49 = INTEGER: 0
.1.3.6.1.6.3.12.1.2.1.6.105.110.116.101.114.110.97.108.48 = STRING:
internal0
.1.3.6.1.6.3.12.1.2.1.6.105.110.116.101.114.110.97.108.49 = STRING:
internal1
.1.3.6.1.6.3.12.1.2.1.7.105.110.116.101.114.110.97.108.48 = STRING:
internal0
.1.3.6.1.6.3.12.1.2.1.7.105.110.116.101.114.110.97.108.49 = STRING:
internal1
.1.3.6.1.6.3.12.1.2.1.8.105.110.116.101.114.110.97.108.48 = INTEGER:
readOnly(5)
.1.3.6.1.6.3.12.1.2.1.8.105.110.116.101.114.110.97.108.49 = INTEGER:
readOnly(5)
.1.3.6.1.6.3.12.1.2.1.9.105.110.116.101.114.110.97.108.48 = INTEGER:
active(1)
.1.3.6.1.6.3.12.1.2.1.9.105.110.116.101.114.110.97.108.49 = INTEGER:
active(1)
#snmpwalk ***** ssnmpTargetParamsTable
.1.3.6.1.6.3.12.1.3.1.2.105.110.116.101.114.110.97.108.48 = INTEGER: 0
.1.3.6.1.6.3.12.1.3.1.2.105.110.116.101.114.110.97.108.49 = INTEGER: 1
.1.3.6.1.6.3.12.1.3.1.3.105.110.116.101.114.110.97.108.48 = INTEGER: 1
.1.3.6.1.6.3.12.1.3.1.3.105.110.116.101.114.110.97.108.49 = INTEGER: 2
.1.3.6.1.6.3.12.1.3.1.4.105.110.116.101.114.110.97.108.48 = STRING: public
.1.3.6.1.6.3.12.1.3.1.4.105.110.116.101.114.110.97.108.49 = STRING: public
.1.3.6.1.6.3.12.1.3.1.5.105.110.116.101.114.110.97.108.48 = INTEGER:
noAuthNoPriv(1)
.1.3.6.1.6.3.12.1.3.1.5.105.110.116.101.114.110.97.108.49 = INTEGER:
noAuthNoPriv(1)
.1.3.6.1.6.3.12.1.3.1.6.105.110.116.101.114.110.97.108.48 = INTEGER:
readOnly(5)
.1.3.6.1.6.3.12.1.3.1.6.105.110.116.101.114.110.97.108.49 = INTEGER:
readOnly(5)
.1.3.6.1.6.3.12.1.3.1.7.105.110.116.101.114.110.97.108.48 = INTEGER:
active(1)
.1.3.6.1.6.3.12.1.3.1.7.105.110.116.101.114.110.97.108.49 = INTEGER:
active(1)
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users