Palo Alto CLI Cheat Sheet

paloalto cli command

Common operational commands for day-to-day checks and troubleshooting.

For topic-specific commands see: PAN CLI - GP Commands, PAN CLI - Validate Interfaces, PAN CLI - Pager (Output Control)


System Info & Health

CommandDescription
show system infoPAN-OS version, uptime, serial, model, hostname
show system resourcesCPU / memory utilisation (top-style)
show system disk-spaceDisk usage per partition
show system software statusRunning software packages
show system environmentalsFan, thermal, power sensor readings
show jobs allCommit / download / install job history
show clockCurrent device time and timezone
debug management-server show ntpNTP sync status

Sessions

CommandDescription
show system statistics sessionSession utilisation summary (active, max, throughput)
show session allList all active sessions
show session all filter source 10.1.1.1Sessions from a specific source IP
show session all filter destination 10.1.1.1Sessions to a specific destination IP
show session all filter application web-browsingSessions for a specific App-ID
show session all filter destination-port 443Sessions by destination port
show session id <id>Full detail for a single session
show session infoSession settings (timeout defaults, TCP parameters)
show running resource-monitorDataplane resource / session-rate stats

High Availability

CommandDescription
show high-availability allFull HA state (local + peer)
show high-availability stateQuick local/peer active-passive status
show high-availability link-monitoringHA link monitoring group status
show high-availability path-monitoringHA path monitoring status
show high-availability state-synchronizationConfig sync status between peers
request high-availability sync-to-remote running-configPush running config to peer

Logs (CLI)

CommandDescription
show log traffic direction equal backwardRecent traffic log entries
show log system direction equal backwardRecent system events
show log config direction equal backwardRecent config changes
show log threat direction equal backwardRecent threat log entries
show log url direction equal backwardRecent URL filtering entries
show log alarmActive alarms
less mp-log ms.logManagement-plane service log

Append | match "<pattern>" to filter any log output.


Security Policy & Testing

CommandDescription
show running security-policyActive security rules (post-commit)
test security-policy-match from Trust to Untrust source 10.1.1.1 destination 8.8.8.8 application dns protocol 17 destination-port 53Simulate policy lookup
show rule-hit-count vsys vsys1 securityHit counts per rule (find unused rules)

NAT

CommandDescription
show running nat-policyActive NAT rules
test nat-policy-match from Trust to Untrust source 10.1.1.1 destination 8.8.8.8 protocol 6 destination-port 443Simulate NAT lookup
show session all filter nat equal yesAll NATed sessions

Routing (Quick Checks)

CommandDescription
show routing routeFull routing table
show routing route destination 10.1.1.0/24Lookup a specific route
show routing summaryProtocol / route-count summary
show routing protocol bgp summaryBGP peer states
show routing protocol ospf neighborOSPF adjacencies

For protocol details see: OSPF - Reference, BGP - Reference, PAN - BGP Configuration


Interfaces (Quick Checks)

CommandDescription
show interface allStatus of all interfaces
show interface ethernet1/1Single interface detail
show interface managementManagement interface info
show counter globalGlobal packet counters (drops, errors)
show counter global filter severity dropOnly drop counters

Licenses & Content Updates

CommandDescription
request license infoInstalled licenses and expiry dates
show system setting ssl-decrypt certificateSSL decrypt CA cert info
request content upgrade checkCheck for new content (App-ID / Threat)
show content app-version allInstalled App-ID versions
request anti-virus upgrade checkCheck for new AV signatures

Config Management

CommandDescription
show config runningFull running configuration
show config candidateUncommitted candidate config
show config diffDiff between candidate and running
configureEnter configuration mode
commitCommit candidate config
commit forceCommit even with warnings
load config last-savedRevert candidate to last saved
save config to <filename>Export named config snapshot
scp export configuration from running-config.xml to user@host:pathSCP config off-box

Packet Capture

# Stage 1 - define filters
debug dataplane packet-diag set filter match source 10.1.1.1 destination 10.2.2.2

# Stage 2 - set capture stages
debug dataplane packet-diag set capture stage receive file rx.pcap
debug dataplane packet-diag set capture stage transmit file tx.pcap
debug dataplane packet-diag set capture stage drop file drop.pcap
debug dataplane packet-diag set capture stage firewall file fw.pcap

# Stage 3 - enable
debug dataplane packet-diag set filter on
debug dataplane packet-diag set capture on

# Stage 4 - stop and collect
debug dataplane packet-diag set capture off
debug dataplane packet-diag set filter off
debug dataplane packet-diag aggregate-logs

# Stage 5 - export
scp export filter-pcap from rx.pcap to user@host:path

Management Access

CommandDescription
show adminsCurrently logged-in admin sessions
show admins allAll admin accounts
set cli timeout <minutes>Set idle timeout for current session
debug management-server showMGT-plane service status

Useful Shortcuts

  • find command keyword <word> - Search CLI tree for commands containing a keyword
  • request restart system - Reboot the firewall
  • request shutdown system - Graceful shutdown
  • set cli pager off - Disable pagination (see PAN CLI - Pager (Output Control))
  • less dp-log pan_task - Dataplane task log (crash / restart info)