[Spacewalk-list] RHN macro to get short hostname

Pierre Casenove pcasenove at gmail.com
Tue Dec 18 16:10:28 UTC 2012


Hello list,
The RHN predefined macro rhn.system.hostname allows you to get the FQDN of
a client.
In order to manage the /etc/hosts file on some hosts, I would like to get
the FQDN and the short name.
How could I perform this?
I've tried to dig into the code to provide a patch... but I could'nt find
anything.

thanks in advance,

Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20121218/3f5094e8/attachment.htm>


More information about the Spacewalk-list mailing list