Solved

Check Hypervisor Password from CVM

  • 14 May 2014
  • 4 replies
  • 1718 views

Badge +6
Hi ,

I have run below command to show my hypervisor password from one of the CVM , but the password doesn't come out , anyone can help ?

Command : zeus_config_printer 2> /dev/null | grep "hypervisor {" -A 3
Result:

nutanix@NTNX-14SM36060045-A-CVM:192.168.1.208:~$ zeus_config_printer 2> /dev/null | grep "hypervisor {" -A 3 hypervisor { address_list: "192.168.1.204" username: "root" }-- hypervisor { address_list: "192.168.1.206" username: "root" }-- hypervisor { address_list: "192.168.1.207" username: "root" }
Apart of it , can anyone share where is the password configuration Hypervisor and CVM store in nutanix system? (from book it said store in ZEUS , but i don't know exactly the path location )

Thank. ;)

Regards,
Zack
icon

Best answer by shuguet 14 May 2014, 13:46

View original

This topic has been closed for comments

4 replies

Userlevel 4
Badge +20
Hello,

Zeus is the Nutanix name for their wrapper around Apache Zookeeper.
You will not find a specific "file" with the password in it.

As far as I can tell, the passwords are stored encrypted in the znode "/appliance/physical/configuration".

You can change them by using ncli:$ ncli managementserver edit name=host_name password='host_password'$ ncli host edit id=host_id hypervisor-password='host_password'

Note: the host id can be retrived from the command below, and the host name is the "Hypervizor Key":
$ ncli host list

I think it's wise not to display the passwords as plain text, as it would be a security nightmare if you were able to easiliy retrive them by simply listing all the cluster configuration.

Sylvain.
Badge +6
Hi dude,

Once again , thank for your explanation. 😃
Userlevel 4
Badge +20
My pleasure :)Sylvain.
Userlevel 2
Badge +8
zacklee89, the reason you are not seeing the password is because the CVMs have recently switched to using SSH keys to access the hypervisor. We've also hidden the password so that it is not displayed when you print the zeus config. The command you've used is no longer in the upgrade guide as of NOS 3.5.3.1.