I would like to automate a failover on a couple of Linux servers that use keepalived and I need to find where is my floating IP using API or scriptable things.
I have read something on my PA700 API page, but I cannot find something describing where is a specific floating IP
Has anyone found a way to found it?
Here's an example PAN-OS XML API call to get all the floating addresses:
If you want a specific interface's floating address, try something like this, where interface-name might be ethernet1/1 for example:
It will look like this:
<response status="success"> <result> <ip> <entry name="192.168.55.50"> <floating> <device-priority> <failover-on-link-down>yes</failover-on-link-down> </device-priority> <bind-to-active-primary>no</bind-to-active-primary> </floating> </entry> </ip> </result> </response>
thanks for sharing the API path for active-active configuration
we did several tests getting the configuration from different PA and different interface, but we can see just the configuration of our interface.
When we shut down one of our Firewalls, searching on the different APIs, I could not find any information about where the floating IP is at that moment.
I was able to track down who owns the individual interface and who is the master, but nothing about where the floating IP is.
Sorry @RobertoLio, I misunderstood the question. I'll take a look at this and see if I can find a solution.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!