Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Camilo29
New Contributor

FortiManager CLI Script how to avoid importing duplicate objects

Hi there,

 

I am currently working on a migration of many Cisco ASA firewalls to Fortigates managed by a FortiManager. Since many of the FG are already in production it is critical that we do not import or modify existing objects when running a CLI script. Is there any way or setting to prevent importing objects that already exist in the database through CLI scripts other than manually comparing the script with the existing list of objects?

1 REPLY 1
boneyard
Valued Contributor

i dont believe so, the CLI scripts are pretty basic on that side, they just do what you say without checking, so overwriting what was there, if there was.

 

if you are up to it (or someone else in the company) you might want to look at the REST API and first search before adding, this will require a good amount of scripting / coding experience though.

Labels
Top Kudoed Authors