Hopefully one of the devos will be chime in, but can you grepthough your code for refs to the struct snmp_pdu. Maybe that will help point to something that's defaulting "version" field to 1.

See  http://www.net-snmp.org/dev/agent/structsnmp__pdu.html

/doug


Rob Rose wrote:
I created a simple SNMPv2 notification in my MIB listed below:
-- 
****************************************************************************************
--        QED Trap defintions
-- 
****************************************************************************************
qedFtpDownloadCompleteTrap NOTIFICATION-TYPE
        OBJECTS {       qedTansferStatus,
                                qedSrcFile,
                                qedDestFile,
                                qedFileServer
                        }
    STATUS  current
    DESCRIPTION
        "Event notifying the user of that FTP download is complete."
    ::= { qedTraps 1 }

The attached file is the mib2c created source using the following command:
   "mib2c mib2c.notify.conf qedTraps"

When I call this function from the Net SNMP Agent I receive the following error 
in my error log:
snmpd: send_trap: Cannot send V1 PDU on V2 session
snmpd: send_trap: Cannot send V1 PDU on V2 session
snmpd: send_trap: Cannot send V1 PDU on V2 session
snmpd: send_trap: Cannot send V1 PDU on V2 session
snmpd: send_trap: Cannot send V1 PDU on V2 session
snmpd: send_trap: Cannot send V1 PDU on V2 session
snmpd: send_trap: Cannot send V1 PDU on V2 session
snmpd: send_trap: Cannot send V1 PDU on V2 session
snmpd: send_trap: Cannot send V1 PDU on V2 session

Any information on how to fix this will greatly help me stay on schedule :~)
Thanks!

Rob Rose
Email: [EMAIL PROTECTED]




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to