SNMPv1 problem
"Changchun Zhao" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I'm running net-snmp-5.2.1 on Solaris. I configured snmpd.conf file like this: ---- begin of snmpd.conf ----------------- rocommunity public rouser test agentSecName test monitor -r 10 -o ifDescr "Generate linkUp" ifOperStatus == 1 monitor -r 10 -o ifDescr "Generate linkDown" ifOperStatus != 1 [snmp] clientaddr 10.1.4.10 trapsess -v 1 -c public 172.16.0.237:162 ----- end of snmpd.conf ---------------- and the snmp.conf file looks like this: ---- begin of snmp.conf ----------------- defversion 1 defcommunity public clientaddr 10.1.4.10 ----- end of snmp.conf ---------------- Now, there are two problems when sending the SNMPv1 traps. 1) on trap receiver (I'm running snmptrapd from net-snmp package), the linkUp trap shows from 1.1.0.10 but not from 10.1.4.10. The address 1.1.0.10 is the first interface's IP address of the snmpd machine. But if I run snmptrap on snmpd machine to send the trap, it shows from 10.1.4.10 on trap receiver. 2) on trap receiver, the linkUp trap shows some SNMPv2 mib when I'm sending SNMPv1 trap. I don't know if that's right. Attached below is one SNMP trap message from the trap receiver: ---------------- 1.1.0.10: Enterprise Specific Trap (.1) Uptime: 0:00:10.05, SNMPv2-SMI::mib-2.88.2.1.1 = STRING: "Generate linkUp", SNMPv2-SMI::mib-2.88.2.1.2 = "", SNMPv2-SMI::mib-2.88.2.1.3 = "", SNMPv2-SMI::mib-2.88.2.1.4 = OID: IF-MIB::ifOperStatus.2, SNMPv2-SMI::mib-2.88.2.1.5 = INTEGER: 1, IF-MIB::ifDescr.2 = STRING: e1000g0 ---------------- So, could anyone help me to figure out if there's anything wrong in my configuration. Thanks in advance, Changchun ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ 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