Only view service tags
The following command can be used to view under linux system:
dmidecode -s system-serial-number
In Windows system, the following command can be used to view:
wmic bios get serialnumber
View model, version, UUID, etc.
The following command can be used to view under linux system:
dmidecode -t1
In Windows system, the following command can be used to view:
wmic csproduct get
Use of this information
With this information, you can apply for repairs, check the factory configuration of the machine, the start and end date of the warranty, etc.