Forum Discussion
TMSH with multiline icall script
Hi,
I would like to automatise the adding of icall scripts using TMSH. My questions are: 1. Is TMSH supports multiline? 2. How to import/create an icall script without lauching a pseudo "vim" FYI: I tried to create a blank one and then modify it definition.
3 Replies
- Michael_Jenkins
Cirrostratus
I'm not too familiar with the icall script part, but in my experience, I haven't been able to find a way to do multiline TMSH commands. the closest thing I could do was multiline commands in the bash shell (prefixed by
to invoke the shell), but all that does is combine the multiple lines in bash to a single line in TMSH.tmshFor updating configs, I generally use within tmsh this command:
(to verify, I addload sys config from-terminal merge
after merge). Then I paste in the config and save it. It's not a vi shell, but it does let you paste and execute your config to merge it.verifyHope this helps at least a little bit.
- Emmanuel_L_1791
Nimbostratus
Hi Michael,
Thank you for your feed back. That works using "tmsh load sys config from-terminal merge < multine_input_file" from shell.
- Michael_Jenkins
Cirrostratus
If you could, please mark the answer as solution so other can see it's solved. Thanks
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