On Wed, 2005-01-26 at 01:12, Wes Hardaker wrote: > >>>>> On 25 Jan 2005 09:01:53 -0500, Christopher Fowler <[EMAIL PROTECTED]> > >>>>> said: > > Christopher> My trap includes one variable as > Christopher> 'iso.3.6.1.4.1.14264.1.1.7.1.1' with the value of '7'. > Christopher> What I do not understand is why snmptrapd is displaying > Christopher> it twice. Is there a reason? In my parser I expect all > Christopher> lines after the trap oid to be variables and values. > ... > Wes> It should only display it once unless you're adding it twice. Run > Wes> snmptrapd with -Ddump to have it show you all the OIDs in the packet > Wes> broken out so you can see if it's duplicated or not. > ... > Christopher> Here is what is in syslog that is placed there from snmptrapd: > Christopher> Jan 25 08:47:30 flaky snmptrapd[509]: flaky.opsup.com > [127.0.0.1]: Trap > Christopher> SNMPv2-SMI::mib-2.1.3.0 = Timeticks: (41817920) 4 days, > 20:09:39.20, > Christopher> > SNMPv2-SMI::snmpModules.1.1.4.1.0=OID:SNMPv2-SMI::enterprises.14264.1.1.0.3, > SNMPv2-SMI::enterprises.14264.1.1.7.1.1 = INTEGER: 5 > > > Um... But the oid you're complaining about is in there only once in > the syslog output.
Its my fault. It was a simple EOF while reading STDIN and I did not catch it until another loop iteration. Thanks anyway. Chris ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
