[Users] finding out the HN name from inside the VC

Michael Stauber mstauber at blueonyx.it
Mon Mar 1 07:26:07 EST 2010


Hi Aleksandar,

> Is there a more elegant way of finding the host name or anything about
> the host node from inside the container than scripting something in
> /etc/vz/conf/vps.mount ?

Don't know if it helps, but with the commands below you can at least fin out 
the IP of the HN from inside a container:

ping -t 1 -c 1 1.2.3.4 | grep exceed | cut -d " " -f 2

-- 
With best regards

Michael Stauber



More information about the Users mailing list