PAN-OS Go Tools¶
2 Go CLI tools for PAN-OS firewall operations.
Projects¶
Commit Tool¶
Uses the pango SDK to execute and wait for configuration commits on a PAN-OS firewall. Supports partial commits, forced commits, admin-scoped commits, and commit descriptions via CLI flags.
CLI Flags:
| Flag | Default | Description |
|---|---|---|
-hostname |
Firewall IP or hostname | |
-username |
Admin username | |
-password |
Admin password | |
-description |
Commit description | |
-force |
false |
Force commit even without changes |
-partial |
false |
Partial commit for current admin only |
Example:
go run main.go -hostname 192.168.1.1 -username admin -password your-password -description "Add new address objects"
Session Analyzer¶
Queries PAN-OS for all active sessions via the XML API and filters for sessions older than a configurable age threshold. Reports source, destination, application, state, and byte count for long-running sessions.
Example: