The service tag is a number that equipment manufacturers ask customers for to know which equipment they purchased at the time. This number can be obtained from the command line using the dmidecode command.
dmidecode -s system-serial-number
It can be useful to keep a database of the service tags of our company, through an expect script it would be quite simple to generate the database ;)