Python Setup and Execution Guide for device-certificate-report
This guide provides comprehensive steps for configuring and executing the device-certificate-report
package within a Python environment. It details command-line execution methods, including options for generating reports from Panorama, individual firewalls, or CSV files.
Configuring and Executing device-certificate-report
Executing Without Command-Line Arguments
You can start the script interactively by simply issuing device-certificate-report
from your current working directory. The interactive shell will prompt you to input the required arguments, including whether to generate a report from Panorama, a firewall, or a CSV file.
Executing With Command-Line Arguments
For a more streamlined approach, you can provide all necessary arguments directly via the command line:
Or for CSV input:
Or to connect directly to a firewall:
Command-Line Arguments
The device-certificate-report
CLI supports various arguments to customize its execution. Here's an overview of the available options:
Global Options
--help
: Show the help message and exit.
Panorama Report Command
Options:
- --hostname TEXT
: Panorama IP address or hostname [optional]
- --username TEXT
: Username for Panorama authentication [optional]
- --password TEXT
: Password for Panorama authentication [optional]
- --output-file TEXT
: Path to the output PDF report [default: device_certificate_report.pdf]
Firewall Report Command
Options:
- --hostname TEXT
: Firewall IP address or hostname [optional]
- --username TEXT
: Username for Firewall authentication [optional]
- --password TEXT
: Password for Firewall authentication [optional]
- --output-file TEXT
: Path to the output PDF report [default:
CSV Report Command
Options:
- --csv-file PATH
: Path to the input CSV file [optional]
- --output-file TEXT
: Path to the output PDF report [default: device_certificate_report.pdf]
Examples
Generating a Report from Panorama
Generating a Report from CSV
Generating a Report from a Firewall
Output
The device-certificate-report
tool generates a PDF report containing detailed information about device certificates, upgrade requirements, and recommendations. The report will be saved with the specified output file name.
Troubleshooting
If you encounter any issues while running device-certificate-report
, please check the following:
- Ensure you have the latest version of the tool installed.
- Verify that you have the necessary permissions to access Panorama, the firewall, or the input CSV file.
- Check your network connection if connecting to Panorama or a firewall.
- Review the error messages for any specific issues.
If problems persist, please open an issue on our GitHub repository with a detailed description of the problem and any relevant error messages.