Skip to content

Instantly share code, notes, and snippets.

View sivert-io's full-sized avatar
🪐
Be the change

Sivert sivert-io

🪐
Be the change
View GitHub Profile
@sivert-io
sivert-io / script.py
Last active November 23, 2023 09:46
PAN-OS Upgrade firewalls
import requests
import time
import xml.etree.ElementTree as ET
# Replace these constants with your actual data
API_KEY_PAIR_1 = 'API_KEY_FOR_PAIR_1'
API_KEY_PAIR_2 = 'API_KEY_FOR_PAIR_2'
FW1_ACTIVE_IP = 'FW1_ACTIVE_IP'
FW2_PASSIVE_IP = 'FW2_PASSIVE_IP'
FW3_ACTIVE_IP = 'FW3_ACTIVE_IP'