Jeff Weisberg > Encoding-BER-1.00 > Encoding::BER::SNMP

Download:
Encoding-BER-1.00.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 1.00   Source  

NAME ^

Encoding::BER::SNMP - adds SNMP specific tags to Encoding::BER

SYNOPSIS ^

  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);

DESCRIPTION ^

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

BUGS ^

There are no known bugs in this module.

SEE ALSO ^

  Encoding::BER

AUTHOR ^

Jeff Weisberg - http://www.tcp4me.com/