I was curious if there was a way to run a command remotely via SSH to the PAN Device to dump configs.
I was thinking of a way to dump the output of "pa2050-1> show config running" to a flat file that I can hopefully do version checking on.
However, when trying the following SSH command, it seems to not work and hangs the connection up:
$ ssh firstname.lastname@example.org 'show config running'
Is there another way to do it?
Let me know if you guys have tried anything similar.
PAN-perl contains a pancli program which allows remote command execution using ssh:
$ pancli -h 172.29.9.121 'show config running'|head
PANCLI(1) User Contributed Perl Documentation PANCLI(1
pancli - command line program for remote execution of commands on
pancli [options] command
-D flag debug flag
-t tag .panrc tagname
-T seconds Expect match pattern timeout
command operational mode command
pancli is used to remotely execute commands on a PAN-OS firewall and
display command output. It uses the PAN::CLI module to perform command
The commands are executed in operational mode; the
PAN::CLI::CLI_operational_mode_exec() method is used to execute the
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!
The Live Community thanks you for your participation!