1833875 Members
1972 Online
110063 Solutions
New Discussion

Re: Serial number

 
Nitsulenko Sergey
Frequent Advisor

Serial number

Hello!
How to get Serial Number (I don't have file /usr/local/etc/serial_number) and System Handle in HP-UX 11.0?

Thank's.
sin
9 REPLIES 9
T G Manikandan
Honored Contributor

Re: Serial number

If you are working with L or N or V class you can see their serial nunber using Support tools Manager(STM).

Else you need to take that down physically from the server.

Pete Randall
Outstanding Contributor

Re: Serial number

Serial Number:

/usr/sbin/cstm -> map -> sel dev 1 -> info ->infolog


System Handle:

You'll have to read that off your support contract or contact the Response Center - with the serial number, they can tell you the Handle.


Pete

Pete
Bill Hassell
Honored Contributor

Re: Serial number

The file /usr/local/etc/serial_number is not found in HP-UX (unless you manually create the file. stm (cstm, etc) are the Support Tools and are part of the online diagnostics...which may be installed on your system, or not. I would recommend to always install the Online Diags.

The serial number is electronically readable only on newer computers. Note that the serial number and System Handle are all part of a support contract with HP and this info should be written into your support notebook (all sysadmins should keep a support notebook). For older computers, you'll have to crawl around in the back (some have the serial number inside the front access door) and write down the computer's number. The System Handle is sent to you when the Support Contract is written.


Bill Hassell, sysadmin
Carlos Fernandez Riera
Honored Contributor

Re: Serial number

See /var/opt/ignite/local/manifest/manifest


also you can Search

serial number

with exact phrase radio button on the forums.
unsupported
Nitsulenko Sergey
Frequent Advisor

Re: Serial number

Thank's for All!
But I should like to get this info from command line if this possible.
(stm already installed).
sin
Pete Randall
Outstanding Contributor

Re: Serial number

As I (and others) have said, you can get the serial number but not the system handle. From the command line, try this:

echo "selclass qualifier cpu;info;wait;infolog" | cstm |grep -i serial


Pete

Pete
Frederic Sevestre
Honored Contributor

Re: Serial number

Hi,

Here is the script I use to get the serial number :

----------------------------------
CSTM=/tmp/SN.cstm

echo "/usr/sbin/cstm << %" > $CSTM
echo "sel dev 1" >> $CSTM
echo "info;wait" >> $CSTM
echo "il" >> $CSTM
echo "done" >> $CSTM
echo "quit" >> $CSTM
echo "ok" >> $CSTM
echo "% " >> $CSTM
chmod +x $CSTM

SN=$($CSTM | grep "System Serial Number" | cut -d: -f2)
echo "The $(hostname) serial number is $SN"

rm $CSTM

exit 0

---------------------------------------

Regards,
Fr??d??ric

Crime doesn't pay...does that mean that my job is a crime ?
P.H. Vogt
Advisor

Re: Serial number


Nice script. Works on N and L class system. however fails on a K class

Old versions of the print_manifest command were able to get the serial number on a K class so it must be possible. Too bad they removed this option in the later versions.
man man
Nitsulenko Sergey
Frequent Advisor

Re: Serial number

Thank You!
sin