BigIP::ParseConfigF5/BigIP configuration parser | |
Download |
BigIP::ParseConfig Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Scott Schneider
- Publisher web site:
- http://search.cpan.org/~sschneid/
BigIP::ParseConfig Tags
BigIP::ParseConfig Description
F5/BigIP configuration parser BigIP::ParseConfig is a Perl module that provides a Perl interface to reading, writing, and manipulating configuration files used on F5 (BigIP) LTM network devices.This module is currently a work-in-progress. Please e-mail with problems, bug fixes, comments and complaints.SYNOPSIS use BigIP::ParseConfig; # Module initialization my $bip = new BigIP::ParseConfig( '/config/bigip.conf' ); # Iterate over pools foreach my $pool ( $bip->pools() ) { # Iterate over pool members foreach my $member ( $bip->members( $pool ) ) { # Change port from 80 to 443 if ( $member /^(\d+\.\d+\.\d+\.\d+):80/ ) { push @members, "$1:443"; my $change = 1; } } # Commit the change above (80->443) if ( $change ) { $bip->modify( type => 'pool', key => $pool, members => ); } } # Write out a new config file $bip->write( '/config/bigip.conf.new' ); Requirements: · Perl
BigIP::ParseConfig Related Software