Unix and Linux Discussions Tagged with thank you |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
11,049 |
AIX |
|
|
|
5 |
6,120 |
Shell Programming and Scripting |
|
|
|
0 |
9,370 |
What is on Your Mind? |
|
|
|
7 |
30,554 |
What is on Your Mind? |
|
|
|
2 |
3,534 |
What is on Your Mind? |
|
|
|
1 |
3,685 |
What is on Your Mind? |
|
|
|
1 |
3,737 |
What is on Your Mind? |
|
|
|
6 |
1,686 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
2,066 |
Complex Event Processing RSS News |
|
|
|
16 |
155,317 |
Programming |
|
|
|
5 |
4,310 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
1,900 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
10,413 |
Filesystems, Disks and Memory |
|
|
|
5 |
3,819 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,168 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,348 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
2,847 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,753 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,891 |
Shell Programming and Scripting |
|
|
|
3 |
2,782 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,704 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,046 |
Programming |
|
|
|
2 |
3,009 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,002 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,696 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,245 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,456 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
4,758 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,082 |
Programming |
|
|
|
2 |
3,999 |
Programming |
|
|
|
2 |
2,181 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,861 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
9,500 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,725 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
4,342 |
IP Networking |
|
|
|
1 |
3,754 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
13,638 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,518 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
5,962 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,827 |
UNIX for Dummies Questions & Answers |
Mon::SNMP(3pm) User Contributed Perl Documentation Mon::SNMP(3pm)
NAME
Mon::SNMP - decode SNMP trap
SYNOPSIS
use Mon::SNMP;
$trap = new Mon::SNMP;
$trap->buffer($snmptrap);
%traphash = $trap->decode;
$error = $trap->error;
DESCRIPTION
Mon::SNMP provides methods to decode SNMP trap PDUs. It is based on Graham Barr's Convert::BER module, and its purpose is to provide SNMP
trap handling to "mon".
It is not complete, so don't bother trying to use it unless you are ready to debug and write some code.
METHODS
new creates a new Mon::SNMP object.
buffer ( buffer )
Assigns a raw SNMP trap message to the object.
decode
Decodes a SNMP trap message, and returns a hash of the variable assignments for the SNMP header and trap protocol data unit of the
associated message. The hash consists of the following members:
version => SNMP version(1)
community => community string
ent_OID => enterprise OID of originating agent
agentaddr => IP address of originating agent
generic_trap => /COLDSTART|WARMSTART|LINKDOWN|LINKUP|AUTHFAIL|EGPNEIGHBORLOSS|ENTERPRISESPECIFIC/
specific_trap => specific trap type (integer)
timeticks => timeticks (integer)
varbindlist => { oid1 => value, oid2 => value, ... }
ERRORS
All methods return a hash with no elements upon errors which they detect, and the detail of the error is available from the
EXAMPLES
use Mon::SNMP;
$trap = new Mon::SNMP;
$trap->buffer($snmptrap);
%traphash = $trap->decode;
foreach $oid (keys $traphash{"varbindlist"}) {
$val = $traphash{"varbindlist"}{$oid};
print "oid($oid) = val($val)
";
}
ENVIRONMENT
None.
SEE ALSO
Graham Barr's Convert::BER module.
NOTES
CAVEATS
Mon::SNMP depends upon Convert::BER to do the real work.
perl v5.14.2 2012-04-27 Mon::SNMP(3pm)