Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

How to change host id for RedHat 7.3 ?

Status
Not open for further replies.

mike

Junior Member level 1
Joined
Dec 31, 1999
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
USA
Activity points
97
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,
 

mike

Junior Member level 1
Joined
Dec 31, 1999
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
USA
Activity points
97
linux change hostid

:(
Sorry,
What I need is to change HOSTID not HOSTNAME .
 

lipton

Member level 2
Joined
Jul 14, 2002
Messages
46
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
244
change hostid

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

promethe

Junior Member level 3
Joined
Apr 20, 2002
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
146
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
 

liux100

Member level 1
Joined
Jul 31, 2002
Messages
37
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
363
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.
 

liux100

Member level 1
Joined
Jul 31, 2002
Messages
37
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
363
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 < 8) {
if (isdigit(str)) id = (id << 4) + str - '0';
else if (isxdigit(str))
id = (id << 4) + toupper(str) + 10 - 'A';
else break;
++i;
}

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

}
 

ilamseeker

Member level 1
Joined
Apr 7, 2006
Messages
41
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,720
redhat hostid

i think that the graphical tool is much much better...ie network device management
 

louisnells

Full Member level 4
Joined
May 8, 2006
Messages
209
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Activity points
3,027
hostid change

You may get your HOSTNAME from /etc/hostname.
 

jsaenz

Newbie level 4
Joined
Feb 9, 2008
Messages
7
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Location
Colombia
Activity points
1,321
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
 

trex32

Newbie level 1
Joined
May 13, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
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.:cry:

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



Someone tell me how to solve this problem??:roll:
My OS is a RedHat Linux.
thanks thanks thanks thanks thanks thanks
 

nasatask

Newbie level 5
Joined
Sep 18, 2009
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,312
how to change hostid linux

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

eld03

Member level 2
Joined
Dec 29, 2007
Messages
46
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,288
Activity points
1,505
linux hostid change

if allowed by your networkcard driver use bind to mac (...) number !
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top