Forum Discussion
tmsh and bigip.config file
So I noticed something the other day. I have some scripts that a lot of people on the forum helped me write (thank you very much!) which are bash scripts and call tmsh commands to add monitors, pools and virtual hosts. They work great now. So I had a problem the other day and I noticed it once before and thought I was going crazy but now I see what is going on.
If I add something with one of these scripts, new monitor with pool and virtual host for example. When I am done my 2 F5s are out of sync which makes sense. So I go onto the GUI and the objects I just added with the script are in the GUI and it says they are out of sync. Cool so far I am good with that. I sync them and all is well. BUT if I go and look in the bigip.conf file the values I just added are not there. I can do tmsh scripts and list them and everything works fine. Problem is if I do the unthinkable and edit the bigip.conf file and then build it from the command line all those values are gone. So WTF? What puts them in the bigip.config file? I put something in with the scripts at 9 this morning and just kept catting the bigip.conf file trying to grep what I added and nothing. After 3 hours I tried something else and went into the GUI (which mind you I have synced since I made the changes) and made a small change to a monitor and synced it and bam the info was pushed into the bigip.conf file. So can someone tell me what is the secret to this? Is it a matter of time before the system pushes it to that file or do you have to wait until something gets changed on the GUI and then a sync is pushed? At this point I don't use the GUI very often so that is a pain. Not sure it matters but I am running 11.2.0
As always, thanks in advance!
Joe
1 Reply
- giltjr
Nimbostratus
Not sure, but I always through that when you made a change using tmsh command that is changed the config in memory, that is the "running config".
Then when you issue the" tmsh sys save config" or "tmsh sys save" command it copies the "running config" to the conf files.
If you edit the .conf files manually you need to do a "tmsh sys load" config or "tmsh sys load base-config" to copy these files to the "running config."
http://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/tmos_management_guide_10_1/tmos_save_and_load_cmds.html1017850
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