If your machine install the IGNITE software you can use print_manifest , If not you can use cstm (Command line interface to the Support Tool Manager)
bash> echo "selclass qualifier system;info;wait;infolog" | /usr/sbin/cstm | grep "System Serial Number" System Serial Number.......: S**xxxxxx