#!/bin/ksh # # Written by: Chuck Spilman 12/08/2002 # # Description: # The few lines below will get the serial number for the system it is # being run. This is good to put on remote servers that you don't know # the serial number of. # 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}