Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #LPP-396410]: Setting of 'hostname' in ldmadmin-pl.conf



Hi Niles,

re: 
> In ldmadmin-pl.conf, we usually set the hostname as follows :
> 
> # The fully-qualified domain-name of the computer system.  If you have to set
> # this manually, then do the following:
> #     1) Replace "your.hostname.here" in the following commented-out statement
> #        with the fully-qualified domain-name of the computer system;
> #     2) Uncomment-out the same line by removing the leading hash (#) character;
> #        and
> #     3) Comment-out the "chop" line by inserting a leading hash (#) character.
> #
> # chop($hostname = `uname -n`);
> $hostname = "whatever.rap.ucar.edu";
> 
> We run on linux, typically redhat or debian.
> 
> My question is - do we have to set this manually?

No, not if your machine is setup to be identified with a fully-qualified hostname.
The default in ldmadmin-pl.conf is, in fact, to set $hostname to the value of
`uname -n`.  A check is made later to see if this is, in fact, a fully qualified
name (i.e., rosebud.rap.ucar.edu, not rosebud).

> Up to now
> we have been and it has not been an issue, but recently an issue with it
> developed and it may be nice to set the hostname automatically.

> What are your thoughts?

Your system administrator(s) should setup your machines to have fully qualified
hostnames.  If they are, then you do not have to edit ldmadmin-pl.conf to set
a name by hand.

> THANKS,

No worries.

Cheers,

Tom
****************************************************************************
Unidata User Support                                    UCAR Unidata Program
(303) 497-8642                                                 P.O. Box 3000
support@xxxxxxxxxxxxxxxx                                   Boulder, CO 80307
----------------------------------------------------------------------------
Unidata HomePage                       http://www.unidata.ucar.edu
****************************************************************************


Ticket Details
===================
Ticket ID: LPP-396410
Department: Support LDM
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690