Forum Discussion
Eugene_Reznik_1
Nimbostratus
Oct 24, 2013Powershell iControl error getting pool member statistics
I am getting the error below when I am trying to get pool member statistics. I am not sure what i am doing wrong, as the error is not very descriptive.
Does anyone have any insight of why this woul...
yycelik_341802
Nimbostratus
Feb 08, 2018You should use partionName before pool and node name. Not to get that error.
static String serverIP = "";
static String user = "";
static String pass = "";
static String partionName = "";
static String poolName = "";
static String nodeName = "";
public static Interfaces interfaces = null;
public static void main(String[] args) {
try {
String[] poolNameArray = new String[1];
poolNameArray [0] = "/"+ partionName + "/"+ poolName;
CommonAddressPort[][] addressPortOutput = new CommonAddressPort[1][1];
CommonAddressPort commonAddressPort = new CommonAddressPort("/"+ partionName + "/"+ nodeName, 80);
addressPortOutput[0][0] = commonAddressPort;
Object o = getConnection().getLocalLBPool().get_member_statistics(poolNameArray, addressPortOutput);
o.equals(null);
} catch (Exception e) {
e.printStackTrace();
}
}
public static Interfaces getConnection() throws Exception {
if (interfaces == null){
interfaces = new Interfaces();
if (!interfaces.initialize(serverIP, 443, user, pass))
throw new Exception("Could not connect!");
}
return interfaces;
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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