Forum Discussion
DataGroupFile::create does not work
Hi,
I'm trying to create a datagroupfile using iControl with perl. Unfortunately the command ends with an error, which does not give any hint of the reason.
Version: LTM 11.3.0 3093.0
I uploaded a file called btig.data
-rw-r--r-- 1 root apache 18 Jun 28 09:56 /config/btig.data
The file contains:
host 10.10.10.12,
The perl-script (runs on the ltm with user root, therefore $sUID and $sPWD can be empty )
my $sUID = "";
my $sPWD = "";
my $DataGroupFile = SOAP::Lite
-> uri('urn:iControl:LocalLB/DataGroupFile')
-> proxy("https://$sUID:$sPWD\@127.0.0.1:443/iControl/iControlPortal.cgi");
eval { $$DataGroupFile->transport->http_request->header
(
'Authorization' =>
'Basic ' . MIME::Base64::encode("$sUID:$sPWD", '')
); };
my $soapResponse = $DataGroupFile->create (
SOAP::Data->name(files => ["blub"]),
SOAP::Data->name(paths => ["btig.data"]),
SOAP::Data->name(types => ["DATA_GROUP_ADDRESS"])
);
($retval,$retmsg) = checkResponse($soapResponse);
Result:
Exception caught in LocalLB::urn:iControl:LocalLB/DataGroupFile::create()
Exception: Common::OperationFailed
primary_error_code : 16908342 (0x01020036)
secondary_error_code : 0
error_string : 01020036:3: The requested unknown (root) was not found.
The ltm-log gives (iControl.loglevel trace):
Jun 28 09:57:02 q100stu-lb10 debug iControlPortal.cgi[31646]: icontrol_portal:blubbtig.dataDATA_GROUP_ADDRESSuery_rule>tps_443/Common/soap/Common/sip/Common/dns/Common/smb/Common/btig/Common/none/Common/icmp/Common/gateway_icmp/Common/tcp_echo/Common/tcp/Common/tcp_half_open/Common/http/Common/external/Common/udp/Common/ftp/Common/nntp/Common/pop3/Common/smtp/Common/imap/Common/radius/Common/radius_accounting/Common/diameter/Common/ldap/Common/mssql/Common/oracle/Common/mysql/Common/postgresql/Common/scripted/Common/wap/Common/wmi/Common/https_head_f5/Common/http_head_f5/Common/inband/Common/virtual_location/Common/firepass/Common/sasp
Jun 28 09:57:02 q100stu-lb10 debug iControlPortal.cgi[31646]: Portal: User: root, Folder: /Common
Jun 28 09:57:02 q100stu-lb10 debug iControlPortal.cgi[31646]: LocalLB:+++++++++++++++new+++++++++++++++++++
Jun 28 09:57:02 q100stu-lb10 debug iControlPortal.cgi[31646]: LocalLB:DataGroupFile::create called by user "root"
Jun 28 09:57:02 q100stu-lb10 debug iControlPortal.cgi[31646]: LocalLB: [0] Name: blub
Jun 28 09:57:02 q100stu-lb10 debug iControlPortal.cgi[31646]: LocalLB: Local Path: /config/btig.data
Jun 28 09:57:02 q100stu-lb10 debug iControlPortal.cgi[31646]: LocalLB: Source Path: /config/btig.data
Jun 28 09:57:02 q100stu-lb10 debug iControlPortal.cgi[31646]: LocalLB: Checksum: SHA1:18:3de09cbc3cb8e87be49ff1051d86f5096e1813e8
Jun 28 09:57:02 q100stu-lb10 debug iControlPortal.cgi[31646]: LocalLB: Data Group Type: 1
Jun 28 09:57:02 q100stu-lb10 debug iControlPortal.cgi[31646]: LocalLB:+++++++++++++++new+++++++++++++++++++
Can anyone give me a hint, what's wrong.
Thanks,
Bernd
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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