Forum Discussion
jack_39736
Nimbostratus
Oct 29, 2009shell script to determine Active node in cluster
I am trying to write a shell script for the F5 that will run in CRON to check to see if the device is active in the cluster before doing a "bp config sync".
When I run "set" from the sh...
hoolio
Cirrostratus
Oct 30, 2009Hi Jack,
Can you try ps1 instead?
cat status.bash
!/bin/bash
echo "ps1: `ps1`";
echo "\$((getPromptStatus)): $((getPromptStatus))";
bash status.bash
ps1: Active
$((getPromptStatus)): 0
Aaron
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