Displays real-time statistics / average BW calculation for the HA synchronization link of Palo Alto firewalls. Uses "show high-availability state-synchronization" and "show session info" commands outputs (through API calls) at regular intervals and computes the increases to calculate BW / increase of the different synchronization messages types.
$ git clone https://github.com/AnthoBalitrand/palo-ha-link-analyzer
$ python3 -m venv ./venv
$ source venv/bin/activate
$ pip3 install --trusted-host pypi.org --trusted-host files.pythonhosted.org -r requirements.txt
Just start the script, you'll be prompted for API connection information and refresh interval
$ python3 src/palo_ha_link_analyzer.py
Palo Alto appliance IP ? : 192.168.1.100
Username for API connection ?: admin
Password for API connection ?:
Values update interval ?: 3