Solved

Vmware Linux question

Posted on 2010-11-30
5
294 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
thank you for all the info.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
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…
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now