Skip to main content
kdot
Explorer
January 4, 2024
Solved

Change CLI (ssh) credentials on multiple infrastructure devices in Fortinac GUI

Brand new to Fortinac. Discovered several hundred infrastructure devices. Need to change the CLI (ssh) creds Fortinac uses to connect to these devices. Looking for a way to do this in bulk from the GUI vs. changing every device individually. Any help is appreciated.

ebilcari
ebilcariAnswer
Staff
January 5, 2024

in addition to this answer, there is also an example included in the command description to do the changes on every device:

> device

 

Example 8 - To set the CLI_CREDENTIALS attribute to the same user, passwords, and session type to ssh2
Device -all -setAttr -name CLI_CREDENTIALS -value user:pass:enablepass:SSH2

 

or limit the change to a specific group of devices:

-group <device group name>

Emirjon

5 replies

AEK
SuperUser
SuperUser
January 4, 2024

I thought you can do that on the GUI by selecting many devices on Inventory view, the right click, and change once the credentials for all.

Otherwise have you tried do that from CLI?

I think you can achieve it (and many such tasks) if you use the below command in a script.

device -ip <device-IP> -setAttr ...

 

AEK
kdot
kdotAuthor
Explorer
January 4, 2024

AEK, Thanks for your reply and recommendations. I found a way that "should" work through the GUI, but if I select more than 5 devices it hangs at "Saving change, please wait..."

I'll take a closer look at the CLI commands you recommended. Thanks!

ebilcari
Staff
Staff
January 5, 2024

From the Container you can select multiple devices and change the CLI credentials in one step:

netpin.PNG

Emirjon
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