How to convert a Dell Service Tag to an Express Service Code?

The Dell Service Tag is just a base 36 number (10 digits + 26 letters). If you convert it to a base 10 number, you get the Express Service Code.

To do so, from a python console you can just type (credits to MikeyB):

int("SRVCTAG",36)

Also, here is a simple PHP web page for doing so.

<?php
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Conversion Service Tag => Express Service Code (Dell)</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>

<h1>Conversion Service Tag => Express Service Code (Dell)</h1>

<p>
<form action="" method="get">
Service Tag : <input type="text" name="st" value="<?php echo isset($_GET['st']) ? $_GET['st'] : ''; ?>" autofocus="autofocus" />
<input type="submit" value="Get Express SC" />
</form>
</p>

<?php
if( isset($_GET['st']) && ctype_alnum($_GET['st']) && strlen($_GET['st']) == 7 ) {
    $st = strtoupper($_GET['st']);
    $esc = base_convert($st, 36, 10); // convert from base 36 to base 10
    echo "<p>Express Service Code : $esc</p>";
}

?>

</body>
</html>

I am licensing this code under the GNU GPL licence version 2 or above, and the licence used on the stackexchange network, whichever you prefer.


There is a number of sites that would do this... Google is your answer, but here is a few direct from Dell site themselves..

http://support.dell.com/support/topics/global.aspx/support/my_systems_info/express_service_code?DoNotRedirect=y

http://www.dell.com/support/troubleshooting/us/en/19/Expressservice