1832305 Members
2351 Online
110041 Solutions
New Discussion

Retrieving Serial Number

 
SOLVED
Go to solution
Roberto Volsa
Frequent Advisor

Retrieving Serial Number

Hello
i would like to know which comand to run on every HPUX server in order to retrieve the server's serial number.
Primnt_manifest not always does the job, and SAM cannot be used in a script.
I know that cstm should be available on all HOUX servers, thus it should be good in order to use the same script everywhere.
Is it the case?
Which options should ise with cstm in order to retrieve the serial number?

thanks in advance
RV
7 REPLIES 7
Sandeep_Chaudhary
Trusted Contributor
Solution

Re: Retrieving Serial Number

"getconf MACHINE_SERIAL"

This will give u serial number
SKR_1
Trusted Contributor

Re: Retrieving Serial Number

machinfo

Thanks

SKR
SKR_1
Trusted Contributor

Re: Retrieving Serial Number

Roberto Volsa
Frequent Advisor

Re: Retrieving Serial Number

Thanks Sandeep,
it works on many server, but in some case not: it gives a blank line also if getconf has MACHINE_SERIAL as an option. It seems that getconf works as print_manifest, and infact print_manifest not always gives the serial.

stm works on every server, this is why i prefer it.
Roberto Volsa
Frequent Advisor

Re: Retrieving Serial Number

I found it

echo "selclass qualifier system;info:wait;infolog"|cstm| grep "System Serial"

it wokrs indifferently on all servers, also where print_manifest and getconf don't work.
Roberto Volsa
Frequent Advisor

Re: Retrieving Serial Number

solution found
Jeeshan
Honored Contributor

Re: Retrieving Serial Number

this is the at a glance command to get machine serial number

#getconf CS_MACHINE_SERIAL
a warrior never quits