OpenVZ Forum


Home » General » Support » Discovering VE0 from within a VE
Discovering VE0 from within a VE [message #26927] Tue, 05 February 2008 13:23 Go to next message
jmelyn is currently offline  jmelyn
Messages: 27
Registered: June 2007
Junior Member
Hi there,

My question is: Is it possible to know the name of the host OS (VE0) directly from a VE?

Thanx in advance,

JMElyn.
Re: Discovering VE0 from within a VE [message #26929 is a reply to message #26927] Tue, 05 February 2008 13:25 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

What do you mean by name?

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Discovering VE0 from within a VE [message #26930 is a reply to message #26929] Tue, 05 February 2008 13:39 Go to previous messageGo to next message
jmelyn is currently offline  jmelyn
Messages: 27
Registered: June 2007
Junior Member
I would like to know ${HOSTNAME} of VE0. This is not so static as a VE can migrate from a HN to another one.
Re: Discovering VE0 from within a VE [message #26931 is a reply to message #26930] Tue, 05 February 2008 13:44 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

You can't know the hostname. You can know host system IP though if you run traceroute/tracepath to some remote IP, as every packet goes through host system.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
[SOLVED] Re: Discovering VE0 from within a VE [message #26932 is a reply to message #26931] Tue, 05 February 2008 14:00 Go to previous message
jmelyn is currently offline  jmelyn
Messages: 27
Registered: June 2007
Junior Member
So the command:

traceroute aComputer | awk '/^ 1 / {print $2}'

will give me the name of the host! That's finally rather simple Smile
Thank you Kir!
Previous Topic: default bandwidth limitation for venet?
Next Topic: Network connectivity issue within VE
Goto Forum:
  


Current Time: Sun Aug 11 10:16:26 GMT 2024

Total time taken to generate the page: 0.04932 seconds