如何重設 vcsa 密碼?

如果還記得 vcsa (VMware vCenter Server Appliance) root 密碼就還有救! 先登入進去命令列:

$ ssh root@vcsa

VMware vCenter Server Appliance 6.7.0.54000

Type: vCenter Server with an embedded Platform Services Controller

root@vcsa67's password:
Connected to service

    * List APIs: "help api list"
    * List Plugins: "help pi list"
    * Launch BASH: "shell"

Command> shell
Shell access is granted to root
root@vcsa [ ~ ]#

然後用下列指令查看所屬的網域

root@vcsa [ ~ ]# /usr/lib/vmware-vmafd/bin/vmafd-cli get-domain-name --server-name localhost
vshpere.local

然後再用下列指令重新設定密碼

root@vcsa [ ~ ]# /usr/lib/vmware-vmdir/bin/vdcadmintool


==================
Please select:
0. exit
1. Test LDAP connectivity
2. Force start replication cycle
3. Reset account password
4. Set log level and mask
5. Set vmdir state
6. Get vmdir state
7. Get vmdir log level and mask
==================

3
  Please enter account UPN : administrator@vshpere.local
New password is -
xxxxxxxxx

這樣就重設完畢了!

如果有出現 “VmDirForceResetPassword failed (9106)” 錯誤訊息通常代表沒有對應的帳號可以設定,所以要查好對應的網域再設定。

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.