Skip to main content
AEK
SuperUser
SuperUser
Jul 9, 2026 10:51 AM UTC
Solved

FortiNAC dev model config in CLI

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).

ebilcari
ebilcariAnswer
Staff
Jul 9, 2026 1:41 PM UTC

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

4 replies

ebilcari
Staff
Staff
Jul 9, 2026 12:38 PM UTC

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

 

Translate
Emirjon
AEK
SuperUser
AEKAuthor
SuperUser
Jul 9, 2026 1:19 PM UTC

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”.

Translate
AEK
ebilcari
Staff
ebilcariAnswer
Staff
Jul 9, 2026 1:41 PM UTC

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

Translate
Emirjon
AEK
SuperUser
AEKAuthor
SuperUser
Jul 9, 2026 2:23 PM UTC

Thanks Emirjon, API will do the job.

Translate
AEK
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024