Forum Discussion
How to Apply Irule Through CLI: Idea is to Share the tmsh script to create a Batch script which Windows Team can work edit accordingly
Hi Kevin,
cd D:\ABCLTM\Lenweb10\Enable
plink.exe -ssh bmcnetop@10.28.32.46 -pw N3t0p$01 -m Lenweb10_Enable.txt
where Lenweb10_Enable.txt contains for example the below:
- For enable :
tmsh modify ltm pool all members modify {10.25.128.10:11080 {state up session enabled}}
- For Disable:
tmsh modify ltm pool all members modify {10.25.128.10:11080 {state up session disabled}} tmsh modify ltm pool all members modify {10.25.128.10:12080 {state up session disabled}} tmsh modify ltm pool all members modify {10.25.128.10:13080 {state up session disabled}} tmsh modify ltm pool all members modify {10.25.128.10:14080 {state up session disabled}}
Similarly, we thought of using the suggested command into the below script for calling the Maintenance page:
tmsh modify virtual ABC.COM-HTTP rules { Maintenance-Irule }
where ABC.COM-HTTP = Virtual-Server name Maintenance-Irule = name of the Maintenance-Irule
But while application team run the command:
tmsh modify virtual ABC.COM-HTTP rules { Maintenance-Irule } , they got an error specifying virtual keyword is unrecognized.
Thanks and Regards Parveez
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