Skip to content

Instantly share code, notes, and snippets.

View adam-nielsen's full-sized avatar

Adam Nielsen adam-nielsen

View GitHub Profile
@adam-nielsen
adam-nielsen / get-dell-warranty.sh
Last active January 7, 2019 22:20
Shell script for retrieving Dell warranty expiration by service tag
#!/bin/sh
# Warranty request script for Dell PCs
# Written by Adam Nielsen <adam.nielsen@uq.edu.au>
# This code is in the public domain, and is supplied with no warranty.
#
# This script uses Dell's web service to retrieve the most distant warranty expiration
# date for a given machine, as identified by its service tag. It requires curl and awk.
# It doesn't parse the WSDL or anything nice like that, it just sends a precomposed
# request to the server and extracts the relevant info from the response.