View unanswered posts | View active topics It is currently Thu Oct 19, 2017 3:46 pm



Reply to topic  [ 5 posts ] 
 Virtual center server down. How to find host. 
Author Message

Joined: Wed Jul 24, 2013 4:40 am
Posts: 2
Reply with quote
Post Virtual center server down. How to find host.
I'm in a large enviroment with 20 ESX hosts.

Logged on to my VC server today.
As always i open my vsphere client on the server and will logon to my VC interface with all my virtual servers.
but get connection error.

How do I find out which ESX the VC is running on, so that I can reboot it?

it's on one of the 20 ESX hosts, but which one?

can i run a command on one host that tells me where or on the VC server?


Wed Jul 24, 2013 4:47 am
Profile

Joined: Wed Mar 18, 2009 1:32 pm
Posts: 455
Location: Sweden
Reply with quote
Post Re: Virtual center server down. How to find host.
I think there is a powershell command that you can use to list running VMs.

Check this http://vmwaredevotee.com/powershell/

I'm not that good at powershell and I don't have the addons installed but something like this could maybe work

If you have a text file with your hostnames
Get-Content C:\SomeFile.txt | ForEach-Object { Connect-VIServer $_ | get vm }

_________________
Dovie'andi se tovya sagain,



Wed Jul 24, 2013 10:44 pm
Profile WWW
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3880
Reply with quote
Post Re: Virtual center server down. How to find host.
If you using shared storage and you can find the datastore for the VM, you could run the following on the vmware.log for the vcenter VM:

cat vmware.log | grep Hostname

Or if you can access the vCenter database you could run this:

SELECT vpxv_vms.vmid, vpxv_vms.NAME, vpxv_vms.hostid, vpxv_hosts.NAME
FROM vpxv_vms
JOIN vpxv_hosts on VPXV_VMS.HOSTID = VPXV_HOSTS.HOSTID
WHERE (
(vpxv_hosts.hostid = vpxv_vms.hostid)
AND (vpxv_vms.NAME = 'your_vcenter_vm_name')
)

_________________
Dave Mishchenko
VMware vExpert 2009-2013
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Wed Jul 24, 2013 10:55 pm
Profile

Joined: Wed Jul 24, 2013 4:40 am
Posts: 2
Reply with quote
Post Re: Virtual center server down. How to find host.
Thanks... will try and see if I can find out of this.

I don't know much about vmware.


Thu Jul 25, 2013 12:16 am
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3880
Reply with quote
Post Re: Virtual center server down. How to find host.
When you say this "Logged on to my VC server today" can you access the server via RDP or another method? If so you might want to check to see if the vCenter service is running.

_________________
Dave Mishchenko
VMware vExpert 2009-2013
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Thu Jul 25, 2013 12:19 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.