Operating System - HP-UX
1833788 Members
2574 Online
110063 Solutions
New Discussion

System Serial Number ? Help needed.

 
SOLVED
Go to solution
rveri
Super Advisor

System Serial Number ? Help needed.

Hi All ,

How to find out system serial number if cstm is not installed.

Please help asap.

Thanks.
22 REPLIES 22
Patrick Wallek
Honored Contributor

Re: System Serial Number ? Help needed.

Go and look at the system.
Jeff_Traigle
Honored Contributor

Re: System Serial Number ? Help needed.

You can try print_manifest.
--
Jeff Traigle
DCE
Honored Contributor

Re: System Serial Number ? Help needed.

If you down load lsof from this site (it is free) there is a utility included that will read the system SN

http://gatekeep.cs.utah.edu/hppd/hpux/
Devender Khatana
Honored Contributor

Re: System Serial Number ? Help needed.

Hi,

#/opt/ignite/bin/print_manifest

do not display Serial no. of machine.
Instead you can try

#getconf MACHINE_SERIAL

HTH,
Devender
Impossible itself mentions "I m possible"
Sanjay_6
Honored Contributor

Re: System Serial Number ? Help needed.

What is the model & OS.

If this is a itanium running 11.23 you can try /usr/contrib/bin/machinfo.


Hope this helps.

Regds
Uday_S_Ankolekar
Honored Contributor

Re: System Serial Number ? Help needed.

If stm is not installed probably you will have to physically look at the system to get the serial number.

Or may be if you didn't overwrite the factory built OS, then print_manifest can retrieve the Serial number from the seed file.

If OS ver 11.32 you can use getconf command

What is the hardware??

-USA..
Good Luck..
rveri
Super Advisor

Re: System Serial Number ? Help needed.

OS is B.11.00

Thanks.
James R. Ferguson
Acclaimed Contributor

Re: System Serial Number ? Help needed.

Hi Rveri:

Serial number aside, you *should* have the OnlineDiag (Support Tools --- 'stm'/'cstm'/'mstm') bundle installed for all its benefits!

Regards!

...JRF...

rveri
Super Advisor

Re: System Serial Number ? Help needed.

Devender ,
Here is the output:

# getconf MACHINE_SERIAL
getconf MACHINE_SERIAL: Invalid argument

# uname -a
HP-UX sysmp01 B.11.00 A 9000/800 690379383 two-user license

-----------------
Jeff,

Also here is :
/opt/ignite/bin/print_manifest output:

System Information

Your Hewlett-Packard 9000 computer has software installed and
configured as follows.

The system was created February 06, 2002, 12:27:45 EST.
It was created with Ignite-UX revision B.2.6.6.

-------------------------------------------------------------
NOTE: You should retain this information for future reference.
-------------------------------------------------------------


System Hardware

Model: 9000/800/N4000-55
Main Memory: 4096 MB
Processors: 4
OS mode: 64 bit
LAN hardware ID: 0x00306E096054
LAN hardware ID: 0x00306E06031B
LAN hardware ID: 0x00306E060343
LAN hardware ID: 0x00306E06A3CA
Software ID: 690379383
Keyboard Language: Not_Applicable

Storage devices HW Path Interface
HP DVD-ROM 305 0/0/1/0.1.0 SCSI C895 Ultra Wide Single-Ended
EMC SYMMETRIX floppy 1/10/0/0.98.40.19.4.EMC SYMMETRIX
...
...



I am in a remote location and unable to see the server s/n by just viewing server backside.


And still unable to get the system serial number.

Is there any other way. (OS : hp-ux B.11.00 )

Thanks,



rveri
Super Advisor

Re: System Serial Number ? Help needed.

Devender ,

( OS is : hp-ux B.11.00 , 9000/800/N4000-55 )

Here is the output:

# getconf MACHINE_SERIAL
getconf MACHINE_SERIAL: Invalid argument

# uname -a
HP-UX sysmp01 B.11.00 A 9000/800 690379383 two-user license

-----------------
Jeff,

Also here is :
/opt/ignite/bin/print_manifest output:

System Information

Your Hewlett-Packard 9000 computer has software installed and
configured as follows.

The system was created February 06, 2002, 12:27:45 EST.
It was created with Ignite-UX revision B.2.6.6.

-------------------------------------------------------------
NOTE: You should retain this information for future reference.
-------------------------------------------------------------


System Hardware

Model: 9000/800/N4000-55
Main Memory: 4096 MB
Processors: 4
OS mode: 64 bit
LAN hardware ID: 0x00306E096054
LAN hardware ID: 0x00306E06031B
LAN hardware ID: 0x00306E060343
LAN hardware ID: 0x00306E06A3CA
Software ID: 690379383
Keyboard Language: Not_Applicable

Storage devices HW Path Interface
HP DVD-ROM 305 0/0/1/0.1.0 SCSI C895 Ultra Wide Single-Ended
EMC SYMMETRIX floppy 1/10/0/0.98.40.19.4.EMC SYMMETRIX
...
...



I am in a remote location and unable to see the server s/n by just viewing server backside.


And still unable to get the system serial number.

Is there any other way to find it out.

Thanks,



Jeff_Traigle
Honored Contributor

Re: System Serial Number ? Help needed.

Install OnlineDiag so you have cstm available. It doesn't require a reboot so you can do it while the system is being used.
--
Jeff Traigle
Rick Garland
Honored Contributor

Re: System Serial Number ? Help needed.

The utility 'cfg2html' will work on PA-RISC as well as ia64 systems.

It includes the serial number of the server.

Working at remote location, this utility (cfg2html) or something similar, is an indepensible tool.

Get the serial number and more! Much, much more!
Raj D.
Honored Contributor

Re: System Serial Number ? Help needed.

Hi ,

you can install OnlineDiag , and run this command :

# echo "selclass qualifier system;info;wait;infolog" | /usr/sbin/cstm | grep "System Serial Number"


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Devender Khatana
Honored Contributor

Re: System Serial Number ? Help needed.

Hi,

The agrument error in getconf in because of different OS versions. Try

#man getconf

on your system to find exact argument. I do not have any 11.00 system to check that.

HTH,
Devender
Impossible itself mentions "I m possible"
rveri
Super Advisor

Re: System Serial Number ? Help needed.

Devender ,
there is no paramer I found from getconf manpage , that can show the serial number.

MACHINE_MODEL found , but it shows the model name only.

Here is the details attached:

-----------------------------------------
Other supported inquiries include the following:

ARG_MAX _POSIX_CHILD_MAX POSIX2_C_DEV
BC_BASE_MAX _POSIX_JOB_CONTROL POSIX2_EXPR_NEST_MAX
BC_DIM_MAX _POSIX_NGROUPS_MAX POSIX2_FORT_DEV
BC_SCALE_MAX _POSIX_OPEN_MAX POSIX2_FORT_RUN
BC_STRING_MAX _POSIX_SAVED_IDS POSIX2_LINE_MAX
CHILD_MAX _POSIX_SSIZE_MAX POSIX2_LOCALEDEF
CLK_TCK _POSIX_STREAM_MAX POSIX2_RE_DUP_MAX
COLL_WEIGHTS_MAX _POSIX_TZNAME_MAX POSIX2_SW_DEV
CS_PATH _POSIX_VERSION POSIX2_VERSION
EXPR_NEST_MAX POSIX2_BC_BASE_MAX RE_DUP_MAX
LINE_MAX POSIX2_BC_DIM_MAX SC_PASS_MAX
NGROUPS_MAX POSIX2_BC_SCALE_MAX SC_XOPEN_VERSION
OPEN_MAX POSIX2_BC_STRING_MAX STREAM_MAX
PATH POSIX2_COLL_WEIGHTS_MAX TZNAME_MAX
_POSIX_ARG_MAX POSIX2_C_BIND
CHARCLASS_NAME_MAX CHAR_BIT CHAR_MAX
CHAR_MIN NZERO POSIX2_CHAR_TERM
POSIX2_C_VERSION POSIX_OPEN_MAX POSIX_PATH_MAX
POSIX_PIPE_BUF POSIX_SAVED_IDS POSIX_SSIZE_MAX
POSIX_STREAM_MAX POSIX_TZNAME_MAX POSIX_VERSION
SCHAR_MAX SCHAR_MIN INT_MAX
INT_MIN LONG_BIT LONG_MAX
LONG_MIN MB_LEN_MAX NL_NMAX
NL_ARGMAX NL_LANGMAX NL_MSGMAX
NL_SETMAX NL_TEXTMAX POSIX2_UPE
POSIX_ARG_MAX POSIX_CHILD_MAX POSIX_JOB_CONTROL
POSIX_LINK_MAX POSIX_MAX_CANON POSIX_MAX_INPUT
POSIX_NAME_MAX POSIX_NGROUPS_MAX SHRT_MAX
SHRT_MIN SSIZE_MAX TMP_MAX
UCHAR_MAX UINT_MAX ULONG_MAX
USHRT_MAX WORD_BIT XOPEN_VERSION
XOPEN_XCU_VERSION XOPEN_XPG2 XOPEN_XPG3
XOPEN_XPG4 CPU_CHIP_TYPE KERNEL_BITS
HW_CPU_SUPP_BITS MACHINE_MODEL HW_32_64_CAPABLE
XBS5_ILP32_OFF32_CFLAGS XBS5_ILP32_OFF32_LDFLAGS

Hewlett-Packard Company - 2 - HP-UX Release 11.00: October 1997
-----------------------------

thanks,
Rick Garland
Honored Contributor

Re: System Serial Number ? Help needed.

Get cfg2html
This will get the serial number.
http://come.to/cfg2html
Andy Torres
Trusted Contributor

Re: System Serial Number ? Help needed.

One gotcha to note regarding cfg2html output.
If you installed this server from an Ignite image of another server, the serial number shown in the [ContactInfo_HP_Services] section, as well as the rest of the info in that section, will be the originating server's information.

I think your best bet is to install Diags and use cstm.
Bill Hassell
Honored Contributor

Re: System Serial Number ? Help needed.

The serial number is *NOT* electronically available with any tool on older machines. The N4000 (the computer reported above) is right in the middle of the transition to add S/N as a readable value inside the processor ROMs. Newer rp boxes have this feature built-in but otherwise, the sticker on the machine is all there is. And as mentioned, not having Online Diagnostics installed is definitely not recommended for production machines.


Bill Hassell, sysadmin
JPMC Patches
New Member
Solution

Re: System Serial Number ? Help needed.

For HP-UX 11.11 try /usr/bin/getsn. Must be executed as root. This will return the serial number for newer hardware.
rveri
Super Advisor

Re: System Serial Number ? Help needed.

Thanks Bill ,Charlie
Well.
hp-ux 11.00 L2000-36 , /usr/bin/getsn works very well.
But in N4000-55 , hp-ux 11.00 , there is no getsn in /usr/bin

Thanks .
Raj D.
Honored Contributor

Re: System Serial Number ? Help needed.

Hi ,

You can just copy the binary file from L2000 , and copy it to N4000 , /usr/bin/ directory.

And also keep the permission as root:sys and make it executable # chmod ugo+x getsn

Hope it will work.

Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
rveri
Super Advisor

Re: System Serial Number ? Help needed.

Thanks ,
Its working very good.
Now I can see the serial number of hpux 11.00 ,N4000 , like this :

# cd /usr/bin
# ./getsn
Serial Number: USNM2019V0

Thanks to all.