FortiGate profile
FortiGate Report
Query FortiGate firewalls via API and export findings to Excel.
Description
The FortiGate Report tool queries a FortiGate firewall via the FortiManager JSON-RPC API and exports findings to Excel. It collects firewall policies, address objects, service objects, interface configurations, and other firewall data. This tool is useful for security audits, policy analysis, and compliance reporting.
Input
This tool requires:
- •
devices.csvfile with columns:host,device_type - •SSH credentials (username and password prompted at runtime)
- •Output folder name (prompted at runtime)
Usage
Run the toolkit and select option [8] from the menu:
Terminal
docker compose run network_automation
Output
Results are saved to:
outputs/fmg_grep//
Each run produces:
- •CSV files - One per device
- •JSON files - Raw parsed output from each device
- •Excel summary report - Consolidated data across all devices
Standalone Usage
To run this tool directly without the run.py menu:
Terminal
cd tools/cloud_automation/fortigate-grep && python fortigate_report.py --profile lab