Could anyone please guide me like what is the use of command set expert-password-hash ?
Actually when I used this command I am not able to login via expert password that I set before applying this command.
According to How to reset the Expert mode password in Gaia OS it is used to reset the Expert mode password:
Connect to the CLI on Gaia machine (over SSH or console).
Log in to CLISH as an adminRole user (a user with monitorRole does not have sufficient permissions).
Find the hash of the CLISH password:
HostName:0> show configuration
Set the hash of the CLISH password to be the hash of the Expert mode password
So you don't use it AFTER you have set a password for Expert mode.
Much simpler way to generate the expert password hash: cp_openssl passwd -1
Thanks for the information.
Retrieving data ...