Skip to main content
AEK
SuperUser
SuperUser
July 9, 2026
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
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

4 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
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
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