RackMan - Main backend module
use RackMan; use RackMan::Config; my $config = RackMan::Config->new(-file => "/etc/rack.conf"); my $rackman = RackMan->new({ config => $config });
This module provides a simple interface to access and fetch information about RackObjects from the RackTables database.
Connect to the RackTables database using the parameters from the configuration file.
Alias for device_by_name().
device_by_name()
Try to find and return the RackObject with the given ID.
Try to find and return the RackObject with the given name.
Return a RackMan::SCM object corresponding to the tool selected by the configuration file and command line options.
Process and execute an action as given from the command line.
Arguments are expected to be:
the action name
optional action options, as a plain hash
RackObject name
Class method to print an error and exit.
Class method to print an error, preceded by a newline, and exit.
Class method to set the return status of the program.
Class method to get the return status of the program.
Class method to print a warning.
Sebastien Aperghis-Tramoni (sebastien@aperghis.net)
To install RackMan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RackMan
CPAN shell
perl -MCPAN -e shell install RackMan
For more information on module installation, please visit the detailed CPAN module installation guide.