Trying to access vCenter via SSH and are presented with the following error:
Type: vCenter Server with an embedded Platform Services Controller
/etc/profile.d/proxy.sh: line 11: Enable: command not found
Traceback (most recent call last):
File "/usr/lib/applmgmt/base/bin/vherdrunner", line 8, in <module>
vherdrunner.start(vherdrunner.directories)
File "/usr/lib/applmgmt/base/bin/vherdrunner.py", line 118, in start
exec(code, childGlobals)
File "/usr/lib/applmgmt/linux_cli/bin/main-shell", line 11, in <module>
sys.exit(cli.main(sys.argv, products=('vherd', 'appliance')))
File "/usr/lib/applmgmt/linux_cli/py/vmware/vherd/linux_cli/cli.py", line 1470, in main
cookieOnly=parsedArgs.get_cookie)
File "/usr/lib/applmgmt/linux_cli/py/vmware/vherd/linux_cli/cli.py", line 289, in connect
self.config['mode'])
File "/usr/lib/applmgmt/linux_cli/py/vmware/vherd/linux_cli/introspection_parser.py", line 153, in findMethod
methodList = self.server.system.listMethods()
File "/usr/lib/python3.7/xmlrpc/client.py", line 1112, in __call__
return self.__send(self.__name, args)
VMware vCenter Server 7.0.0
There are extra or wrong characters at the first line of the file vCenter - /etc/sysconfig/proxy
The following steps are for editing the /etc/sysconfig/proxy
file:
systemd.unit=emergency.target
mount -o remount,rw /
/etc/sysconfig/proxy
file.
proxy
filecd /etc/sysconfig
cp proxy proxy.bak
tail -n 27 proxy
umount /
reboot -f
If you need to restore to the original file:cp proxy.bak proxy
To backup the contents of the first line on the removal:tail -n 27 proxy > proxy.bak