SNMPTRAPD-SIMPLE - Simple SNMP Trap Server
snmptrapd-simple [options]
Listens for SNMP traps and logs to console and optional file. Can decode SNMP v1 and v2c traps and v2c InformRequest (will send Response PDU). Output columns are:
Source IP Address Source UDP port SNMP version SNMP community PDU Type (Version 1) (Version 2c) Enterprise OID Request ID Agent IP Address Error Status Trap Type Error Index Specific Trap Timeticks Varbinds (OID: val; [...])
-4 Force IPv4. -6 Force IPv6 (overrides -4). -d <dir> Output file directory. --directory DEFAULT: (or not specified) [Current]. -D Use Net::SNMPTrapd->dump() method. --Dump DEFAULT: (or not specified) [Decode trap]. -H Print hex dump of trap PDU - do not decode. --Hexdump DEFAULT: (or not specified) [Decode trap]. -i # UDP Port to listen on. --interface DEFAULT: (or not specified) 162. -t Print time in human-readable yyyymmddhhmmss format. --time DEFAULT: (or not specified) Unix epoch. -w Log to "snmptrapd.log".
This software is released under the same terms as Perl itself. If you don't know what that means visit http://perl.com/.
Copyright (C) Michael Vincent 2010
http://www.VinsWorld.com
All rights reserved
To install Net::SNMPTrapd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::SNMPTrapd
CPAN shell
perl -MCPAN -e shell install Net::SNMPTrapd
For more information on module installation, please visit the detailed CPAN module installation guide.