Retrieving the Service Tag via DELL iDRAC SSH


If your familiar with the DELL web based iDRAC interface then you will know that navigating it is exceptionally easy. The very first screen gives you access to the key system information such as the Service Tag. But if the web interface is down, you can SSH into the iDRAC and retrieve the same information using the iDRAC SM-CLP Command Line Interface.

SSH to the iDRAC IP:

ssh root@123.45.67.89
root@123.45.67.89’s password:

Once you have logged in, you will get a prompt /admin1->

Type the following command lines to show the service tag:

cd hdwr2
cd chassis1
show

The output will look like this:

/admin1-> cd hdwr2
 /admin1/hdwr2
 /admin1/hdwr2-> show
 /admin1/hdwr2
 properties
 ElementName = Hardware
 associations
 owningcollectionelement :
 OwnedElement = /admin1/hdwr2
 OwningElement = /admin1
 memberofcollection :
 Collection = /admin1/hdwr2
 Member = /admin1/hdwr2/chassis1
 targets
 chassis1
 verbs
 cd
 show
 help
 version
 /admin1/hdwr2-> cd chassis1
 /admin1/hdwr2/chassis1
 /admin1/hdwr2/chassis1-> show
 /admin1/hdwr2/chassis1
 properties
 ChassisPackageType = 17 (Main System Chassis)
 ElementName = DCIM PowerEdge R620 Chassis
 Manufacturer = Dell Inc.
 Model = PowerEdge R620
 PackageType = 3 (Chassis/Frame)
 PartNumber = 0PXXHPA03
 SKU = CN7475134A0953
 SerialNumber = CFVR8X1
 VendorCompatibilityStrings = NULL
 associations
 memberofcollection :
 Collection = /admin1/hdwr2
 Member = /admin1/hdwr2/chassis1
 computersystempackage :
 Antecedent = /admin1/system1
 Dependent = /admin1/hdwr2/chassis1
 PlatformGUID = 4c4c9944-0146-5310-8152-c3c04f385771
 elementconformstoprofile :
 ConformantStandard = /admin1/profiles2/profile3
 ManagedElement = /admin1/hdwr2/chassis1
 targets
 verbs
 cd
 show
 help
 version
 /admin1/hdwr2/chassis1->

The “Serial Number” field is the Service Tag: