| Author |
Message |
mike
Joined: 01 Jan 1970 Posts: 18 Location: USA
|
29 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
|
29 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
|
29 Jul 2002 15:01 linux change hostid |
|
|
|
|
Sorry,
What I need is to change HOSTID not HOSTNAME .
|
|
| Back to top |
|
 |
lipton
Joined: 14 Jul 2002 Posts: 51
|
29 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
|
29 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
|
01 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
|
01 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 < {
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 == {
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
|
20 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

|
20 Apr 2006 17:32 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
louisnells
Joined: 08 May 2006 Posts: 212 Helped: 13
|
25 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
|
12 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
|
15 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.
value to replicate: 0f38c25b
value set by the procedure: f38c25b
Someone tell me how to solve this problem??
My OS is a RedHat Linux.
thanks thanks thanks thanks thanks thanks
|
|
| Back to top |
|
 |
nasatask
Joined: 18 Sep 2009 Posts: 8
|
18 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
|
21 Sep 2009 10:32 linux hostid change |
|
|
|
|
| if allowed by your networkcard driver use bind to mac (...) number !
|
|
| Back to top |
|
 |