How to Create a CLI Script for Reports or Report Groups on Firewalls or VSYS

How to Create a CLI Script for Reports or Report Groups on Firewalls or VSYS

31223
Created On 09/25/18 19:26 PM - Last Modified 06/12/23 20:52 PM


Resolution


Part 1: Generate Reports Using the WebGUI

 

  1. Configure a single custom report, PDF summary report, or a report group using the PAN-OS WebGUI and commit the configuration change.
  2. Open a CLI session.
  3. Enter the command set cli config-output-format set.
  4. Enter configuration mode.
  • To view the CLI commands used to configure a custom report:
    • For a single VSYS firewall, enter the command show shared reports.
    • For a multi-VSYS firewall, enter the command show vsys <vsys_name> reports.
  • To view the CLI commands used to configure a PDF Summary report:
    • For a single VSYS firewall, enter the command show shared pdf-summary-report.
    • For a multi-VSYS firewall, enter the command show vsys <vsys_name> pdf-summary-report.
  • To view the CLI commands used to configure a report group:
    • For a single VSYS firewall, enter the command show shared report-group.
    • For a multi-VSYS firewall, enter the command show vsys <vsys_name> report-group.

 

Part 2: Create a Text File and Script

 

  1. Copy the set commands from the CLI output and paste them into a text file.
  2. For multi-VSYS firewalls, replace the <vsys_name> with the name of the VSYS to which provisioning will be done, and save the changes.
  3. On the other firewall or VSYS, copy all of the set commands from the CLI script text file and paste it into the CLI, and press Enter. 

Note: It may be necessary to enter the commands set cli pager off and set cli scripting-mode on, if the pasted set commands do not run without issues.  Be sure to reverse these configuration changes when done.

 

Part 3: Commit and Verify

 

  1. Enter the commit command for the configuration changes to take effect.
  2. Log out from the CLI session.
  3. Log into the PAN-OS WebGUI.
  4. Navigate to Monitor tab > Manage Custom Reports or to PDF Reports > Manage PDF Summary or to PDF Reports > Report Groups to verify that the custom reports, PDF Summary reports, or report groups are configured correctly.

owner: jdavis



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClYZCA0&lang=en_US%E2%80%A9&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language