I executed vim-cmd proxysvc/remove_service "/sdk" httpsWithRedirect by mistake.
and now, I can't execute vim-cmd 、esxcli and some other commands. and I can't login by vcenter。
~ # vim-cmd proxysvc/service_list
Failed to login: Invalid response code: 400 Bad Request
~ # esxcli network ip connection list
Connect to localhost failed: Connection failure
I have reboot for several times.
The document: http://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.vsphere.security.doc%2FGUID-0EF83EA7...
Changes are effective immediately and persist across reboots.
but why I have rebooted, and still can't login?
I have solved this problem.
/sdk local 8307 redirect allow
rhttpproxy
service: /etc/init.d/rhttpproxy restart
Can you check the hostd (host agent ) is running.
Check web service status as well.
hostd is running:
~ # /etc/init.d/vpxa status
vpxa is running
~ # /etc/init.d/hostd status
hostd is running.
How to check web service status?
TankyWoo@Mac-OS::~/ » telnet 192.168.0.200 80
Trying 192.168.0.200...
Connected to 192.168.0.200.
Escape character is '^]'.
/etc/vmware/hostd # /etc/init.d/rhttpproxy status
rhttpproxy is running.
This is web service ? It is also running
I have solved this problem.
/sdk local 8307 redirect allow
rhttpproxy
service: /etc/init.d/rhttpproxy restart