From: Christopher F. <cf...@li...> - 2005-01-20 15:52:25
|
I'm getting the following from snmptrapd: flaky.opsup.com 127.0.0.1 iso.3.6.1.2.1.1.3.0 0:0:00:42.08 iso.3.6.1.6.3.1.1.4.1.0 iso.3.6.1.4.1.14264.1.1.0.3 iso.3.6.1.4.1.14264.1.1.7.1.1 7 iso.3.6.1.4.1.14264.1.1.7.1.1 7 My trap includes one variable as 'iso.3.6.1.4.1.14264.1.1.7.1.1' with the value of '7'. What I do not understand is why snmptrapd is displaying it twice. Is there a reason? In my parser I expect all lines after the trap oid to be variables and values. |
From: Wes H. <har...@us...> - 2005-01-25 05:08:59
|
>>>>> On 20 Jan 2005 10:52:18 -0500, Christopher Fowler <cf...@li...> said: Christopher> I'm getting the following from snmptrapd: Christopher> flaky.opsup.com Christopher> 127.0.0.1 Christopher> iso.3.6.1.2.1.1.3.0 0:0:00:42.08 Christopher> iso.3.6.1.6.3.1.1.4.1.0 iso.3.6.1.4.1.14264.1.1.0.3 Christopher> iso.3.6.1.4.1.14264.1.1.7.1.1 7 Christopher> iso.3.6.1.4.1.14264.1.1.7.1.1 7 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. It should only display it once unless you're adding it twice. Run snmptrapd with -Ddump to have it show you all the OIDs in the packet broken out so you can see if it's duplicated or not. -- Wes Hardaker Sparta |
From: Christopher F. <cf...@li...> - 2005-01-25 14:02:03
|
Thnaks Wes, Here is what is in syslog that is placed there from snmptrapd: Jan 25 08:47:30 flaky snmptrapd[509]: flaky.opsup.com [127.0.0.1]: Trap SNMPv2-SMI::mib-2.1.3.0 = Timeticks: (41817920) 4 days, 20:09:39.20, 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 On Tue, 2005-01-25 at 00:08, Wes Hardaker wrote: > >>>>> On 20 Jan 2005 10:52:18 -0500, Christopher Fowler <cf...@li...> said: > > Christopher> I'm getting the following from snmptrapd: > Christopher> flaky.opsup.com > Christopher> 127.0.0.1 > Christopher> iso.3.6.1.2.1.1.3.0 0:0:00:42.08 > Christopher> iso.3.6.1.6.3.1.1.4.1.0 iso.3.6.1.4.1.14264.1.1.0.3 > Christopher> iso.3.6.1.4.1.14264.1.1.7.1.1 7 > Christopher> iso.3.6.1.4.1.14264.1.1.7.1.1 7 > > 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. > > It should only display it once unless you're adding it twice. Run > snmptrapd with -Ddump to have it show you all the OIDs in the packet > broken out so you can see if it's duplicated or not. |
From: Wes H. <har...@us...> - 2005-01-26 06:13:03
|
>>>>> On 25 Jan 2005 09:01:53 -0500, Christopher Fowler <cf...@li...> 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. -- Wes Hardaker Sparta |
From: Christopher F. <cf...@li...> - 2005-01-26 13:00:26
|
On Wed, 2005-01-26 at 01:12, Wes Hardaker wrote: > >>>>> On 25 Jan 2005 09:01:53 -0500, Christopher Fowler <cf...@li...> 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 |