How to find which host a VM is running on?

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How to find which host a VM is running on?
# 1  
Old 07-07-2014
How to find which host a VM is running on?

We have quite a few Linux VMs running (several hundred). Some are running in VMware and some are running on Citrix XenServer.

I know that it is possible, for example, to go into vSphere and search for the host name. But there are times where it is not found for whatever reason and I want to log into the guest and see host what it thinks it is running on.

Does anyone know a way for either of the above to find out the host that is running a particular guest from the Linux guest OS?

I used to be able to do this with HP-UX HPVM by installing the vm toolbox onto the guest. And with Solaris sparse root zones I used to be able to tell by looking at the arp cache. I'm just checking if there is any way at all to do something similar with VMware or XenServer.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

sed find replace after HOST string

Hi Everyone, I have a xml file, where i need to find this HOST=dbhost.domain.com and then replace only dbhost.domain.com with db.one.in so finally it should like this HOST=db.one.in i tried this but its not working. sed -i "s/^HOST=*com$/HOST=db.one.in/g" repository.xml ^... (4 Replies)
Discussion started by: shajay12
4 Replies

2. Shell Programming and Scripting

Is there a way to find when a user is added in Linux host?

Is there a way/command/script to find when a user is added in linux host? (4 Replies)
Discussion started by: jaipsharma
4 Replies

3. Solaris

How can I find which NIC is used to talk to a given host (except traceroute)

Hi all, I'm having some trouble identifying what route is being used to talk to a target host. I can figure it out by looking at the routing tables but I want to automate this and don't much feel like scripting the network mask logic when I'd think there'd be a way to have the OS do it for me.... (5 Replies)
Discussion started by: Smiling Dragon
5 Replies

4. Red Hat

How to Find all the SSL certs on a give host Cent OS

Hi I am trying to find all the ssl certs installed/located on cent os Host , Please help . (1 Reply)
Discussion started by: smartguyz2012
1 Replies

5. IP Networking

The system function gethostbyname() failed to find the client's host name

As we are facing issue with this server connection. The error is: The system function gethostbyname() failed to find the client's host name. how can i check if the server "server1" is able to resolve the client hostname (hosts / dns)? i can ping the client from server. any... (1 Reply)
Discussion started by: jinslick25
1 Replies

6. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

7. AIX

Find information for Host and SAN disconnect

Can someone point me in the right direction as to where I can find information on how to cleanly disconnect my AIX 5.3 host from our DS/4200 SAN. I have to do a firmware upgrade on the SAN. -Thanks (2 Replies)
Discussion started by: tfort73
2 Replies

8. Shell Programming and Scripting

Kill shell script when host program not running/disk unmounted

I have my Mac OS X program executing a shell script (a script that copies files to a drive). I want to make it so that the shell script automatically kills itself if it finds that the host .app is not running OR kill itself if the drive that it is copying files to has been unmounted. Right now what... (2 Replies)
Discussion started by: pcwiz
2 Replies

9. Shell Programming and Scripting

running commands to remote host from centralized host

Gurus/Experts We have a centralized UNIX/Solaris server from where we can actually ssh to all other UNIX/Solaris servers...I need to write a script that reside on this centerlized server and do FileSystem monitoring (basically run df -h or -k) of other remote servers and then send an email to me... (6 Replies)
Discussion started by: anjum.suri
6 Replies

10. UNIX for Dummies Questions & Answers

how to find the host name

HI, what is the command to find the host name with IP address. is possible to find the host name of other boxes( having their ip) from the same box (assuming telnet to other box is possible from this) Regards, Ananda (1 Reply)
Discussion started by: ani_rvce
1 Replies
Login or Register to Ask a Question
ypset(1M)																 ypset(1M)

NAME
ypset - bind to particular Network Information Service server SYNOPSIS
host] domain] server Remarks The Network Information Service (NIS) was formerly known as Yellow Pages (YP). Although the name has changed, the functionality of the service remains the same. DESCRIPTION
tells to get Network Information Service (NIS) services for the specified domain from the process running on server (see ypserv(1M) and ypbind(1M)). server is the NIS server that the NIS client binds to, and is specified as either a host name or an IP address. If server is down or is not running this is not discovered until a local NIS client process tries to obtain a binding for the domain. The daemon then tests the binding set by If the binding cannot be made to the requested server, attempts to rebind to another server in the same domain present in the ypservers file. NOTE: In order to run must be initiated with the or options. For more information on how to initiate see ypbind(1M). The command is useful for binding a client node that is not on a broadcast network. If a client node exists on a broadcast network which has no NIS server running, and if there is a network with one running that is available via a gateway, can establish a binding through that gateway. It is also useful for debugging NIS client applications such as when a NIS map exists only at a single NIS server. In cases where several hosts on the local net are supplying NIS services, it is possible for to rebind to another host, even while you attempt to find out if the operation succeeded. For example, typing followed by and receiving the reply may be confusing. It could occur when host1 does not respond to because its process is not running or is overloaded, and host2, running gets the binding. The server is the NIS server to bind to, specified as either a host name or an IP address. Refer to ypfiles(4) and ypserv(1M) for an overview of the Network Information Service. Options recognizes the following options and command-line arguments: Bind server for the Version 2 NIS protocol. Set the binding on host instead of locally. host can be specified as a host name or an IP address. Use domain instead of the default domain returned by (see domainname(1)). DIAGNOSTICS
The user is not root, or ypbind was run without the flags. See ypserv(1M) for explanations of the flags. The user is not root, or ypbind was run without one of the flags. See ypserv(1M) for explanations of the flags. WARNINGS
Starting with ONCplus version B.11.31.02, the NIS Version 1 protocol is no longer available. AUTHOR
was developed by Sun Microsystems, Inc. SEE ALSO
domainname(1), ypwhich(1), ypserv(1M), ypfiles(4). ypset(1M)