Home    Forums    Feature Requests    Beta Issues    SysAid Resources    Documentation    Support
Hello Guest,  Login   
        
DOWNLOAD FREE EDITION
    
     Recent Topics    Hottest Topics    Online Members    Member Listing    Advanced Search
Auto populating DELL Assets with purchase date and warranty end date  XML
Forum Index » Asset Management
 
Poll
You like it?
YES 92% [ 11 ]
NO 0% [ 0 ]
don't understand this... 0% [ 0 ]
have no DELL hardware 8% [ 1 ]
Total Votes : 12
Author Message
EbroIN
Elite SysAider


SysAider from release 5.6 Germany Pathfinder
Joined: 25/03/2009
Messages: 244
Offline

Hi there,

recently I coded a little script that automatically retrieves the purchase date and warranty end date from the DELL homepage for DELL assets. Unfortunatelly I haven't found a built in method in SysAid so I did a little vbscript to do that for me.

Any comments are very welcome, any improvements as well :p

This is kind of "quick" and - due to the nature of the script - very very dirty.

This script is built for Dell assets in the EMEA region (will scrap the EMEA site for warranty dates) and might change over time if Dell changes anything on their layout. It is important that the database for SysAid is located on a German MS SQL Server.

It is kind of helpfull to have little knowledge about vbscript before using this.

HAVE A (WORKING) BACKUP BEFORE USE! USE AT YOUR OWN RISK! UNDERSTAND THE CODE IN THE SCRIPT!

I wonder if DELL (or HP, IBM, Lenovo, Acer or whatever) has no API present to get those dates out of their databases. This is kind of dirty and I am looking in the Dell homepage for a table (inside the returned HTML code) and parse only the text contents. The script will look for table cells and add "," between the values. After that the script splits the string into an array and then locates the purchase and the warranty end date. After checking inside the SysAid database, the script UPDATES its value inside the table. For "non German" installations the parsing of the Date into an international format (like '2011-07-25') is necessary - feel free to modify the script to your needs.

I've done this on my database and it worked well for my 200+ Dell computers

Please leave feedback if you can use this, and if you've modified things, please upload your modifications. I think we can all participate from your ideas.

best regards - EbroIN
 Filename dell_updater.vbs Download
 Description the actual vb script
 Filesize 10 Kbytes
 Downloaded:  41 time(s)

jstrubberg
SysAider

SysAider from release 7.5
Joined: 14/09/2011
Messages: 8
Offline

I wish I knew enough about SQL to get this to work for an american DB.

250+ pieces of equipment to do by hand.
techguy
SysAid Mod


SysAider from release 4 United Kingdom Pathfinder Meet me in Vegas - SysAid technology Conference - 28-30/4/2010
Joined: 11/06/2008
Messages: 1506
Location: England
Offline

What and excellent script !

/BEGIN OFFICIAL DISCLAIMER/
All database modifications outside of SysAid invalidate your support
/END OFFICIAL DISCLAIMER/

Perhaps SysAid could provide their official blessing to use this script when we have finished please?

I ran it in test mode
in testing, I found I have some manual asset records for dell's that do not have an agent and were added by hand with either no serial number or duff ones! (I will get these fixed).
To stop these blowing up the script I added the following changes:-

Line 116 I added



and after the line


I added



This stops it bombing out if it cannot get a result because of a duff serial number.



Need help? Try the SysAid wiki first! - http://sites.google.com/site/sysaidwiki
techguy
SysAid Mod


SysAider from release 4 United Kingdom Pathfinder Meet me in Vegas - SysAid technology Conference - 28-30/4/2010
Joined: 11/06/2008
Messages: 1506
Location: England
Offline

testing on my sandbox, only some records get set and they get set with the incorrect american date order mm/dd/yyyy , yet if you turn on chatty it shows the sql statement it would put in was in the uk format dd.mm.yyyy ?

any ideas?

Need help? Try the SysAid wiki first! - http://sites.google.com/site/sysaidwiki
NWG-IT
Elite SysAider

SysAider from release 6 Netherlands Pathfinder
Joined: 07/01/2010
Messages: 203
Offline

are SysAiders still using this script?
we have a lot of Dell machines and it would be great if I can run the script to get all the warranty details filled in properly.
Forum Index » Asset Management
Go to:   
Help Desk Software
Free Help Desk Software
Free Asset Management Software
SysAid Helpdesk Software
Web Based Help Desk Software
SysAid Help Desk Forum
General IT Discussion Forum
SysAid CSS Customer Service Software
Customer Support Software
   SysAid Technologies Ltd.
   Toll-Free phone center (U.S.): 1-800-686-7047
   Offices - U.S.617-231-0124
   Israel:+972-3-533-3675
   Email:helpdesk@sysaid.com
   Optimized by SEO Israel
   SysAid logos and other SysAid Technologies marks
   are trademarks or registered trademarks of
   SysAid Technologies Ltd.
   All Rights Reserved by SysAid Technologies Ltd.
   2002-2011
   Live Support Hours
   07:00 AM - 09:30 PM (UK)
   03:00 AM - 05:30 PM (EDT)

   We provide worldwide services, and we do our best
   to match the working times of customers from
   different time zones.

   SysAid Help Desk Software and Asset Management Software
Privacy Policy © Terms Of Use