Operating System - HP-UX
1836455 Members
2628 Online
110101 Solutions
New Discussion

Re: For Hp-Ux how is the corrisponding command Solaris "hostid"?

 

For Hp-Ux how is the corrisponding command Solaris "hostid"?

We need the corrisponding "hostid" command for HP-UX
10 REPLIES 10
Mark Grant
Honored Contributor

Re: For Hp-Ux how is the corrisponding command Solaris "hostid"?

Try

echo `uname -i` 16op | dc
Never preceed any demonstration with anything more predictive than "watch this"
twang
Honored Contributor

Re: For Hp-Ux how is the corrisponding command Solaris "hostid"?

# uname -i
T G Manikandan
Honored Contributor

Re: For Hp-Ux how is the corrisponding command Solaris "hostid"?

# /opt/ifor/ls/bin/i4target -v
T G Manikandan
Honored Contributor

Re: For Hp-Ux how is the corrisponding command Solaris "hostid"?

hostid is the command on solaris to get the hostid.

On hpux you can get the ethernet address using lanscan.

i4target can also be taken which is not the hostid but is unique and can be used to get the license for a product.
Mark Grant
Honored Contributor

Re: For Hp-Ux how is the corrisponding command Solaris "hostid"?



That's an interesting one. Does anyone know the difference between the outputs. I know that "echo `uname -i` 16op | dc" is a direct equivalent of Solaris "hostid" but TG's solution gives us a completely different answer. hmmm
Never preceed any demonstration with anything more predictive than "watch this"
T G Manikandan
Honored Contributor

Re: For Hp-Ux how is the corrisponding command Solaris "hostid"?

What I did mention was not to extract the hostid but the id which is extracted to obtain license for softwares.

Infact your answer would be the right one.
Ravi_8
Honored Contributor

Re: For Hp-Ux how is the corrisponding command Solaris "hostid"?

Hi

Propably there is no command in hp similar to hostid in solaris. In solaris it's used to tie the license (same as in clearcase license). where as in hp license is floating it's not tied to hostname/hostid/serial number.

you can use any of the posted answers
never give up
Bharat Katkar
Honored Contributor

Re: For Hp-Ux how is the corrisponding command Solaris "hostid"?

Hi,
Although hostid in Solaris and uname -i in HPUX returns Machine Identification Number but significance of the same is different on this two platforms.

In HP what matter is the Serial No./Model/ProdcutNo in order to reveal the identity of any particular machine.

Regards,
You need to know a lot to actually know how little you know
RAJESH GANGADHARAN
Regular Advisor

Re: For Hp-Ux how is the corrisponding command Solaris "hostid"?

most of the time hostid is used for Lcesing purpose,
similar stuff in HP is i4ls
run
/opt/ifor/ls/bin/i4target

Let the choices you make today be the choices you can live with tomorrow.
Dave Hutton
Honored Contributor

Re: For Hp-Ux how is the corrisponding command Solaris "hostid"?

Figured I would post this link. It seems pretty handy when it comes to what command does what in different flavors of unix.
http://www.bhami.com/rosetta.html

It was posted here a while back, I wish I could give credit to who had posted it before =)


Dave