Skip to main content
LinkM
New Member
May 5, 2022
Question

Script in CLI to Validate Credentials for all interfaces

  • May 5, 2022
  • 3 replies
  • 2330 views

Hi all!

is there a way in the FortiNAC CLI to validate the credentials of every interface rather than having to manually click Validate Credentials from the GUI for each individual switch?

 

LinkM_0-1651758780580.png

 

 

3 replies

GDiFi
Staff
Staff
May 5, 2022

I think it depends on what credentials you want to test.  If you just want to check snmp you can run the following:

 

Device -all -testsnmp

This will show you a list of failed items and then a total SNMP count at the bottom:

Device SNMP test counts: Succeeded = 3, Failed = 5

 

khoffman
Staff
Staff
May 18, 2022

From the FortiNAC CLI you could search the output.master log for "failed to connect".  Failed to connect will print anytime that FortiNAC is unable to connect to a network device via CLI credentials. 

grep -i "failed to connect" /bsc/logs/output.master | awk '{print $14}' | sort | uniq


AEK
SuperUser
SuperUser
May 19, 2022

If you mean SSH, you can test your password with ssh client from FNAC CLI.

AEK