Tuesday, May 21, 2013

Solaris - Find out the serial number of the server?


How to find out the serial number of the server by running prtdiag command?
root@Server1:~ # prtdiag -v > /var/tmp/prtdiag.out; sed -n '/^Ch/{p;n;n;p;}' /var/tmp/prtdiag.out; rm /var/tmp/prtdiag.out
Chassis Serial Number
0000XXX000

No comments: