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.
3 POD Errors
The following errors were encountered while parsing the POD:
- Around line 68:
=pod directives shouldn't be over one line long! Ignoring all 2 lines of content
- Around line 96:
'=item' outside of any '=over'
- Around line 239:
You forgot a '=back' before '=head1'