How to Access Linux Host Name?

   272   4   1
User Avatar
Member
92 posts
Joined: Aug. 2014
Offline
I was able to finally render a fisheye Karma image sequence on our Qube farm. Yay!
however, the renders are flickering and I'm wondering if the issue is host-specific.
A useful diagnostic would be able to burn the name of the Linux hostname on each frame.
Is there a way to get the Linux hostname from within Houdini? e.g. access an environment variable.
Thanks
Edited by jlapre - May 27, 2022 20:17:08
Jeroen
graham
Member
1759 posts
Joined: Nov. 2006
Offline
The best solution is probably to use Python to get the host name: https://docs.python.org/3/library/socket.html#socket.gethostname [docs.python.org]
Graham Thompson, Pipeline Supervisor @ Digital Domain
jsmack
Member
5701 posts
Joined: Sept. 2011
Online
On a render manager like qube, isn't there already a way to get that information for each frame?
User Avatar
Member
131 posts
Joined: July 2010
Offline
graham
The best solution is probably to use Python to get the host name: https://docs.python.org/3/library/socket.html#socket.gethostname [docs.python.org]

Thanks. I'll give that a try.
User Avatar
Member
131 posts
Joined: July 2010
Offline
jsmack
On a render manager like qube, isn't there already a way to get that information for each frame?

Yes, but it would be more convenient to be able to step through frames of the video and see the hostname in the image.
As opposed to cross-referencing each frame to logs from Qube.
  • Quick Links