Encoding::BER::SNMP - adds SNMP specific tags to Encoding::BER
use Encoding::BER::SNMP; my $enc = Encoding::BER::SNMP->new(); my $snmp = $enc->encode( [ 1, 'public', { type => 'get_request', value => [ $reqid, 0, 0, [ [ { type => 'oid', value => '1.3.6.1.2.1.2.2.1.10.4' }, undef ] ] ] }; send(UDP, $snmp, 0);
This is a subclass of Encoding::BER, and the following tags are made available:
ip_address counter32 gauge32 timeticks opaque counter64 get_request get_next_request get_response set_request trap get_bulk_request inform_request snmpv2_trap report
There are no known bugs in this module.
Encoding::BER
Jeff Weisberg - http://www.tcp4me.com/
To install Encoding::BER, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Encoding::BER
CPAN shell
perl -MCPAN -e shell install Encoding::BER
For more information on module installation, please visit the detailed CPAN module installation guide.