The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Power::Outlet::Common::IP::SNMP - Power::Outlet base class for SNMP power outlet

SYNOPSIS

  use base qw{Power::Outlet::Common::IP::SNMP};

DESCRIPTION

Power::Outlet::Common::IP::SNMP is a package for controlling and querying an SNMP-based network attached power outlet.

USAGE

  use base qw{Power::Outlet::Common::IP::SNMP};

PROPERTIES

community

Sets and returns the SNMP community.

  my $community=$outlet->community("private"); #read/write
  my $community=$outlet->community("public");  #read only features

snmp_version

Returns 1

METHODS

snmp_session

Returns a cached Net::SNMP session object

snmp_get

  my $value = $self->snmp_get($oid);

snmp_multiget

  my $oid_values = $self->snmp_multiget(\@oids); #isa HASH
  my %oid_values = $self->snmp_multiget(\@oids); #isa ()

snmp_set

  $self->snmp_set($oid, $value);        #type INTEGER
  $self->snmp_set($oid, $value, $type); #type from Net::SNMP types

snmp_multiset

  $self->snmp_multiset(\@oids, $value);        #type INTEGER
  $self->snmp_multiset(\@oids, $value, $type); #type from Net::SNMP types

BUGS

Please log on RT and send an email to the author.

SUPPORT

DavisNetworks.com supports all Perl applications including this package.

AUTHOR

  Michael R. Davis
  CPAN ID: MRDVT
  DavisNetworks.com

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO