Parse::Arcconf - Parse the output of arcconf utility.
Version 0.01
Parse::Arcconf parses the output of arcconf utility to allow programmatic access to the RAID configuration information provided by the arcconf utility on Adaptec RAID cards.
arcconf
use Parse::Arcconf; my $arcconf = Parse::Arcconf->new();
Run the arcconf tool directly to query the hardware (requires root):
my $controllers = $arcconf->parse_config();
Parse a text file created already by running arcconf tool:
my $controllers = $arcconf->parse_config_file("foo.txt");
Read from a file descriptor already opened by the program:
my $controllers = $arcconf->parse_config_fh(\*STDIN);
Return an instance of the Parse::Arcconf class that can be used to parse input in one of several ways.
Attempt to run the arcconf utility, and parse the output. This command actually uses parse_config_fh() after opening a pipe to the relevant command.
The command that is actually run is approximately:
arcconf GETCONFIG 1
This command requires root access, and Parse::Arcconf makes no attempt to use sudo or any other method to gain root access. It is recommended to call your script which uses this module as root.
The parse_config_fh() and parse_config_file() will expect output equivalent to that from the above command.
Open and parse a file containing the output from arcconf.
Read from the file handle and parse it, returning a hash-of-hashes.
Mathieu Alorent, <kumy at cpan.org>
<kumy at cpan.org>
Please report any bugs or feature requests to bug-parse-arcconf at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Parse-Arcconf. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-parse-arcconf at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Parse::Arcconf
You can also look for information at:
Source code
https://github.com/kumy/Parse-Arcconf
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Parse-Arcconf
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Parse-Arcconf
CPAN Ratings
http://cpanratings.perl.org/d/Parse-Arcconf
Search CPAN
http://search.cpan.org/dist/Parse-Arcconf/
Copyright 2012 Mathieu Alorent.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
This program is based on Parse::HP::ACU a work of Jeremy Cole.
To install Parse::Arcconf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::Arcconf
CPAN shell
perl -MCPAN -e shell install Parse::Arcconf
For more information on module installation, please visit the detailed CPAN module installation guide.