Palo Alto PAN-OS connection templates
The palo-alto/ folder holds three SSH templates for PAN-OS firewalls, all Core and Pro. PAN-OS has no enable mode in the Cisco sense; two of the templates use rConfig’s enable step to send PAN-OS CLI settings straight after login instead. This page covers release v2.2.2.
Which template
| Template | Use for |
|---|---|
palo-alto-panos-ssh-enable |
PAN-OS over SSH, with scripting mode on |
palo-alto-panos-9x-ssh-noenable |
PAN-OS 9.x, without configuration mode |
palo-alto-panos-ssh-enable-vector |
PAN-OS from a Vector agent |
All three expect a login as: username prompt.
palo-alto-panos-ssh-enablesetsenable: onwithenableCmd: "set cli scripting-mode on", so scripting mode is switched on as part of login. Paging isoffin this template.palo-alto-panos-9x-ssh-noenablehas no enable step and turns the pager off withset cli pager off.palo-alto-panos-ssh-enable-vectoruses the enable step to sendset cli pager offandset cli config-output-format set, then its paging commandconfigureenters configuration mode.
The standard and 9.x templates carry an options block with AnsiHost: "yes", setWindowSize: [240, 2048] and setTerminalDimensions: [260, 1000], which select the ANSI read path and size the terminal.
The templates
rConfig-templates / palo-alto /palo-alto-panos-ssh-enable.ymlView on GitHub- Protocol
- SSH, port 22
- Enable
- set cli scripting-mode on
- Paging
- off
- Status
- community-tested
- Protocol
- SSH, port 22
- Enable
- off
- Paging
- set cli pager off
- Status
- community-tested
- Protocol
- SSH, port 22
- Enable
- pager off, output format set
- Paging
- configure
- Status
- community-tested
Large configurations
With the ANSI read path, the second value of setTerminalDimensions caps how many lines rConfig keeps. The folder’s README reports raising it from 1000 to as much as 50000 for firewalls with very large configurations. A larger capture can also need a higher PHP memory_limit on the rConfig server; see PHP settings.
If a standard template returns partial configs, the README suggests removing the options block from your copy as a first test.