Operating System - HP-UX
1837250 Members
2462 Online
110115 Solutions
New Discussion

Re: Serial number for machine

 
SOLVED
Go to solution
malki_3
Frequent Advisor

Serial number for machine

Is there any command for displaying the serial number of tha machine
Thanks
9 REPLIES 9
Stefan Farrelly
Honored Contributor

Re: Serial number for machine


On N's, L's and A's and R's you can

do;echo "sel path system\ninfolog\nexit"|cstm|grep "System Serial Number"


Im from Palmerston North, New Zealand, but somehow ended up in London...
malki_3
Frequent Advisor

Re: Serial number for machine

My machine is D380
Stefan Farrelly
Honored Contributor
Solution

Re: Serial number for machine


You cant see your serialnumber online on a D class, you will have to take a look at the physical machine - I think the serialnumber is on a label on the back.
Im from Palmerston North, New Zealand, but somehow ended up in London...
BFA6
Respected Contributor

Re: Serial number for machine

Hi,

On our D's the serial number is on a sticker inside the door on the front.

Regards,

Hilary
Peter Kloetgen
Esteemed Contributor

Re: Serial number for machine

Hi Malki,

i'm sitting in front of some D-classes here, the serial numbers are on a sticker inside the front door of the computers.

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
malki_3
Frequent Advisor

Re: Serial number for machine

Thanks for yours reply
Ok I needed the command for displaying this information because I have some machine on the remote site
Nick Wickens
Respected Contributor

Re: Serial number for machine

If its any use for your purpose there is a unique Machine ID number which is accessable with the command uname -i.

Its not the serial number unfortunatly but I have found it usefull to ensure I am running a script on the intended machine (ie where you may have the situation of not wanting to run the script on a machine with the same hostname - maybe during disaster recoveries.)

Hats ? We don't need no stinkin' hats !!
harry d brown jr
Honored Contributor

Re: Serial number for machine

If it's a remote machine, you have to rely on someone at that site to read it.

live free or die
harry
Live Free or Die
Chris Wilshaw
Honored Contributor

Re: Serial number for machine

If you have Predictive Support installed and configured on your system, you can try

cd /opt/pred/bin
head -2 psaction | tail -1 | awk '{print $9}'