Brian Long wrote:
On Tue, 2008-06-10 at 12:40 +0200, Erling Ringen Elvsrud wrote:
Hello list,
Installation of the CA-unicenter agents used to monitor my servers fails if
HOSTNAME is set to FQDN in /etc/sysconfig/network.
Then this is a bug in CA-Unicenter, in my opinion.
Do you know if the RH practice of storing the fqdn in HOSTNAME is
common practice and sensible? or is it better to use only the hostname
in HOSTNAME and add the fqdn to /etc/hosts?
Debian sets a short name.
If you don't use FQDN in the HOSTNAME variable, then the following
commands will not work as intended:
hostname
hostname -s (supposed to return short hostname)
hostname -f (supposed to return FQDN)
If $HOSTNAME is set to the short hostname, hostname -f will not return
FQDN.
I think, without checking, that HOSTNAME from /etc/sysconfig/network is
used to set the hostname as follows. The hostname command seems to work
fine with a short host name:
09:09 [EMAIL PROTECTED] ~]$ sudo sysctl -w kernel.hostname=sysadmin
kernel.hostname = sysadmin
09:09 [EMAIL PROTECTED] ~]$ hostname
sysadmin
09:09 [EMAIL PROTECTED] ~]$ hostname -s
sysadmin
09:09 [EMAIL PROTECTED] ~]$ hostname -f
sysadmin.office.lan
09:09 [EMAIL PROTECTED] ~]$
--
Cheers
John
-- spambait
[EMAIL PROTECTED] [EMAIL PROTECTED]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
You cannot reply off-list:-)
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list