Device42 supports auto-discovery of hardware warranties for easy tracking within Device42.
The Device42 warrranty autodiscovery and management tools will find and help you keep track of your hardware warranties from Dell, Lenovo, HP Inc., and IBM. The functionality originally started as a standalone script, which still functions, and is now integrated into the main UI (see Discovery –> Warranty Sync).
To configure automatic warranty discovery, you’ll need to simply request API keys from the vendors that require them (currently Dell and HP, links below), and once you’ve provided Device42 with your API access keys, simply let Device42 loose! As long as your device CI’s have a mdoel and serial number present so Device42 knows what vendor to ask, and the ID of the machine, warranty autodiscovery does the rest, automatically discovering and populating your hardware’s service contract information.
Detailed Warranty AutoDiscover Setup Instructions
- HP (Hewlett Packard)
API Keys, Configuration and Prerequisites:
- In order for the script to successfully retrieve warranty information of a given device. The device’s model and serial must be correctly entered or discovered.
- If using the script, Python 2.7 must be installed along with the python library requests.
- The Device42 Model field must be set to one of the following: “Dell”, “Hewlett Packard”, “IBM” or “Lenovo”.
- A Dell API key must be obtained to enable Device42 to retrieve warranty information from Dell. Instructions to obtain a Dell API key are available (in PPT format) from here: http://en.community.dell.com/dell-groups/supportapisgroup/m/mediagallery/20428185
- An HP API key must be obtained to enable Device42 to retrieve HP warranty information. Instructions to obtain HP API key: https://developers.hp.com/css-enroll
Configuring a Job / API key Example
- From the TOOLS menu–> Autodiscovery –> Warranty Sync, Choose “Add Warranty Check” and name your job.
- Choose a vendor, and if your vendor is Dell or HP, choose your API key. You can store it from the “access key” screen by clicking the magnifying glass, and adding it as such:
- Choose your order number generation option, set a schedule if desired, and save the job.
- Go ahead and run the job!
As long as your API key is active, devices have valid model, vendor, and serial information the sync will gather warranty information. On each Device in the “LifeCycle” tab or Datacenter > Purchases, you will find past and present warranty information. This includes O/home/device42/d42/docs/media/images/autodiscovery/warranty-discovery-management/rder details, contract/service types, and dates.
If you are using the STANDALONE Script:
- Create working directory. Copy files in Device42’s GitHub warranty_check Repo
- Copy warranty.cfg.example to warranty.cfg
- Set the required parameters in warranty.cfg [D42 instance info & API keys]:
[device42] # set Device42 params username = password = url = [dell] # set api_key as provided by Dell api_key = url = https://sandbox.api.dell.com/support/assetinfo/v4/getassetwarranty [hp] # set api_key as provided by HP api_key = api_secret = url = https://css.api.hp.com
- Run the script! [ $ python starter.py ]
Obtaining the standalone script (note: may be depreciated in the future)
As noted, the functionality is now built into the main UI:
The latest version of the standalone script can be downloaded from GitHub