Installation & Configuration

Welcome to the Nutanix NEXT community. To get started please read our short welcome post. Thanks!

cancel
Showing results for 
Search instead for 
Did you mean: 

Check Hypervisor Password from CVM

SOLVED Go to solution
Adventurer

Check Hypervisor Password from CVM

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. Smiley Wink

 

Regards,

Zack

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Vanguard

Re: Check Hypervisor Password from CVM

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.

Sylvain Huguet - 2x Nutanix Technology Champion 2015-2016, French Nutanix Connect Chapter Champion, French VMUG Leader, 6x VMware vExpert 2011 to 2016
4 REPLIES
Highlighted
Vanguard

Re: Check Hypervisor Password from CVM

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.

Sylvain Huguet - 2x Nutanix Technology Champion 2015-2016, French Nutanix Connect Chapter Champion, French VMUG Leader, 6x VMware vExpert 2011 to 2016
Adventurer

Re: Check Hypervisor Password from CVM

Hi dude,

 

Once again , thank for your explanation. Smiley LOL

Vanguard

Re: Check Hypervisor Password from CVM

My pleasure Smiley Happy

Sylvain.
Sylvain Huguet - 2x Nutanix Technology Champion 2015-2016, French Nutanix Connect Chapter Champion, French VMUG Leader, 6x VMware vExpert 2011 to 2016
Moderator

Re: Check Hypervisor Password from CVM

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.