Forum Discussion
lostnytechie_55
Apr 15, 2011Nimbostratus
Node Status change to trigger Script
Hi All, Hope someone can help me with this. I'm currently using GTM Version 10.2.1 and I have a wideIP setup with a pool that has two members. Member 1 is set to Priority 3 and Member 2 is set to Pr...
Joel_Moses
Apr 15, 2011Nimbostratus
Well, in the TMSH script I'm referencing, there's no Cron job -- and it does not do exactly what you're wanting, it's just an example of how to do a "watch loop" in TMSH. There's a delay in the script using a preset interval and "after" which will release the while loop every two seconds.
set interval 2
set delay [expr $interval * 1000]
...
after $delay
I have to admit, I'm just getting my sea legs on TMSH, so as far as starting the script on boot and creating notifications, I'm not sure where to head from here; maybe someone else with more TMSH experience can weigh in. But I do know that it this type of approach has one big advantage: it becomes part of the config file -- which a regular shell script copied up to the unit will not.
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