Skip to content
Guides & References

Palo Alto PAN-OS connection templates

The PAN-OS templates in rconfig/rConfig-templates v2.2.2: scripting mode, the 9.x template, the Vector variant and settings for large configs.

Connection TemplatesUpdated
Platform
Palo Alto Networks
On this page

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-enable sets enable: on with enableCmd: "set cli scripting-mode on", so scripting mode is switched on as part of login. Paging is off in this template.
  • palo-alto-panos-9x-ssh-noenable has no enable step and turns the pager off with set cli pager off.
  • palo-alto-panos-ssh-enable-vector uses the enable step to send set cli pager off and set cli config-output-format set, then its paging command configure enters 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
rConfig-templates / palo-alto /palo-alto-panos-9x-ssh-noenable.ymlView on GitHub
Protocol
SSH, port 22
Enable
off
Paging
set cli pager off
Status
community-tested
rConfig-templates / palo-alto /palo-alto-panos-ssh-enable-vector.ymlView on GitHub
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.


Type to search.