tmsh-tcl newbie help - How to user tmsh-tcl to change the APM Policy on virtual servers
Hi All,
So i'm a tmsh-tcl newbie, but from what i can see i think its what i need but i'm also a open book if someone can suggest a better way of doing it.
So i have 30 virtual servers all using the same APM policy, to make a update i am taking a copy of the live policy, renaming it making my changes and then going through all of my virtual servers to apply the changes. So in the thinking of there must be a better way of doing this i have found tmsh-tcl.
So what i'd like to do is to task the code to
Get a list of all virtual servers
Check if the virtual server has APM Policy A assigned to it.
If it does then change this to Policy B
Can anyone show me any examples of how i can piece this together please? Or if there is a better way of doing this?
Thanks
Pete