Warranty Lookup - the manufacturers an asset's warranty can be looked up with * (functions/warranty.php): Dell's and HP's keys, and whether Lenovo's support site is asked. * Each has Save and test, with a serial number to try. Saved by edit_warranty_settings, tested by * test_warranty_lookup (admin/post/settings_warranty.php). */ require_once "includes/inc_all_admin.php"; $warranty_ready = true; try { mysqli_query($mysqli, "SELECT config_warranty_lenovo FROM settings LIMIT 1"); } catch (\Throwable $e) { $warranty_ready = false; } if (!$warranty_ready) { ?>
Warranty lookup arrives with a database update - run it in Maintenance > Update first.
' . '' . '' . '' . ''; }; $state = function ($on, $off_text) { return ($on ? 'On' : '' . escapeHtml($off_text) . '') . ' '; }; echo settingsPageStart('warranty'); ?>

On one asset - the button beside Warranty expires on its Purchase tab, before you save.

On many - select them on Assets, then Bulk Action > Look Up Warranty.

The warranty date is when the last of the manufacturer's coverage for it ends; the purchase date, when its warranty began - for Dell, the day it shipped.

techdirect.dell.com under Services > APIs - Dell approves it, usually within a few days.') ?>
'fa-id-badge', 'label' => 'Client ID', 'maxlength' => 200, 'help' => 'Empty switches Dell lookups off, and forgets its secret.']) ?>
'fa-key', 'type' => 'password', 'label' => 'Client secret', 'maxlength' => 500, 'autocomplete' => 'new-password', 'placeholder' => $saved_secret($warranty['config_warranty_dell_client_secret'])]) ?>
'Look up Lenovo serial numbers on Lenovo\'s support site']) ?> developers.hp.com, then email warrantyapi.customers@hp.com for access - HP approves each by hand and doesn\'t give every IT company one. Not for HP Enterprise (HPE) servers, which have no such API.') ?>
'fa-id-badge', 'label' => 'API key', 'maxlength' => 200, 'help' => 'Empty switches HP lookups off, and forgets its secret.']) ?>
'fa-key', 'type' => 'password', 'label' => 'API secret', 'maxlength' => 500, 'autocomplete' => 'new-password', 'placeholder' => $saved_secret($warranty['config_warranty_hp_client_secret']), 'help' => 'HP works through each lookup as a job, so its answers can take a few minutes.']) ?>