Solved

Vmware Linux question

Posted on 2010-11-30
5
296 Views
Last Modified: 2012-08-13
We are running linux redhat boxes on ESX server and it has many hosts. Is there a way that we can find which host we are running the linux box? I need to check it for few hundred boxes, I don't want to go through virtual center all the time.

Thank in advance
0
Comment
Question by:mokkan
5 Comments
 
LVL 23

Accepted Solution

by:
jakethecatuk earned 250 total points
ID: 34240064
Under VCentre, click on the virtual machines tab under your data centre - this will list all of your VM's.  

Right click on the columns and select 'Guest OS' and it will list all the guest OS's that have been reported back by VM tools.
0
 

Author Comment

by:mokkan
ID: 34240187
I understand that,  how do I check from the linux guest from the command prompt, is there  a  command available?
0
 
LVL 16

Assisted Solution

by:danm66
danm66 earned 250 total points
ID: 34241141
There's no variable set inside of the guests that reveal details about the ESX host that it resides on.  I'm not exactly sure how, but I think you could set up a vMA server or use the Remote CLI to do an inventory check and then grep out the hostname of the linux guest.  http://communities.vmware.com/community/vmtn/vsphere/automationtools/vima is where you can download the vMA and you can ask around on the communities site to see if someone already has a script to do what you need.
0
 
LVL 14

Expert Comment

by:Deepak Kosaraju
ID: 34295986
I would say run
Login to particular ESX host an run following commands

#find <datastore> -type f -name "*.vmx" -exec grep -i "Linux" {}\;

This will give you all the list of linux OS vmx files that are having keyword Linux as a Guest OS type inside the vmx file, I am sure other than Linux server no other vmx files will have the word Linux at-least as Guest OS type inside the vmx file.

I bet this can be more simple via vMA but I don't have the environment to try this.
0
 

Author Closing Comment

by:mokkan
ID: 34422388
thank you for all the info.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question