Forum Discussion

Mike_61707's avatar
Icon for Nimbostratus rankNimbostratus
Mar 18, 2012

Using tmsh to manage data-groups (import from file to internal data-group)

I want to create an internal data-group using tmsh, but I would like to load the key values from a text file.



After running the "tmsh create ltm data-group internal my_dg" command is there a way to load the data-group with data from a file? I have a file with a bunch of entries like the following that I want to load:




"string1 with space" := "value1 with space",


"string2 with space" := "value2 with space",


"string3 with space" := "value3 with space",





Is there a way to do this?


1 Reply

  • Hi Mike,



    I don't think there is a built in way to move from an external data group (or external file) directly to an internal data group. You could write a short shell script to reformat the file into the internal data group format and then merge that into your config using



    tmsh load /sys config file /path/to/file.txt merge