On Sun, Sep 01, 2002 at 04:17:33AM +0530, Santanu Chatterjee wrote: > > Can someone explain what hostid actually indicates ? On my > linux box, hostid command gives a number. Now, I created a > file /etc/hostid and put a number there. now, hostid command > gives a different number, but not the one I put in the file > /etc/hostid.
hostid is a set of programs coming wuth GNU sh-utils package and also includes things like gethostid and sethostid. These are used to - get or set the unique identifier of the current host. The importance of this unique number is to identify the box (needed on intranets and the like). Changing /etc/hostid manually will not work. You need to run sethostid, and obtain the data. Most distros have this gethostid/ sethostid crippled and may not include them. You need to compile them on your box to get to the bottom of these. You may have to get the source code for sh-utils for this kind of thing. See if you have the man pages for hostid, gethostid, sethostid and gethostbyname installed. The full docs are as info pages. HTH Bish -- : ####[ Linux One Stanza Tip (LOST) ]########################### Sub : Color tag for new mails (mutt tip) LOST #096 Add this entry in /home/<username>/.muttrc :- color index foreground background "~t username ~N" (e.g.: color index brightred black "~t dileep ~N") ####<[EMAIL PROTECTED]>####################################### : ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help