Learn how to generate a support bundle. Use the vm-support command at the ESXi host shell. Download logs from a host using WinSCP.
- [Instructor] All right, hello everyone. In this demo what we're going to be doing is creating log bundles. Now you might be asking yourself is this demo going to be different than the previous demo, going out and exporting and looking at diagnostics? And the answer is yes. What we did prior was we exported our vCenter diagnostic data, and essentially now what I want to show you is what happens if vCenter is down. That very well could be a possibility. So we're going to focus solely on the ESXi host. If vCenter is down, how do you go to your ESXi host and gather logs from an ESXi host? So, first things first, we're going to eliminate vCenter from our environment. So we're going to switch over, we're going to connect to an ESXi host. All right, now couple of ways to do this. We can do it first through the Web Client. So you click on Host, then you'll see under the actions Section. we can say Generate Support Bundle. So if we actually click this, it's going to go out and you'll notice a little, the recent task is going to say Generate Log Bundles, and it's going to say Running. This process is going to take about, I'd say three to four minutes. It's going to go out, it's going to look at all the logs, everything that's occurred. It'll gather everything from the web client all the way down to the HA agents, and such like that. So it's going to take a few minutes. So, you know, be patient with this. Once this is completed, it's going to pop up a little window right here in the Web Client, and it's going to say this log file, or this bundle, is done, all right. It's ready to be downloaded. So you can actually download it and then save it to your machine. The other way you can actually do it is you can use SSH. All right, so you can actually you can use PuTTY or USSH into an ESXi. It's your choice. So I'm going to go ahead. I've got a session out here to this particular ESXi host. It's very simple. So in the event you don't have access to the Web Client, all right, in the event you don't have access to a web client, you just simply go out and you type in vm-support. And what it's going to do is you hit Enter, and it's going to go through and it is going to generate these log bundles. All right, so again this process here is going to take three to four minutes. So what we'll do is we'll go ahead and we'll pause the video while this thing is actually completing. And when this is done, then we'll go through and you'll see the output of both of these. Then I'll show you guys how to get access to them. All right, so at this point the bundles are finished. The Web Client bundle over here, move this out of the way. The Web Client, basically it says, creation of a bundle has completed, you can download it. So the easiest way to get it is to say Download. It does disappear after 15 minutes. All right? So you're going to want to make sure that you save this file before 15 minutes, otherwise, you'll have to regenerate it. So we can go out, we can click Save and it saves it to your machine. All right, so that's a pretty good way to do it. Now over here on my SSH, when I ran VM Support, it's telling us, it says to go out to this particular volume. All right, so what I'm going to do my favorite, let me log back in here to it. Oh, there it is. Let me pull up WinSCP. So WinSCP is my favorite client for this. So what you want to do is you want to go out to the right, we need to find the right VMFS volume for this, all right. So I'm going to out here and I'm going to use SCP, so let me bring this up. And I'm going to go ahead and get logged in here. So give me just a second and I'm going to login. All right, so I've logged in now through SCP. I'm using WinSCP here, but I've logged directly into my ESXi host. So first things first, I need to find that location to grab the bundle. So it's saying VMFS volumes, it's going to be on ESXi local 256. So VMFS, Volumes, ESXi Local 256. So we'll go and have a run on that. And there it is. So I've got some other stuff in there. So, there's my tar.gz file. I can go through. I can download this very easily, you know, drag it over to my machine, save it, and then I can submit it to VMWare for an incident report. So, that's a great way to go out and to grab the bundles just off of an ESXi host, vCenter isn't needed. So, with that being said, we've completed the demo and I will see you guys in the next demo. Thanks a lot.
- 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