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.
Solved! Go to Solution.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
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>
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, 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!
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, thank you for the detailed instructions to change the infrastructure device CLI creds using both the GUI and Fortinac CLI.
I was able to complete all the changes in one operation using the CLI commands.
Using the GUI may work, but for me it hung up regularly and would change the creds on devices randomly and without verification, which actually makes things more difficult. I'd steer others towards the CLI for this type of change.
From the Container you can select multiple devices and change the CLI credentials in one step:
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1712 | |
1093 | |
752 | |
447 | |
231 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.