I need to find the name of a machine programatically, but on hp-ux, there is no reference to it. Is there some secret hp method to get a machine to cough up it's name that doesn't use env?
There is a brute force method. If the machines are networked and running 10.20, you could open the file /etc/rc.config.d/netconf. In netconf is the hostname and IP address of each machine in ascii text. At least in our network it is.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.