OpenVZ Forum


Home » General » Support » [solved] How to determine which HN a VE is running on
[solved] How to determine which HN a VE is running on [message #33706] Sun, 02 November 2008 12:31 Go to next message
Zirafarafa is currently offline  Zirafarafa
Messages: 13
Registered: April 2008
Junior Member
Hi

I am putting together a script which requires me to be able to determine from the VE, which host it is running on.

I can run a traceroute, and grep the second hop, but I am hoping there is a proc or sys file I can easily read to find this info.

Any ideas?



[Updated on: Mon, 10 November 2008 06:53] by Moderator

Report message to a moderator

Re: How to determine which HN a VE is running on [message #33735 is a reply to message #33706] Wed, 05 November 2008 14:18 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hi.

Quote:

I can run a traceroute, and grep the second hop,

Right way.

Quote:

but I am hoping there is a proc or sys file I can easily read to find this info.

No special proc/sys files for this.


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: How to determine which HN a VE is running on [message #33775 is a reply to message #33735] Sun, 09 November 2008 08:04 Go to previous messageGo to next message
Zirafarafa is currently offline  Zirafarafa
Messages: 13
Registered: April 2008
Junior Member
I have settled for writing a script which runs during vps.mount, which writes the hostname of the HN to /etc/vzhost on the guest.

I can easily cat that while the machine is running.
Re: How to determine which HN a VE is running on [message #33782 is a reply to message #33775] Mon, 10 November 2008 06:53 Go to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Smile

you did not say that you have access to the Hardware Node. Smile
Yes, if this is true - this will work.

--
Konstantin


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Previous Topic: vzyum database recovery -- was vzpkgcache fail
Next Topic: Using private ip for containers with public ip for the hardware node
Goto Forum:
  


Current Time: Mon Aug 12 12:13:30 GMT 2024

Total time taken to generate the page: 0.02868 seconds