if (poolId != null) {
poolId = getParameterID();
ServerPoolInfo poolInfo = client.serverPoolInfo(poolId, false);
printPoolStats(poolInfo, printDetails());
} else {
ServerPoolListResponse res = client.serverPoolList(getAccount());
for (ServerPoolInfo poolInfo : res.getPools()) {
if (poolInfo.getState() != null && poolInfo.getState().equalsIgnoreCase("active")) {
printPoolStats(poolInfo, printDetails());
}
}
}