Enable/Disable pool member
Problem this snippet solves: This Perl script will enable or disable all instances of a node address and port across all pools. Code : #!/usr/bin/perl
#--------------------------------------------...
Published Mar 07, 2015
Version 1.0CodeCentral_194
Cirrus
Joined May 05, 2019
CodeCentral_194
Cirrus
Joined May 05, 2019
badri123_123_28
Sep 21, 2016Nimbostratus
use SOAP::Lite; use UNIVERSAL 'isa';
$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;
my $sHost = "xxxxxxx";
my $sUID = admin; EM User (administrator role) my $sPWD = "yyyyyy"; EM Password my $sPoolMember = $ARGV[0]; BIG-IP Pool Member my $sState = $ARGV[1]; BIG-IP Pool Member State: enable/disablemy $proxy_uri = sprintf(" $sHost); my $soap = SOAP::Lite->proxy($proxy_uri);
sub SOAP::Transport::HTTP::Client::get_basic_credentials { return $sUID => $sPWD; }
sub checkResponse() { my ($soapResponse) = (@_); if ( $soapResponse->fault ) { print $soapResponse->faultcode, " ", $soapResponse->faultstring, "\n"; exit(); } }
sub getPoolList() {
$soapResponse = $soap->uri("urn:iControl:LocalLB/Pool")->get_list();
&checkResponse($soapResponse);
my @get_list = @{$soapResponse->result};
return @get_list;
}
@value = getPoolList();
foreach $a (@value){ print "value of a: $a\n"; }
I got the list from only /common partition Is there any way to get all the list from all partition.