Forum Discussion
Run multiple TMSH commands remotley
Hello,
F5 user = name- admin1 ; rights- admin rights ; shell- TMSH only
Id like to run the follow in one remote script without having to enter password 2 times and without using SSH keys. Basically, i want to run 2 commands using 1 "ssh line"
ssh admin1@192.168.0.3 modify ltm virtual rule { rule1 }
ssh admin1@192.168.0.3 delete sys connection cs-server-addr 10.3.3.111
Can the above be combined in some way to get it like the below:
ssh admin1@192.168.0.3 modify ltm virtual rule { rule1 } + delete sys connection cs-server-addr 10.3.3.111
You can write something like this. It's basic Unix separator
.;
ssh admin1@192.168.0.3
; tmsh modify ltm virtual rule { rule1 }; tmsh delete sys connection cs-server-addr 10.3.3.111; echo FINISHEDrun /util bash
--> Just for Information.echo FINISHED
cheers...
- Samir_Jha_52506Noctilucent
You can write something like this. It's basic Unix separator
.;
ssh admin1@192.168.0.3
; tmsh modify ltm virtual rule { rule1 }; tmsh delete sys connection cs-server-addr 10.3.3.111; echo FINISHEDrun /util bash
--> Just for Information.echo FINISHED
cheers...
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