The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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/