omniplex
Dec 22, 2008Nimbostratus
GTM Pools
Is there a trick to disabling a GTM pool used by a wide IP?
I can enable them just fine when they have been manually disabled, but for some reason the iControl interface just ignore...
@gtmEnabled = ('STATE_ENABLED', 'STATE_ENABLED', 'STATE_ENABLED', 'STATE_ENABLED');
@gtmDisabled = ('STATE_DISABLED', 'STATE_DISABLED', 'STATE_DISABLED', 'STATE_DISABLED');
That's assuming that your code will create an array. I usually work through Perl by trail and error and I don't have access to my dev machine right now.
If that doesn't work, this should:
my @gtmPools;
push @gtmPools, "prod1";
push @gtmPools, "prod2";
push @gtmPools, "prod3";
push @gtmPools, "prod4";
my @gtmEnabled;
push @gtmEnabled, "STATE_ENABLED";
push @gtmEnabled, "STATE_ENABLED";
push @gtmEnabled, "STATE_ENABLED";
push @gtmEnabled, "STATE_ENABLED";
my @gtmDisabled;
push @gtmDisabled, "STATE_DISABLED";
push @gtmDisabled, "STATE_DISABLED";
push @gtmDisabled, "STATE_DISABLED";
push @gtmDisabled, "STATE_DISABLED";
Hope this helps...
-Joe