colleybrb / palo_streamlit_clear_stale_sessions

Clear Palo Alto Firewall sessions with streamlit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

palo_streamlit_clear_stale_sessions

Need: Palo doesn't have a way to clear sessions through the gui. This program is written in python and uses: streamlit, netmiko and pandas. It connects and pulls sessions displays them in streamlit. You can select the sessions you want to clear and click clear session button to clear them. Then close the SSH session.

image

Operational overview

You could add an input for regex to match the ip's your looking for. Also, change the input to all streamlit. Getpass is still cli.

    1. Install Streamlit
    1. Change credentials and file locations, uncomment #pano.send_command(f"clear session id {item}")
    1. Run script by "run streamlit stale_sessions.py"

Contact

***If you have issues and need help reach out to colleybrb@gmail.com

About

Clear Palo Alto Firewall sessions with streamlit

License:MIT License


Languages

Language:Python 100.0%