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

Fortimanager error 0 - invalid value

Dear people,

 

I would like delete the internal VLAN Switch over FGM with CLI Script. I get this error back:

Copy device global objects
2:
3:Vdom copy failed:
4:error 0 - invalid value
5:
6:Copy objects for vdom root
The Cli Code over Fortimanager
config system interface
delete "internal"
next
end
#####
I can delete over the gui
Kaplan_0-1647236483336.png

Where is Used Check:

Kaplan_1-1647236544429.png

Event Log:
50% state:5 dvm_err:0 vdom copy error: invalid value, Install Device

 

I think it can not install the internal1 - 5 stanalone in VDOM

 

If I delete internal over gui, so there are no problems and I have 5 Internal standalone Ports.

 
5 REPLIES 5
vtsonev
Staff
Staff

Hi Kaplan,

 

"internal" has to be deleted first from "conf sys virtual-switch". Once you delete the switch interface you should be able to delete the interface.

 

conf system virtual-switch
show
delete internal
end

 

I see you were trying to directly delete from "config system interface" but in this case Fortigate will discard the command with "Command fail. Return code -23", so it will fail anyway.

 

Please let me know if that was the solution you were looking for.

 

Best regards,

Vasil

Fortinet Technical Team Lead
NSE 1-4,7 Certified
Kaplan

Thanx for your answer,

I tried this before too.

I tried this now again and I have the same Error:

Kaplan_0-1647247076574.png

Eventlog:

50% state:5 dvm_err:0 vdom copy error: invalid value, Install Device

 

vtsonev

Hi,

 

Can you please share which Fortigate model you try  to configure and which version OS of FortiManager you are using?

 

Best regards,

Vasil

Fortinet Technical Team Lead
NSE 1-4,7 Certified
Kaplan

FG 60F 6.4.8FGM 7.0.3

vtsonev
Staff
Staff

Hi,

 

Have you tried to perform the changes on the Fortigate directly ? Is the same issue reproducible there, or it's only when you try from the Fortimanager? You mentioned in your first comment that delete via Fortimanager GUI works fine too, so as far as I understood the issue seems only when you use script . If it works in any other way and the only problem is with script, I would advise you to open a support ticket for this.

 

Best regards,

Vasil

Fortinet Technical Team Lead
NSE 1-4,7 Certified
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors