Forum Discussion
rob_carr
Cirrocumulus
Jun 20, 2008Trouble obtaining pool members.
Here's my problem:
I'm trying to use iControl to obtain the ip and port information of all members of a specific pool. I'm using Python and the SOAPpy module for my script.
When I connect to the LTM to collect this information, it appears that iControl is returning a list containing an empty list, rather than a list containing a list containing a struct for each pool member.
Below is the code fragment in question, and below that is the output of the fragment.
Script fragment:
db_proxy = SOAPpy.SOAPProxy(url, ICONTROL_POOL_NAMESPACE)
pool_members = db_proxy.get_member(pool_names["http_pool_8633"])
print pool_members
print len(pool_members)
print pool_members[ 0 ]
print len(pool_members[ 0 ])
Script output:
[root@host ~]$ ./GetPoolMembers.py
: [[]]
1
: []
0
Any suggestions?
I've checked the obvious things (I think) like 'are we connecting to the correct LTM', 'is the pool name correct' and 'does the pool contain any members'.
No RepliesBe the first to reply
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