Get serial number of AIX

Get the serial number of an AIX system.

#!/bin/ksh

Get serial number of AIX server;

October 28, 2009 Rich Kreider

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}

Published At
Tagged with