electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Change hostid ?


Post new topic  Reply to topic    EDAboard.com Forum Index -> Linux Software -> Change hostid ?
Author Message
mike



Joined: 01 Jan 1970
Posts: 18
Location: USA


Post29 Jul 2002 12:12   

change hostid red hat


Hi,
I want to install some EDA tools to several pcs.
Every Pc shows different host id.
It is difficult for me to maintain lic for each PC.
Is there any method to change host id for Redhat 7.3 ?

Sincerely,
Back to top
lipton



Joined: 14 Jul 2002
Posts: 51


Post29 Jul 2002 14:52   

linux hostid


Look here : http://www.elektroda.pl/eboard/viewtopic.php?p=111244#111244

And use search next time.
Back to top
mike



Joined: 01 Jan 1970
Posts: 18
Location: USA


Post29 Jul 2002 15:01   

linux change hostid


Sad
Sorry,
What I need is to change HOSTID not HOSTNAME .
Back to top
lipton



Joined: 14 Jul 2002
Posts: 51


Post29 Jul 2002 16:23   

change hostid


What do you mean HOSTID ? Is that serial number of your HD ? MAC Adress ? EDA programs define HOSTID differently.
Back to top
promethe



Joined: 20 Apr 2002
Posts: 27


Post29 Jul 2002 20:48   

change hostid linux


Hello Mike ,

If your HOSTID is the MAC ADDRESS of your ethernet card you may give
a look at this topic
h**p://www.elektroda.pl/eboard/viewtopic.php?t=25188
*->t
else , you can try to generate license files (with E*F*A*L*i*c*g*e*n)
with HOSTID=ANY .

Good luck
Back to top
liux100



Joined: 31 Jul 2002
Posts: 44
Helped: 1


Post01 Aug 2002 1:14   

hostid redhat


changing the hostid on linux pc is very ease, and this change is permanent, you can use only one line program to resolve it. but now I forget the source file. I will give it to you after a moment.
Back to top
liux100



Joined: 31 Jul 2002
Posts: 44
Helped: 1


Post01 Aug 2002 6:04   

redhat hostid ändern


#include <stdio.h>
#include <ctype.h>
#include <unistd.h>

int main(int argc, char *argv[])
{
int i;
unsigned long id;
char *str;

printf("Hostid tool for Linux/x86 platform\n");
if (argc < 2) { Thu Aug 1 12:43:36
CST 2002
id = gethostid();
printf("Hostid is: %X\n", id);
exit(0);
}

str = argv[1];
id = 0l;
i = 0;
while (str[i] && i < Cool {
if (isdigit(str[i])) id = (id << 4) + str[i] - '0';
else if (isxdigit(str[i]))
id = (id << 4) + toupper(str[i]) + 10 - 'A';
else break;
++i;
}

if ( i == Cool {
sethostid(id);
printf("Hostid changed to: %X\n", id);
} else printf("Error : incorrect hostid (%s)\n", str);

}
Back to top
ilamseeker



Joined: 07 Apr 2006
Posts: 45
Helped: 1


Post20 Apr 2006 17:32   

redhat hostid


i think that the graphical tool is much much better...ie network device management
Back to top
Google
AdSense
Google Adsense




Post20 Apr 2006 17:32   

Ads




Back to top
louisnells



Joined: 08 May 2006
Posts: 212
Helped: 13


Post25 May 2006 6:12   

hostid change


You may get your HOSTNAME from /etc/hostname.
Back to top
jsaenz



Joined: 09 Feb 2008
Posts: 8
Location: Colombia


Post12 Sep 2008 18:32   

change host id


To change the host ID, try to type the following statements in bash:

ifconfig eth0 down
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
ifconfig eth0 up

The above statements are only valid if u interface is eth0=Ethernet0
Back to top
trex32



Joined: 13 May 2009
Posts: 1


Post15 May 2009 15:09   

changer hostid linux redhat


Hi all, I've used the script above, but I have to replicate an hostid of another machine that starts with a 0; and when I try to modify the value my hostid was set without the first 0. I've tried all in my possibilities and I've googled a lot but without benefits.Crying or Very sad

value to replicate: 0f38c25b
value set by the procedure: f38c25b



Someone tell me how to solve this problem??Rolling Eyes
My OS is a RedHat Linux.
thanks thanks thanks thanks thanks thanks
Back to top
nasatask



Joined: 18 Sep 2009
Posts: 8


Post18 Sep 2009 18:17   

how to change hostid linux


wow, does answers of 2009 still work to problem of 2002 ?
Back to top
eld03



Joined: 29 Dec 2007
Posts: 16


Post21 Sep 2009 10:32   

linux hostid change


if allowed by your networkcard driver use bind to mac (...) number !
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Linux Software -> Change hostid ?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
How to change 'hostid' ? (4)
how to change hostid of unix workstation? (5)
howto change the hostid under linux. (8)
Change in HOSTID of the machine stopped Synopsys DC (4)
Hostid in a Linux machine (24)
linux hostid and lmhostid (6)
[Help] About the Linux hostid (7)
Synplify get hostid problem under RH Linux 8.0 (2)
what are your Linux machine hostid? (5)
Change hostname ? (5)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS