Forum Discussion
hooleylist
Jan 03, 2012Cirrostratus
Force reload of external datagroup files?
How can I force a reload of external data group files via tmsh?
On 11.1, I've imported a data group file via the GUI under File Management | Data Group File List | Import. I then edited the file on the file system under /config/filestore/files_d/Common_d/data_group_d/:Common:name_value_external_dg_1. But when I reload the config using 'tmsh load sys config' the data group contents are not updated:
cat \:Common\:name_value_external_dg_1
"name1" := "value1",
"name2" := "value2",
"name3" := "value3",
"name4" := "value4",
tmsh load sys config
Loading system configuration...
/defaults/app_template_base.conf
/defaults/config_base.conf
/config/low_profile_base.conf
/defaults/wam_base.conf
/usr/share/monitors/base_monitors.conf
/config/daemon.conf
/config/profile_base.conf
/defaults/fullarmor_gpo_base.conf
Loading configuration...
/config/bigip_base.conf
/config/bigip_user.conf
/config/bigip.conf
tmsh list ltm data-group external name_value* all-properties
ltm data-group external name_value_external_dg {
app-service none
description none
external-file-name name_value_external_dg
partition Common
records {
name1 {
data value1
}
name2 {
data value2
}
name3 {
data value3
}
}
type string
}
I checked the tmsh help for external data groups, but don't see anything relevant.
Do I need to recreate the data group from scratch using the updated file?
Also, if I wanted to create the data group exclusively from the CLI and/or just tmsh, how could I import the external data group file?
Thanks, Aaron
- hooleylistCirrostratusHere are the steps for future reference:Create a new external data group from the CLI non-interactively
od -c /var/tmp/dos.file 0000000 " n a m e 1 " : = " v a l u 0000020 e 1 " , \r \n " n a m e 2 " : = 0000040 " v a l u e 2 " , \r \n " n a m 0000060 e 3 " : = " v a l u e 3 " ,
tr -d '\r' < /var/tmp/dos.file > /var/tmp/string_name_value_external_dg.txt
od -c /var/tmp/string_name_value_external_dg.txt 0000000 " n a m e 1 " : = " v a l u 0000020 e 1 " , \n " n a m e 2 " : = 0000040 " v a l u e 2 " , \n " n a m e 3 0000060 " : = " v a l u e 3 " ,
cat /var/tmp/string_name_value_external_dg.txt "name1" := "value1", "name2" := "value2", "name3" := "value3",
tmsh create /sys file data-group string_name_value_external_dg_file separator ":=" source-path file:/var/tmp/string_name_value_external_dg.txt type string
tmsh create /ltm data-group external string_name_value_external_dg external-file-name string_name_value_external_dg_file
tmsh save /sys config
cat /var/tmp/string_name_value_external_v2_dg.txt "name1" := "valueA", "name2" := "valueB", "name3" := "valueC",
tmsh modify /sys file data-group string_name_value_external_dg_file source-path file:/var/tmp/string_name_value_external_v2_dg.txt
tmsh save /sys config
- Moe_JartinCirrusShouldn't this accomplish what you are trying to do?
- hooleylistCirrostratusHi Joe,
- Nicola_DTNimbostratus
In the past i used to cron something like:
tmsh modify /ltm data-group external ext-addresses source-path file:/shared/addresses tmsh save /sys config
Hope it helps, Nicola
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