Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Create external datagroup fails

Hi,

LB version - v12.1.3.4

I cannot import ext datagroup to LB.

File content:

[root@testLB:Active:Not All Devices Synced] config # cat /var/tmp/extDatagroupTest2
"name1":="value1",
"name2":="value2",
"name3":="value3",

Error I get when creating datagroup to LTM:

root@(testLB)(cfg-sync Not All Devices Synced)(Active)(/Common)(tmos)# create ltm data-group external testExtData source-path /var/tmp/extDatagroupTest2 type string
Copying file "/var/tmp/extDatagroupTest2" ...

curl: (3) <url> malformed

Unexpected Error: Failed! exit_code (3).

The file was created on LB itself, so there should not be any issues with win style ending lines.. Do you know what might cause such error? I cannot find much documentation to external datagroups..

Thanks, Zdenek

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

You need to prefix the file name with file: Try the following

tmsh create ltm data-group external ext-test source-path file:/var/tmp/extDatagroupTest2 type string

Useful documentation: https://devcentral.f5.com/articles/v11-irules-data-group-updates

0
Comments on this Answer
Comment made 1 week ago by Zdenda 451

thanks, it helped

0