Operating System - HP-UX
1819824 Members
3422 Online
109607 Solutions
New Discussion юеВ

Re: Command To Identify the Serial Number Of A System

 
SOLVED
Go to solution
Andrew Kaplan
Super Advisor

Command To Identify the Serial Number Of A System

Aside from going to the machine itself and identifying the serial number that is on the system's label, is there a command that would provide the serial number of an HP system?
A Journey In The Quest Of Knowledge
8 REPLIES 8
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Command To Identify the Serial Number Of A System

On newer boxes if you have OnlineDiag (swlist |grep -i onlinediag), then you can use cstm to find it.

/usr/sbin/cstm << EOF
map
sel dev 1
info
wait
infolog
quit
ok
EOF

Look at Serial Number portion of it. On systems like K-class, you will need to have a physical look at the server.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Cheryl Griffin
Honored Contributor

Re: Command To Identify the Serial Number Of A System

With Diagnostics installed:
# echo "sel path system\ninfolog\nexit"|cstm|grep "System Serial Number"

For newer machines and operating system:
# getconf CS_MACHINE_SERIAL (11.11)
"Downtime is a Crime."
RAC_1
Honored Contributor

Re: Command To Identify the Serial Number Of A System

Apart from cstm, and getconf if you have ignite installed, you can do print _manifest and check.

Anil
There is no substitute to HARDWORK
D.Blond
Frequent Advisor

Re: Command To Identify the Serial Number Of A System

Hello,
Joined piece contains an exe who give SN.
Good luck
D.Blond
Jdamian
Respected Contributor

Re: Command To Identify the Serial Number Of A System

Hi Cheryl and Sidhar.

the cstm commands "sel dev 1" or "sel path system" don't work on HP V series servers because there is no "system" path.
Jakes Louw
Trusted Contributor

Re: Command To Identify the Serial Number Of A System

Print_manifest did not provided the hardware serial number on one of my V-class servers. (Probably because it wasn't manually included in the config files?)

getconf CS_MACHINE_SERIAL
and
getconf MACHINE_SERIAL
both returned null values.
Similarily, interrogation of CSTM gave me nothing.

Looks like you have to walk around the back, and that's my experience with V-class servers as well.
Trying is the first step to failure - Homer Simpson
Ryan McKlveen
Advisor

Re: Command To Identify the Serial Number Of A System

Be careful on the print_manifest - if you've ignited a box to this one - it will have the same s/n as the one you ignited from.
Dave Hutton
Honored Contributor

Re: Command To Identify the Serial Number Of A System

Another option if you have one of the partitionable servers, you can find the serial number by running the /opt/parmgr/bin/parmgr gui. Under 'Complex' -> 'Show complex details'

But the suggestions prior are easier...

Dave