Forum Discussion
royster_128009
Nimbostratus
Dec 03, 2004Previous SDKs
Hello.
I have some old code from a previous script which queries a 3DNS unit running v4.2ptf9
[...]
my $soap = SOAP::Lite
-> uri('urn:iContr...
Dec 03, 2004
Ahh, the beauty of perl and it's dynamic runtime really keeps you guessing doesn't it. Here's how that method works (as it has since BIG-IP v4.2 - SDK version 2.1).
enum LoadBalanceResultType {
LB_RES_A = 0,
LB_RES_CNAME = 1
};
enum EnableStatus {
STAT_BLUE = 0,
STAT_GREEN = 1,
STAT_YELLOW = 2,
STAT_RED = 3,
STAT_GRAY = 4,
STAT_PURPLE = 5,
STAT_ORANGE = 6,
STAT_WHITE = 7
};
enum EnableStatus {
ENABLE = 0,
DISABLE = 1,
DISABLE_PARENT = 2
};
struct PoolAttribute {
String name;
short number_virtual_servers;
LoadBalanceResultType type;
EnableStatus status;
StatColor state;
};
PoolAttribute[] get_pool_list(
in String wideip_name
);
In your code you are looking at the state member which is a StatColor enumeration. The status member is a EnableStatus enum.
The status member will tell you whether routing to the pool is enabled or not while the state value will tell you it's current state. The color scheme is tied into the GUI's representation. Green meaning "up"; Red meaning "server not responding"; Blue meaning "Server not able to be reached"; and Yellow meaning "Server Limits Exceeded". I believe the other colors are historic and not currently supported.
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
