1847416 Members
3065 Online
110264 Solutions
New Discussion

Host ID on HP-UX

 
SOLVED
Go to solution
Manjunath Shastry
Frequent Advisor

Host ID on HP-UX

I have an Application which uses a Host ID. I would like to know, if is there anything specific called HOST ID from the Operating System point of view and If there 's one, how do I get it ?

Would appreciate your help.

A Horse that kicks doesn 't pull
10 REPLIES 10
S.K. Chan
Honored Contributor
Solution

Re: Host ID on HP-UX

It's also called LAN Addr and you can use this command to get it ..
# lanscan
The 2nd column under "Station Address" .. it usually starts with "0x0800..."
Pete Randall
Outstanding Contributor

Re: Host ID on HP-UX

Are you referring to hostname?
The hostname command will give you the name of the host.

Pete

Pete
Patrick Wallek
Honored Contributor

Re: Host ID on HP-UX

Yes, there is a HOST ID. You can get it by doing a 'uname -i'. This is also called the machine id number. Do a 'man uname' for more info.
A. Clay Stephenson
Acclaimed Contributor

Re: Host ID on HP-UX

I should also mention that uname -i returns the hostid returned by the gethostid() system call.
If it ain't broke, I can fix that.
S.K. Chan
Honored Contributor

Re: Host ID on HP-UX

On the other hand .. you might be talking about the "machine ID" .. ? If that's the case ..
# uname -i
would give you that.
Denver Osborn
Honored Contributor

Re: Host ID on HP-UX

There's a "machine id" that should be a unique number for each host... you can use "uname -i" to obtain the machine id.

Hope this helps,
-denver
Jose Mosquera
Honored Contributor

Re: Host ID on HP-UX

Hi,

You can obtain the host ID number by:

#uname -i

The "-i" option display the machine identification number (or the node name, if the machine identification number cannot be determined).

Rgds.
Sridhar Bhaskarla
Honored Contributor

Re: Host ID on HP-UX

Hi Manjunath,

uname -i gives the machine identification number.

For licenses through ifor you would be using

/opt/ifor/ls/bin/i4target

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: Host ID on HP-UX

Typically that means the MAC address of the network card; lanscan can give that. You might also be referring to the ID needed for some software licensing. /opt/ifor/ls/bin/i4target will give one value.
If it ain't broke, I can fix that.
Manjunath Shastry
Frequent Advisor

Re: Host ID on HP-UX


Thank you for the help. The application Hypermesh is arriving at a number after a calculation which netither matches with the output of uname -i or lanscan. I have a backup of the file and let me not worry about it.
A Horse that kicks doesn 't pull