warranty_check icon indicating copy to clipboard operation
warranty_check copied to clipboard

Unable to run

Open jaipsharma opened this issue 5 years ago • 1 comments

root@FA056080:/mnt/c/Users/jai.sharma/Desktop/warranty_check# python starter.py

[!] Fetching order numbers from Device42

[!] HTTP error. Message was: Invalid URL '/api/1.0/purchases/': No schema supplied. Perhaps you meant http:///api/1.0/purchases/?

[!] HTTP error. Message was: Invalid URL '/api/1.0/purchases/': No schema supplied. Perhaps you meant http:///api/1.0/purchases/?

[!] HTTP error. Message was: Invalid URL '/api/1.0/purchases/': No schema supplied. Perhaps you meant http:///api/1.0/purchases/?

[+] dell section

[!] Fetching hardware models from Device42

[!] HTTP error. Message was: Invalid URL '/api/1.0/hardwares/': No schema supplied. Perhaps you meant http:///api/1.0/hardwares/?

[!] HTTP error. Message was: Invalid URL '/api/1.0/hardwares/': No schema supplied. Perhaps you meant http:///api/1.0/hardwares/?

[!] HTTP error. Message was: Invalid URL '/api/1.0/hardwares/': No schema supplied. Perhaps you meant http:///api/1.0/hardwares/?

[!] Fetching devices from Device42 with offset=0

[!] HTTP error. Message was: Invalid URL '/api/1.0/devices/all/?include_cols=serial_no,device_id,manufacturer&limit=50&offset=0&hardware=': No schema supplied. Perhaps you meant http:///api/1.0/devices/all/?include_cols=serial_no,device_id,manufacturer&limit=50&offset=0&hardware=?

[!] HTTP error. Message was: Invalid URL '/api/1.0/devices/all/?include_cols=serial_no,device_id,manufacturer&limit=50&offset=0&hardware=': No schema supplied. Perhaps you meant http:///api/1.0/devices/all/?include_cols=serial_no,device_id,manufacturer&limit=50&offset=0&hardware=?

[!] HTTP error. Message was: Invalid URL '/api/1.0/devices/all/?include_cols=serial_no,device_id,manufacturer&limit=50&offset=0&hardware=': No schema supplied. Perhaps you meant http:///api/1.0/devices/all/?include_cols=serial_no,device_id,manufacturer&limit=50&offset=0&hardware=?

[!] Finished

jaipsharma avatar Dec 24 '20 15:12 jaipsharma

In the Files folder is the file warranty.cfg.example. Did you copy this to warranty.cfg and then set you Device42 url, username, and password in the [device42] section? You should also enable/disable any warranty checks you want to run in the [discovery] section. If running warranty checks for cisco, dell, hp, or meraki, you will need to set some credential information in the appropriate section (e.g. there is a [cisco] section).

cscaglioned42 avatar Dec 27 '20 16:12 cscaglioned42