Can you find dell service tag from cli on Linux and Windows server?

Is it possible to get Dell service tag from command-line (CLI) on both Linux (RHEL server) and Windows server? I need both Dell Service Tag and Serial Number.

Yes, you can get Dell server, desktop or laptop service tag including serial number from the command-line (CLI).

Finding Dell service tag on Linux

Run the following as root user:

for d in system-manufacturer system-product-name system-serial-number bios-release-date bios-version 
do    
  echo "${d^} : " $(sudo dmidecode -s $d)
done

See my page for more info:

Locating your Dell system service tag using Windows command prompt

  1. Type cmd in the Windows search bar at the bottom-left of the screen
  2. Select Command Prompt from the list of results.
  3. In the Command Prompt window, type:
    wmic bios get serialnumber
  4. Make sure your press they Enter key. The Dell Service Tag (Serial Number) displays on screen. Try the following commands on Windows too:
wmic csproduct get vendor,name,identifyingnumber
wmic /user:administrator /node:remote-server-host-ip bios get serialnumber
2 Likes

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki