Forum Discussion
F5 to Run Shell script on remote host in certain event
Hello All
I need to configure F5 to run shell script on Unix machine on certain events, for example if I configured a monitor on F5 for an IP/port, when that IP is down I need F5 to run a script on that machine.
Sincerely,
4 Replies
- Kevin_Davies_40
Nacreous
destination d_prog { program("/bin/script" template("<$PRI>$DATE $HOST $MSG\n");
http://www.balabit.com/downloads/files/archived_documents/syslog-ng-2.0-guides
- Kevin_Davies_40
Nacreous
Given the right logging filter looking for member down messages you could get a program to run on BIGIP using the above destination ~ YMMV
- Samer_Odeh_8110
Nimbostratus
Thank you for the answer, so basically the idea is to generate syslog trap on F5 and use that to trigger a script ?
What about below code:
destination d_prog { program("/bin/script" template("<$PRI>$DATE $HOST $MSG\n");
is it an iRule ?
Thank you
- nitass
Employee
so basically the idea is to generate syslog trap on F5 and use that to trigger a script ?
yes. you can execute script using syslog-ng (Kevin's suggestion), alertd or icall.
this is alertd.
sol14397: Executing a command or custom script based on a syslog message
and this is icall.
iCall - All New Event-Based Automation System by Jason Rahm
is it an iRule ?
no, it is syslog-ng configuration.
to run script remotely, you may check if plink is usable.
Plink
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