I currently have basic operator privileges to our F5 systems. I haven’t worked with F5s much in the past and have never written scripts to interact with them before.
I’m basically trying to get a script going that will return whether the F5 is currently active or standby. I tried the obvious non-programmer route first with wget, but no luck. Can someone point me to a doc that will give me the basic overview on how to get a script working that’ll just login and perform what function I want on system status? Thanks
What is your overall goal? If you’re trying to programmatically modify the BIG-IP configuration you can use the iControl API. If you always want to connect to the active unit in an HA pair, you can connect to a floating self IP address.
My goal is to enhance our current deploy script. When we deploy new code to our tomcat/jboss instances our script will invoke some java code to disable a member from the pool, deploy the code and bounce then enable the member again. Rinse and repeat. Our F5 host value is hardcoded in the shell script and I would like to make the script include a check to see if the primary is currently the active F5.
I was hoping there would be a way to just include a wget or something without having to go further and use the API.