Hi, Does anyone know any users of /usr/bin/hostid? We have a custom one in the util-linux package but upstream coreutils contains a different implementation. Ours prints '0xnumber' while upstream only prints 'number'. Also ours allows to set the hostid and the man page refers to /etc/hostid. However, hostid doesn't actually read that file and there also doesn't seem to be an init script for it either. So I wonder whether we could safely switch to the coreutils version. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue, Feb 23, 2010 at 03:08:29PM +0100, Ludwig Nussel wrote:
Hi,
Does anyone know any users of /usr/bin/hostid? We have a custom one in the util-linux package but upstream coreutils contains a different implementation. Ours prints '0xnumber' while upstream only prints 'number'. Also ours allows to set the hostid and the man page refers to /etc/hostid. However, hostid doesn't actually read that file and there also doesn't seem to be an init script for it either. So I wonder whether we could safely switch to the coreutils version.
Hmmm ... the id its self seems to be calculated from the internet address accordingly to gethostid(2) Beside this for a hexadecimal numbers I prefere 0x as it may happen that a hexadecimal number only consists of numerics between 0 and 9 but misses any numerics between A and F Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Dr. Werner Fink wrote:
On Tue, Feb 23, 2010 at 03:08:29PM +0100, Ludwig Nussel wrote:
Does anyone know any users of /usr/bin/hostid? We have a custom one in the util-linux package but upstream coreutils contains a different implementation. Ours prints '0xnumber' while upstream only prints 'number'. Also ours allows to set the hostid and the man page refers to /etc/hostid. However, hostid doesn't actually read that file and there also doesn't seem to be an init script for it either. So I wonder whether we could safely switch to the coreutils version.
Hmmm ... the id its self seems to be calculated from the internet address accordingly to gethostid(2)
Beside this for a hexadecimal numbers I prefere 0x as it may happen that a hexadecimal number only consists of numerics between 0 and 9 but misses any numerics between A and F
Well, I agree but does our personal preference justify a suse solo effort? The output of hostid from coreutils might be weird but that's what everyone else uses. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue, Feb 23, Ludwig Nussel wrote:
Hi,
Does anyone know any users of /usr/bin/hostid? We have a custom one in the util-linux package but upstream coreutils contains a different implementation. Ours prints '0xnumber' while upstream only prints 'number'. Also ours allows to set the hostid and the man page refers to /etc/hostid. However, hostid doesn't actually read that file and there also doesn't seem to be an init script for it either.
Of course does /usr/bin/hostid read /etc/hostid, only look at strace. Ok, it's not hostid directly, but via gethostid() from glibc.
So I wonder whether we could safely switch to the coreutils version.
Somebody need to check LSB, if the test suite uses this command. The spec doesn't refer to it, but this means nothing. But beside the LSB, I'm not aware of any application using /etc/hostid. It is used on SPARCs to count licenses for third party software, since there the hostid is unique and without modification of the PROM not changeable. But on Linux, this doesn't make any sense. Thorsten -- Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de SUSE LINUX Products GmbH Maxfeldstr. 5 D-90409 Nuernberg -------------------------------------------------------------------- Key fingerprint = 8C6B FD92 EE0F 42ED F91A 6A73 6D1A 7F05 2E59 24BB -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Thorsten Kukuk wrote:
On Tue, Feb 23, Ludwig Nussel wrote:
Does anyone know any users of /usr/bin/hostid? We have a custom one in the util-linux package but upstream coreutils contains a different implementation. Ours prints '0xnumber' while upstream only prints 'number'. Also ours allows to set the hostid and the man page refers to /etc/hostid. However, hostid doesn't actually read that file and there also doesn't seem to be an init script for it either.
Of course does /usr/bin/hostid read /etc/hostid, only look at strace. Ok, it's not hostid directly, but via gethostid() from glibc.
Ah, ok.
So I wonder whether we could safely switch to the coreutils version.
Somebody need to check LSB, if the test suite uses this command. The spec doesn't refer to it, but this means nothing.
If LSB uses hostid and relies on that specific output something must be broken one way or another. But then do other distros actually care about LSB? cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (3)
-
Dr. Werner Fink
-
Ludwig Nussel
-
Thorsten Kukuk