Skip to main content
mattbrice
New Member
Dec 3, 2021 7:11 PM UTC
Solved

Fortimanager errors out

I'm new to Fortinet/Fortigate and am using a 40F as a lab learning device. I have just a few configs that is causing the push install to fail. All it is :

config system interface
2: delete "lan3"
3: delete "lan2"
4: delete "lan1"
5:end

All three error out with message:

 

"The entry is used by other 1 entries.  Command fail. Return code -23"

 

So how do I undo these commands?  I can't figure it out.

axel_gonzalez_FTNT
Staff
Dec 3, 2021 7:29 PM UTC

Try to retrieve configuration so that you update device layer

 

Device manager > Managed devices > Double click on your FGT > Configuration and Installation > Revision > Total revisions > Revision History > Retrieve config

 

axel_gonzalez_FTNT_0-1638559723231.png

 Once retrieve, try again

8 replies

axel_gonzalez_FTNT
Staff
Staff
Dec 3, 2021 7:29 PM UTC

Try to retrieve configuration so that you update device layer

 

Device manager > Managed devices > Double click on your FGT > Configuration and Installation > Revision > Total revisions > Revision History > Retrieve config

 

axel_gonzalez_FTNT_0-1638559723231.png

 Once retrieve, try again

mattbrice
mattbriceAuthor
New Member
Dec 3, 2021 8:02 PM UTC

No change.  Same error.

 

Do I need to do anything after I "Retrieve Config" ?

Toshi_Esumi
SuperUser
SuperUser
Dec 3, 2021 8:00 PM UTC

Retrieving should recover from the errors. But what exactly tried to configure? Those three interfaces are "lan" hard-switch members by default so they're not in "config system interface". Even if you broke the hard-switch to individual interfaces, those physical individual interfaces can not be removed.

Whatever you tried to configure, the FMG should not try removing those physical interfaces, unless you specifically used CLI templates or CLI scripts to "delete" them.

 

Toshi

mattbrice
mattbriceAuthor
New Member
Dec 3, 2021 9:11 PM UTC

I did not use CLI templates or CLI scripts.  I'm not sure how I got to my current state, to be honest.   I guess I'll try to retrieve the earliest version.

mattbrice
mattbriceAuthor
New Member
Dec 3, 2021 9:15 PM UTC

So i went back in time to original config a "Retrieve"d it and now it works. Thanks for help.

mattbrice
mattbriceAuthor
New Member
Dec 3, 2021 8:03 PM UTC

I think I 'retrieved' an older version that was successful.

Toshi_Esumi
SuperUser
SuperUser
Dec 3, 2021 8:16 PM UTC

"Retrieve Config" AX meant is to retrieve the current config from the device and create a new revision at the FMG. Going back to the older version is "Revert" in the menu under "More" in Revision screen.

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT