Collecting debug logs through Automation.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Collecting debug logs through Automation.

L3 Networker

My organization was tasked with collecting a series of debug logs on one of our firewalls every 20-25 minutes for several days due to an issue which PAN was having trouble diagnosing and/or determining the cause of. These commands took approximately 5 minutes to run to completion, so you can imagine it was not a fun weekend for the team members involved. We attempted several script efforts, but none of us are terribly proficient at scripting (a skillset we are in the process of developing).

 

I am convinced this must be something that can be automated as it isn't a complicated process. I thought I would post here and see if anyone would refute that or if there were suggestions, ideas, or even examples of a similar process that was automated. There are 24 commands in all, some of them requiring interaction to display the end of the log output or q to exit the display.

 

Any thoughts would be appreciated in the event that a similar task is required in the future.

 

Thanks!

1 REPLY 1

L5 Sessionator

Hi @Gareth.Doyle, scripting would be the main option here, as CLI commands which begin with "debug" can't today be performed with PAN-OS APIs (although that's something that may change in future). The first idea that springs to mind is Paramiko, if you are using Python, but other packages, libraries and frameworks may exist that work with SSH cli commands and interactions, for other scripting and programming languages.

Help the community: "Like" helpful comments, and click "Accept as Solution" if you found your answer 🙂
  • 2119 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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 LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!