To totally unlock this section you need to Log-in
Login
When you are not able to connect ESXi server to vCenter, or when you cannot connect to ESXi server from VI client it may be necessary to restart the management agents on ESX or ESXi host. In today’s article we will learn this.
You might want to follow this little how to article showing you the way doing it. For the restart of the management agents (mgmt-vmware and vmware-vpxa) directly on ESX/ESXi ESXi 4 and 5.x or ESXi 6.x you will have to do the following:
To restart the management agents on ESXi 6.x
Log in to SSH or Local console as root and run these commands:
/etc/init.d/hostd restart /etc/init.d/vpxa restart
Or also (alternative way) reset the management network on a specific VMkernel interface, by default vmk0, by running the command:
esxcli network ip interface set -e false -i vmk0; esxcli network ip interface set -e true -i vmk0
NOTE: Using a semicolon (;) between the two commands ensures the VMkernel interface is disabled and then re-enabled in succession. If the management interface is not running on vmk0, change the above command according to the VMkernel interface used.
To restart all management agents on the host, run the command:
services.sh restart
How to restart the Management agents on ESXi Server – via the console:
- Connect to the console of your ESX Server and press F2.
- Login as root and when using the Up/Down arrows navigate to Restart Management Agents.
- Press Enter and press F11 to restart the services.
- When the service has been restarted, press Enter. Then you can press Esc to logout of the system.
Then you should see a screen like this one:
To restart the management agents on ESXi 4.x and 5.x
From Local Console or SSH, login as root and run this command:
/sbin/services.sh restart
To restart the management agents on ESX Server 3.x, ESX 4.x
Login to your ESX Server as root from SSH session (via putty for example) or directly from the console and then type service mgmt-vmware restart and press Enter.
Make sure that automatic Startup/Shutdown of virtual machines is disabled before running this command otherwise you might reboot the virtual machines.
Type service vmware-vpxa restart and press Enter. Then type logout and press Enter to disconnect from the ESX Server.
Then you should see this as output on the console:
Stopping vmware-vpxa: [ OK ] Starting vmware-vpxa: [ OK ]
Check Management Agents
To view a list of all management agents restarted as part of the services.sh restart run the following command:
chkconfig -io
A common output will be the following:
[root@ESXi01:~] chkconfig -io /etc/init.d/vsanmgmtd /etc/init.d/vsanObserver /etc/init.d/vsantraced /etc/init.d/vsandevicemonitord /etc/init.d/ntpd /etc/init.d/SSH /etc/init.d/DCUI /etc/init.d/swapobjd /etc/init.d/usbarbitrator /etc/init.d/vvold /etc/init.d/sdrsInjector /etc/init.d/vmfstraced /etc/init.d/storageRM /etc/init.d/rhttpproxy /etc/init.d/hostd /etc/init.d/nfcd /etc/init.d/lbtd /etc/init.d/sensord /etc/init.d/rabbitmqproxy /etc/init.d/slpd /etc/init.d/dcbd /etc/init.d/cdp /etc/init.d/smartd /etc/init.d/nscd /etc/init.d/lacp /etc/init.d/memscrubd /etc/init.d/vobd /etc/init.d/vpxa /etc/init.d/sfcbd-watchdog /etc/init.d/snmpd /etc/init.d/sfcbd /etc/init.d/wsman /etc/init.d/xorg /etc/init.d/vmsyslogd /etc/init.d/vmtoolsd
To confirm what agents are running you can run the following command:
chkconfig –list
And the output will be the following:
[root@ESXi01:~] chkconfig –list vsanmgmtd on vsanObserver on vsantraced on vsandevicemonitord on ntpd on SSH on DCUI on ESXShell off ddecomd off clomd off cmmdsd off epd off vsanvpd off swapobjd on osfsd off usbarbitrator on vvold on sdrsInjector on iofiltervpd off vmfstraced on storageRM on rhttpproxy on hostd on nfcd on lbtd on sensord on pcscd off vprobed off rabbitmqproxy on nfsgssd off slpd on dcbd on cdp on smartd on nscd on lacp on memscrubd on vobd on vpxa on lwsmd off sfcbd-watchdog on snmpd on sfcbd on wsman on xorg on vmsyslogd on vmtoolsd on