Learn how to diagnose problems, troubleshoot issues, and protect deployments using vSphere. Prepare for the VMware Certified Professional exam.
- [Instructor] In this video, I'll use the VMware hands on labs, to demonstrate how to restart the management agents on an ESXi host. So these management agents are important because V Center uses these to communicate with your ESXi host. So, if you can't connect to your ESXi host through V Center, you may want to restart the management agents. So there's a couple different ways that you can go about this. The way that I'm going to do it, is I'm going to connect to an ESXi host using PuTTY. So I'm going to launch PuTTY here in my hands on lab session. I'm just going to quickly modify the font size, so it's a little easier for everybody out there to see what I'm up to. And I'm going to go ahead and open a session to this ESXi host. Now, this is one way to do it. In a minute I'll talk about how to do it locally, so the fact that I'm connecting to this host remotely, may not be possible in certain situations. You may need to physically go up and access the console of the ESXi host. So anyways, I'm already logged in here, and you can see I'm logged in as root. So that's good, I have to be logged in as root, and I'm in my ESXi shell now. I'm logged in, SSH'd, and in root, so I am going to type in the following command, etc slash init.d slash hostd restart. That's my first command to restart hostd, and the second management agent that I'm going to restart, is called VPXA. So I'm just going to slightly modify my command, but it's very similar command. Etc slash init.d slash vpxa and then space, restart. And I have successfully restarted the management agents on this ESXi host at that point. And to make this whole process a little bit more comprehensive, I could just simply do the services.sh restart command as well, and put in that command. And you'll notice that services.sh restart, that's going to restart all of the management agents on the ESXi host, and it's going to take longer than simply restarting VPXA and restarting hostd. So that last command that I showed you, the services.sh restart. If you need to, you can go into the DCUI of the ESXi host, and you can access the shell. And here is a nice little document on esxsi.com showing you exactly how to get into the SSH shell from the DCUI. So basically, you hook up your keyboard and monitor to the ESXi host. You have to enable the ESXi shell, so that's always step one is to enable the ESXi shell, and once the ESXi shell is enabled, then from there, you press ALT + F1, and that'll bring you to the ESXi shell here. So once you're in that ESXi shell, you can do services dot sh restart to restart all the management agents of that ESXi host, or you can also just simply restart hostd in VPXA from there as well. I can also utilize commands like esxtop and so on and so forth. So this is a nice little article showing you some of the things that you can do from the ESXi shell, and if you want to check this out, just go to esxsi.com, and take a look at their troubleshooting with the ESXi shell document.
- Troubleshooting VMs
- Interacting with a host using a DCUi
- Using ESXi management agents
- Collecting diagnostic data using vSphere
- Creating log bundles
- Protecting data using vSphere
- Configuring high availability (HA) configuration
- Leveraging VMCP