Operating System - HP-UX
1834136 Members
2220 Online
110064 Solutions
New Discussion

Unique machine serial number available in 'C' on HP/UX

 
SOLVED
Go to solution
eric eberhard
Occasional Contributor

Unique machine serial number available in 'C' on HP/UX

One more crazy thing I need to finish this port. I need to be able to get the unique machine serial number (I use it for encoding purposes) from HP UX. Is there a simple function to get this? Thanks.
2 REPLIES 2
S.K. Chan
Honored Contributor
Solution

Re: Unique machine serial number available in 'C' on HP/UX

Use the "uname" routine in C.

From OS level ..
# uname -i
harry d brown jr
Honored Contributor

Re: Unique machine serial number available in 'C' on HP/UX

eric,

of course the serial number can be moved from one machine to the next, but no two machines are supposed to have the same serial #.


live free or die
harry
Live Free or Die