Net::Appliance::Logical - Base Class for interacting various network appliances
use base 'Net::Appliance::Logical';
When managing a variety of network appliances, several common needs arise that this module attempts to automate.
my $val = $obj->action( $name );
Given an action, uses the appropriate action method.
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.
Returns a connected Net::Appliance::Session object.
$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.
$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.
my $trimmed = $obj->trim( $string );
Trims whitespace from the beginning and end of a string
Net::Appliance::Logical::BlueCoat::SGOS
Christopher Heschong, <chris@wiw.org>.
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:
=pod directives shouldn't be over one line long! Ignoring all 2 lines of content
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Net::Appliance::Logical, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Appliance::Logical
CPAN shell
perl -MCPAN -e shell install Net::Appliance::Logical
For more information on module installation, please visit the detailed CPAN module installation guide.