Forum Discussion
nevetS_66718
Nimbostratus
Dec 17, 2007Stumped. Blank Results
I'm trying to do something very simple - just get a list of pools.
The trouble is that I don't get any results. The sample LocalLBPool.pl doesn't return results, and neither do any of my own efforts.
Can anybody give me a clue as to what basic step I might be missing?
- nevetS_66718
Nimbostratus
I'm wondering if my problem is that I do not have permissions sufficient to run these calls. - If you have a read-only account, then you should be able to get results from the get_list() methods. If you turn on SOAP tracing, you can get the raw request/response output which can sometimes find the root cause of issues.
use SOAP::Lite + trace => qw(method debug);
- nevetS_66718
Nimbostratus
I did grab the raw xml and here is what I received:xmlns:E="http://schemas.xmlsoap.org/soap/envelope/" xmlns:A="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.w3.org/2001/XMLSchema" xmlns:iControl="urn:iControl" E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> xmlns:m="urn:iControl:LocalLB/Pool"> s:type="A:Array" A:arrayType="y:string[0]">
SOAP::Transport::new: () SOAP::Serializer::new: () SOAP::Deserializer::new: () SOAP:arser::new: () SOAP::Lite::new: () SOAP::Transport::HTTP::Client::new: () SOAP::Transport::new: () SOAP::Serializer::new: () SOAP::Deserializer::new: () SOAP:arser::new: () SOAP::Lite::new: () SOAP::Transport::HTTP::Client::new: () SOAP::Lite::call: () SOAP::Serializer::envelope: () SOAP::Serializer::envelope: get_list SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x86fe744) SOAP::Transport::HTTP::Client::send_receive: POST https://myf5server:443/iControl/iControlPortal.cgi HTTP/1.1 Accept: text/xml Accept: multipart/* Accept: application/soap Authorization: Basic **REMOVED** Content-Length: 428 Content-Type: text/xml; charset=utf-8 SOAPAction: "urn:iControl:LocalLB/Poolget_list" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x8a18a10) SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK Connection: close Date: Mon, 17 Dec 2007 19:13:59 GMT Server: Apache Content-Type: text/xml; charset="UTF-8" Client-Date: Sun, 16 Dec 2007 14:00:53 GMT Client-Peer: 171.64.11.167:443 Client-Response-Num: 1 Client-SSL-Cert-Issuer: /C=--/ST=WA/L=Seattle/O=MyCompany/OU=1177687786/CN=bigip/emailAddress=root@bigip Client-SSL-Cert-Subject: /C=--/ST=WA/L=Seattle/O=MyCompany/OU=1177687786/CN=bigip/emailAddress=root@bigip Client-SSL-Cipher: DHE-RSA-AES256-SHA Client-SSL-Warning: Peer certificate not verified Client-Transfer-Encoding: chunked Set-Cookie: BIGIPAuthCookie=**REMOVED**; path=/; Secure; SOAPServer: EasySoap++/0.6 xmlns:E="http://schemas.xmlsoap.org/soap/envelope/" xmlns:A="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.w3.org/2001/XMLSchema" xmlns:iControl="urn:iControl" E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> xmlns:m="urn:iControl:LocalLB/Pool"> s:type="A:Array" A:arrayType="y:string[0]"> $VAR1 = ' xmlns:E="http://schemas.xmlsoap.org/soap/envelope/" xmlns:A="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.w3.org/2001/XMLSchema" xmlns:iControl="urn:iControl" E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> xmlns:m="urn:iControl:LocalLB/Pool"> s:type="A:Array" A:arrayType="y:string[0]"> '; SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP::Data::DESTROY: () SOAP:arser::DESTROY: () SOAP::Transport::DESTROY: () SOAP::Transport::HTTP::Client::DESTROY: () SOAP::Serializer::DESTROY: () SOAP::Deserializer::DESTROY: () SOAP::Lite::DESTROY: () SOAP::Transport::HTTP::Client::DESTROY: () SOAP::Lite::DESTROY: () SOAP::Deserializer::DESTROY: () SOAP:arser::DESTROY: () SOAP::Transport::DESTROY: () SOAP::Serializer::DESTROY: () SOAP::Data::DESTROY: ()
- nevetS_66718
Nimbostratus
I sent a message asking about permissions to our network people. The response I received is as follows: - You mentioned the word "partition". If your BIG-IP is configued using admin partitions and your objects are located in another partition than "Common", you will need to add a call in your code to Management :: Partition :: set_active_partition() for your user given user name. The client will default to the "Common" partition unless you explicitly specify that you want access to another partition.
http://devcentral.f5.com/Wiki/default.aspx/iControl/Management__Partition__set_active_partition.html
- Paul_Dubuc_7275
Nimbostratus
How do I set the active partition in Perl through the SOAP::Lite module interface? - Paul_Dubuc_7275
Nimbostratus
Nevermind. I found it here:
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