Christopher Heschong > Net-Appliance-Logical > Net::Appliance::Logical

Download:
Net-Appliance-Logical-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01   Source  

NAME ^

Net::Appliance::Logical - Base Class for interacting various network appliances

SYNOPSIS ^

  use base 'Net::Appliance::Logical';

DESCRIPTION ^

When managing a variety of network appliances, several common needs arise that this module attempts to automate.

METHODS ^

  my $val = $obj->action( $name );

Given an action, uses the appropriate action method.

snmpget
  my $val = $obj->snmpget( $oid );

This method takes an OID number and returns the value it got from an SNMP query for that oid. Any timeticks are not translated, they are returned as an integer instead. Time::Duration is handy for translating it yourself.

session

Returns a connected Net::Appliance::Session object.

cmd
    $obj->cmd('ping 1.2.3.4');

Executes a command via the connected session. You can pass an array to execute more than one command at a time.

privcmd
    $obj->privcmd('reboot');

Executes a priviledged command via the connected session. You can pass an array to execute more than one command at a time.

trim
  my $trimmed = $obj->trim( $string );

Trims whitespace from the beginning and end of a string

SEE ALSO ^

Net::Appliance::Logical::BlueCoat::SGOS

AUTHOR ^

Christopher Heschong, <chris@wiw.org>.

LICENSE ^

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