Forum Discussion
TJ_Vreugdenhil
Cirrus
Nov 05, 201311.x TMSH script to remove monitors on GTM VIP's
Hi -
We have over 800 GTM VIP Server Objects listed and we need to remove all the monitors associated with them so iQuery can work correctly.
I had a crack at creating a tmsh script and I feel ...
Kevin_Stewart
Employee
Nov 07, 2013I may have found an easier solution with a Bash script:
! /bin/bash
(IFS='
'
Get GTM server names
output=`tmsh list / gtm server |grep "gtm server" | awk -F" " '{ print $3 }'`
Loop through GTM server names and remove monitors
for f in ${output}
do
tmsh modify / gtm server $f virtual-servers modify { all { monitor none } }
done)
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
