Skip to main content
AEK
SuperUser
SuperUser
July 9, 2026
Solved

FortiNAC dev model config in CLI

  • July 9, 2026
  • 2 replies
  • 80 views

Hi FNAC admins

FortiNAC-F 7.2.9.

Do you know a way to show/set device model configuration in CLI or via Linux shell (enter-shell).

Best answer by ebilcari

Yes, logical network mappings are not part of the device attributes. I am not aware of any CLI command that can be used to configure or manage them. This should be achievable through API: https://docs.fortinet.com/document/fortinac-f/7.6.3/rest-api/634664/post-policy-logical-network-configuration-element-properties-deviceid

2 replies

ebilcari
Staff
Staff
July 9, 2026

Most of the attributes can be found, added or changed with the command:

# exe enter
$ device -ip 10.0.0.1
$ device -ip 10.0.0.1 -setAttr -name XXX -value "value”

In newer versions of FNAC: 

# diagnose network device display ip 10.0.0.1
# diagnose network device set attribute XXX "value" ip 10.0.0.1

 

Emirjon
AEK
SuperUser
AEKAuthor
SuperUser
July 9, 2026

Thanks for your feedback, Emirjon.

However I didn’t explain well my request. Actually I’m looking for Logical-network/VLAN mapping via CLI. This one seems not available with command “device” or “diag net device”.

AEK
ebilcari
Staff
ebilcariAnswer
Staff
July 9, 2026

Yes, logical network mappings are not part of the device attributes. I am not aware of any CLI command that can be used to configure or manage them. This should be achievable through API: https://docs.fortinet.com/document/fortinac-f/7.6.3/rest-api/634664/post-policy-logical-network-configuration-element-properties-deviceid

Emirjon
AEK
SuperUser
AEKAuthor
SuperUser
July 9, 2026

Thanks Emirjon, API will do the job.

AEK