pcp
[Top] [All Lists]

Re: pmlogger_check.sh in 2.3.1-4

To: Alan Hoyt <ahoyt@xxxxxxxxxxxxx>
Subject: Re: pmlogger_check.sh in 2.3.1-4
From: Ken McDonell <kenmcd@xxxxxxxxxxxxxxxxx>
Date: Wed, 6 Aug 2003 10:08:52 +1000
Cc: PCP <pcp@xxxxxxxxxxx>
In-reply-to: <3F303B27.4050503@moser-inc.com>
Sender: pcp-bounce@xxxxxxxxxxx
On Tue, 5 Aug 2003, Alan Hoyt wrote:

> Line 64 was changed from LOCALHOSTNAME=`hostname` LOCALHOSTNAME=`hostname -s`

At that point we need the short form of the hostname, and on some
systems hostname returns the fully qualified domain name, while hostname -s
returns the short name.

> What was the logic behind this change?  If it's necessary - I can find a work 
> around!
> Otherwise, there is no "short" hostname option on Solaris which resuls in the 
> host name being set to "-s".

Seems like we'll need a workaround for Solaris ... bugger.

Wait a moment ... Nathan's in my office and he suggested adding a -s
option to pmhostname and abandoning hostname everywhere ... we'll
investigate this option, but for the moment I'd suggest Alan uses a
local workaround.


<Prev in Thread] Current Thread [Next in Thread>