NAME

Parse::CPinfo - Perl extension to parse cpinfo files

SYNOPSIS

use Parse::CPinfo;
my $parser = Parse::CPinfo->new();
$parser->read('cpinfofile');

# print the fwm version string that was parsed
print $p->{config}{'FireWall-1 Management (fwm) Version Information'};

DESCRIPTION

This module parses a cpinfo file created by Check Point Software.

The following are the object methods:

new

Create a new parser object like this: my $parser = Parse::CPinfo->new();

read

After creating the parser object, ask it to read the cpinfo file for you: $parser->read('/full/path/to/cpinfofile');

getSectionList

Use this method to get a list of valid sections. Returns an array.

getSection

Use this method to get a section of the cpinfo file. Returns a scalar.

getInterfaceList

Use this method to get a list of the active interfaces. Returns an array.

getInterfaceInfo

Use this method to get information about a specific interface. Takes a scalar (interface name) and returns a hash.

SEE ALSO

Check Point Software Technologies, Ltd., at http://www.checkpoint.com/

AUTHOR

Matthew M. Lange, <mmlange@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2007 by Matthew M. Lange

This library is released under the GNU Public License.