Forum Discussion
JRahm_128324
May 07, 2015Historic F5 Account
From Greg...
Got it!
Modify the 120 to whatever interval you want to look for changes, in seconds.
sys icall handler periodic F5.AutoSaveConfigScheduledTask {
interval 120
script F5.SaveConfig.OnlyIfModified
}
Here we are checking the BigDB.dat file to see if its been updated since the configuration was last saved. If so, we save the configuration to disk.
sys icall script F5.SaveConfig.OnlyIfModified {
app-service none
definition {
set dbfile_timestamp [exec stat /config/BigDB.dat --format %Z]
set conffile_timestamp [exec stat /config/bigip.conf --format %Z]
if { $dbfile_timestamp > $conffile_timestamp } {
tmsh::save sys config partitions all
}
}
description none
events none
}