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 shell, I see that the command:
echo $(getPromptStatus)
will tell me weather the device is active or standby because this is set in the environment.
The problem is, when I try to echo this value within a a shell script, it doesn't have a value. I also tried echoing other environmental variables that are set in the shell but they don't work from a shell script.
Can anyone point me in the right direction with this?
thanks
Jack
- hoolio
Cirrostratus
Hi Jack, - jack_39736
Nimbostratus
that worked nicely...thanks alot 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