To get Serial and Product Number from command on Windows.
Go to > Start > Run type > cmd >
wmic bios get serialnumber
wmic csproduct get name, identifyingnumber

To get Serial from command in Ubuntu
#sudo dmidecode -s system-serial-number

To get Serial and Product Number from command in Linux(Redhat/CentOS/Fedora/SuSe)
#sudo dmidecode -t 1 | egrep -i "serial|product"

To get Serial from command in HP-UX:
#sudo echo "selclass qualifier system;info;wait;infolog" | /usr/sbin/cstm | grep -i "System serial"

To get Serial from command in Solaris 10 (SPARC or x86)
#sudo /usr/sbin/prtdiag -v | egrep "Chassis Serial Number"

Feedbacks: We appreciate your feedbacks and suggestions about our website bala@techgyaan.org
Check out . Follow @techgyaan