Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get serial number of Machine

Status
Not open for further replies.

jaki

MIS
Feb 21, 2002
32
US
Hi all,

is there any possibility to get the Serial-Number of a RS6000 System running AIX 4.3.3 using a command ?

It's possible to get the S/N of a Harddisk for example by "lscfg -vl hdisk0", but is there any possibility to get the S/N of my whole system without going to the machine and read it ?

thanks in advance

Mark
 
Jaki,

Try

lscfg -vp|grep Machine/Cabinet

farhsyed

 
Hey farhsyed,


thank you very much!! :)

This resoves my problem.


Mark
 
This will also work:

Code:
ser_num=`lsattr -El sys0 -a systemid | awk '{print $2}' | awk -F, '{print $2}'`
prefix=`echo ${ser_num} | cut -c3-4`
suffix=`echo ${ser_num} | cut -c5-9`
echo ${prefix}-${suffix}


Regards,
Chuck
 
Hi

serial # of machine can be obtained

by using either
#lscfg -vp|grep Cabinet

or

uname -m(simply)exculding alphabet and afterwards...

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top