Receiving traps in Perl - sometimes values have type prefixes

"Webb, Eric" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
 

I'm running NetSNMP 'snmptrapd' 5.4.2.1, and have configured it to call
a perl trap handler using a "perl do filename.pl" line in
snmptrapd.conf.  System is Slackware Linux 12.2 (2.6.27.7-smp) with the
included Perl 5.10.0.

 

The question I have is why do I see prefixes on the first trap that I
receive and not subsequent traps?  In the first trap, I will see the
following incoming:

OID = SNMPv2-SMI::enterprises.1031.5.1.1.0

Value = STRING: "My Account"

 

But on subsequent traps, the prefixes do not appear:

OID = enterprises.1031.5.1.1.0

Value = "My Account"

 

 

This is easy (tho annoying) to code around, but why does it happen?
Which style is the correct form to expect?

 

 

Eric C. Webb
Sr. Systems Analyst / Unix System Administrator


Cooper Industries IT Solutions & Services
(770) 486-4623   FAX: (770) 486-4677  CNET 61444623

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.