I do not care what format, it just needs to be better than the "full configuration" human-readable format.
on a Juniper SRX , you can type
show config | display XML
job done
I need to get my hands on the Fortigate config in a similar format.
I've googled it, and the GUI I'm looking at it does not seem to have the "export as YAML option.
Is there a way to view the configuration in the CLI as XML or anything else?
Regards
Simon
PS also tried to post in this forum and failed. I get this
Post flooding detected (community received posts of a unique message more than one time within 3,600 seconds)
It makes it impossible to post here, trying again after one hour.
Solved! Go to Solution.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Hello @Simon_Bingham ,
You can't access the configuration file on the filesystem. Because FortiOS is a hardened operating system. Also, I think the configuration running on FortiOS and the backup file use the same structure.
Hello @Simon_Bingham ,
After version 7.2, you can download the backup file in yaml format.
But, on version 7.0 you can just download FortiGate default format.
Thanks, do you know how the config is held internally on the devices? is this hidden in the linux OS anywhere that we can access ?, I'm just thinking the real config file that the device uses to boot must be somewhere.
Hello @Simon_Bingham ,
You can't access the configuration file on the filesystem. Because FortiOS is a hardened operating system. Also, I think the configuration running on FortiOS and the backup file use the same structure.
Thank you for responding, it looks like I will need to write a script to convert this into something structured. Thanks.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1670 | |
1082 | |
752 | |
446 | |
226 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.