Forum Discussion
iCall, SSH and run a command.
i have two pool members. 10.50.169.14(active) and 10.50.169.16(passive). I have a health monitor of port 7222 on active member. what i want through iCall is that when this pool member gets down F5 SSH into pool member 10.50.169.16 and run a command to run the application. I know the command but i do not know anything else how to do it. Please help
Thanks
2 Replies
- Amit_Karnik
Nimbostratus
If you have a script on the F5 which can remote ssh non-interactively on to your server and execute whatever you need executed there, then 1 way to do this is via custom alert under /config/user_alert.conf.
You can setup an "exec" script which runs if a log message matches a defined string pattern. You will have to set this string pattern for the exact pool name and member values for which you want to execute the script for.
I would not recommend this approach if you find a better way. Log strings do change from version to version and also this creates a new process on your LTM if the log message matches the string pattern, which could be a potential hazard if the server flaps around.
- ccs10021_200536
Nimbostratus
Did you manage to get this working?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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