[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12023: � closed (Re: bug#12023: bug of hostid cmd ?)
From: |
P¨¢draig Brady |
Subject: |
bug#12023: closed (Re: bug#12023: bug of hostid cmd ?) |
Date: |
Mon, 23 Jul 2012 15:16:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 |
On 07/23/2012 03:00 PM, ? wrote:
> HI, guy,
>
> Thanks for your reply, I add the file /etc/hostid, and get a fixed hostid
> value.
>
> But, can you please tell me why my hostid will change when there is not
> /etc/hostid.
>
> Thx.
>
>
>
> On 07/22/2012 04:44 AM, wrote:
>> HI, guy,
>>
>> Can you tell me how the "hostid" command work? or how can I control my
>> "hostid"?
>>
>> Why my output from "hostid " switch around "0a799228", "0a799a28",
>> "0a799328" randomly?
>>
>> Here are lists of my "hostid" information, if any other information needed,
>> please just mail me directly.
>>
>> Hope to get you reply soon, thanks.
>>
>> address@hidden ~]$ hostid
>> 0a799228
>> address@hidden ~]$ hostid
>> 0a799a28
>> address@hidden ~]$ hostid
>> 0a799328
>> address@hidden ~]$ rpm -q coreutils
>> coreutils-8.4-19.el6.i686
>> address@hidden ~]$ rpm -q centos-release
>> centos-release-6-3.el6.centos.9.i686
>> address@hidden ~]$ which hostid
>> /usr/bin/hostid
>> address@hidden ~]$ ldd /usr/bin/hostid
>> linux-gate.so.1 => (0x00dc0000)
>> libc.so.6 => /lib/libc.so.6 (0x00902000)
>> /lib/ld-linux.so.2 (0x008dc000)
>> address@hidden ~]$
>
>
> ------------------ ???????? ------------------
> ??????: "GNU bug Tracking System"<address@hidden>;
> ????????: 2012??7??22??(??????) ????8:12
> ??????: " e nQQ "<address@hidden>;
>
> ????: bug#12023: closed (Re: bug#12023: bug of hostid cmd ?)
>
>
>
> Your bug report
>
> #12023: bug of hostid cmd ?
>
> which was filed against the coreutils package, has been closed.
>
> The explanation is attached below, along with your original report.
> If you require more details, please reply to address@hidden
glibc is operating like this shell script.
You can run it to check your system:
echo "
from socket import gethostname as hostname
from socket import gethostbyname as ip
for i in range(10):
print ''.join('%02x' % int(x) for x in ip(hostname()).split('.'))
" | python | uniq -c
cheers,
P??draig.