Forum Discussion
Merry95_171142
Nimbostratus
Dec 01, 2014run a list of tmsh commands (copy - paste) failed
Hello,
I have created an automatic VBA script to generate a list of pool from a .xls file.
It codes a list of commands tmsh to create the associated pools. The list is written in txt forma...
Merry95_171142
Nimbostratus
Dec 02, 2014Thank you G.Scott Harris
It seems
load sys config file my_file.txt verify and
load sys config file my_file.txt merge
can do what I want. Unfortunately, it doesnt understand the command 'cd /partition'
Thank you shaggy.
I tried your way, but I get this message error:
"yntax Error: invalid property value "state":"up}}
The line is :
create ltm pool E3_Akio_8236 monitor http load-balancing-mode least-connections-member members add { sprjvihs01:8236 sprjvihs02:8236 {state user-up}}
I tried to adapt the line with no success...
What finally works in my case is :
tmsh < script.txt
That's the simplest way and it works so it suits me π
shaggy
Nimbostratus
Dec 02, 2014out of curiosity, when you created the bash script, did you preface each tmsh command with "tmsh "?
also want to note - merge is used to merge text that is formatted as config (not as tmsh commands) into the bigip configuration. instead of "create ltm virtual ... profiles add {..." you would format the config as "ltm virtual .... profiles {..." just as it would appear when running "list ltm virtual ..." commands. other commands like "cd" will not work because they are not config elements that would be merged. instead, you'd have to either merge the config into the proper destination partition ("cd /partition", "load sys config merge file/from-terminal") or you could change directories to "/Common/" or "/" and ensure that you reference every f5 object in your config with the full object-name (/partition/object_vs)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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