- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
03-24-2021 07:47 AM
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?
03-25-2021 08:00 AM
Here's an example PAN-OS XML API call to get all the floating addresses:
https://{{host}}/api?key={{key}}&type=config&action=show&xpath=/config/devices/entry[@name='localhost.localdomain']/deviceconfig/high-availability/group/mode/active-active/virtual-address
If you want a specific interface's floating address, try something like this, where interface-name might be ethernet1/1 for example:
https://{{host}}/api?key={{key}}&type=config&action=show&xpath=/config/devices/entry[@name='localhost.localdomain']/deviceconfig/high-availability/group/mode/active-active/virtual-address/entry[@name='{{interface-name}}']/ip
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>
03-30-2021 07:06 AM
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.
04-02-2021 02:25 AM
Sorry @RobertoLio, I misunderstood the question. I'll take a look at this and see if I can find a solution.
04-02-2021 02:27 AM
Thanks @JimmyHolland !
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!