[Spacewalk-list] Machine getting the wrong hostname

Wojtak, Greg GregWojtak at quickenloans.com
Fri Feb 13 16:41:20 UTC 2015


"When I do rhnreg_ks I specify the profile name as the fully qualified domain name, like this:

rhnreg_ks --serverUrl=https://spacewalk/XMLRPC --profilename=`hostname -f` --activationkey=1-blabla”

This is brilliant.  Is there a way to tell a kickstart to add the --profilename argument to the rhnreg_ks that gets generated?  We have to do our provisioning on a separate network from where the server eventually resides, so the profiles are all named localhost.localdomain until a post script renames everything, which to me is a kludge.

Greg

From: Matthew Madey <mattmadey at gmail.com<mailto:mattmadey at gmail.com>>
Reply-To: "spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>" <spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>>
Date: Wednesday, February 11, 2015 at 8:35 PM
To: "spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>" <spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>>
Subject: Re: [Spacewalk-list] Machine getting the wrong hostname

When I do rhnreg_ks I specify the profile name as the fully qualified domain name, like this:

rhnreg_ks --serverUrl=https://spacewalk/XMLRPC --profilename=`hostname -f` --activationkey=1-blabla

On Wed, Feb 11, 2015 at 5:03 PM, Brian Kinney <brian.kinney at memeo-inc.com<mailto:brian.kinney at memeo-inc.com>> wrote:
The DNS may not match the actual “hostname” of the new box.
Also, just because it is in /etc/hosts, does not mean that it is the true “hostname.”

To find out:
On a unix box, just type in “hostname” and press enter.
That will show you what the system thinks its own name is.

For windows, you have to right click on my computer, then properties to see the hostname.

--
Brian

This e-mail is private and may be confidential and is for the intended recipient only. If misdirected, please notify us by telephone and confirm that it has been deleted from your system and any copies destroyed. If you are not the intended recipient you are strictly prohibited from using, printing, copying, distributing or disseminating this e-mail or any information contained in it.  We use reasonable measures to virus scan all E-mails leaving UNICOM Global but no warranty is given that this E-mail and any attachments are virus free. You should ensure you have adequate measures in place for your own virus checking.

From: spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com> [mailto:spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>] On Behalf Of Francoeur, Louis
Sent: Wednesday, February 11, 2015 2:26 PM
To: spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
Subject: [Spacewalk-list] Machine getting the wrong hostname

Hi!
I have a strange problem. I have a machine with a name, let say hostname1.

When I to the registering of it with:

rhnreg_ks --serverUrl=https://spacewalk/XMLRPC --activationkey=1-blabla

When I check the detail I see a hostname of “whatever”.

I have checked the DNS (forward and reverse), /etc/hosts and cannot find why I get that hostname.

Someone know what I should do to correct.

Thanks
Louis Francoeur

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list





More information about the Spacewalk-list mailing list