Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

9 Pages«<23456>»
Tag as favorite
Update LS database with warranty information from Dell's site
Tomdm
#46 Posted : Thursday, January 14, 2010 4:59:51 PM

Rank: Premium user

Groups: Administration, Member
Posts: 5
Martin, try to download version 1.6.1 this seems to have solved the problem for me....

Thx Corbett Applause
Corbett
#47 Posted : Thursday, January 14, 2010 5:25:32 PM

Rank: Premium user

Groups: Premium Users
Posts: 31
Location: US
Martin, thank you for providing the full output; that is a huge help. I fixed the date formatting while updating an existing record but not when inserting a new record. d'oh! Try this file and let us know how it goes.

Martin wrote:
14/01/2010 15:29:52*SQL:begin tran;update dbo.tblCompCustom with (serializable) set PurchaseDate=CONVERT(DATETIME,'28/11/2007',102), Warrantydate=CONVERT(DATETIME,'28/11/2010',102) where computername = '36CP93J';if @@rowcount = 0 begin insert into dbo.tblCompCustom (Computername, PurchaseDate, Warrantydate) values ('36CP93J','28/11/2007','28/11/2010') end;commit tran;
File Attachment(s):
UpdateDellWarrantyInfo.v1.6.2BETA.zip (6kb) downloaded 49 time(s).
Martin
#48 Posted : Friday, January 15, 2010 9:51:29 AM


Rank: Premium user

Groups: Premium Users
Posts: 24
Location: Scotland
Thanks for your reply and help. Still no joy though... Think

15/01/2010 08:47:15*CON:Data Source=Marge\marge_2005;Initial Catalog=LansweeperDB;Integrated Security=True;Connection Timeout=400
15/01/2010 08:47:15*SQL:SELECT TOP 1 Assetlink FROM tsysassetlinks WHERE (Vendor LIKE 'dell%')
15/01/2010 08:47:15*URL:http://support.euro.dell.com/support/topics/topic.aspx/emea/shared/support/my_systems_info/en/details?c=uk&l=en&s=bsd&~tab=1&ServiceTag={assettag}
15/01/2010 08:47:15*SQL:SELECT Computername, IdentifyingNumber FROM dbo.tblComputersystemProduct where vendor like '%dell%' and identifyingnumber <> '' and identifyingnumber is not null order by computername
15/01/2010 08:47:15+Query for: 36CP93J
15/01/2010 08:47:17 -Purchase Date: '28/11/2007'
15/01/2010 08:47:17 -Warranty Date: '28/11/2010'
15/01/2010 08:47:17*SQL:begin tran;update dbo.tblCompCustom with (serializable) set PurchaseDate=CONVERT(DATETIME,'28/11/2007',102), Warrantydate=CONVERT(DATETIME,'28/11/2010',102) where computername = '36CP93J';if @@rowcount = 0 begin insert into dbo.tblCompCustom (Computername, PurchaseDate, Warrantydate) values ('36CP93J',CONVERT(DATETIME,'28/11/2007',102),CONVERT(DATETIME,'28/11/2010',102)) end;commit tran;
System.Data.SqlClient.SqlException: The conversion of a char data type to a datetime datatype resulted in an out-of-range datetime value.
The statement has been terminated.


Thanks anyway,
Martin
Tomdm
#49 Posted : Friday, January 15, 2010 10:07:07 AM

Rank: Premium user

Groups: Administration, Member
Posts: 5
after some time 1.6.1 sill gave me a date format error, i was a bit too fast to say that all problems were solved, however 1.6.2beta seems to have processed already more then 100 PCs without problems at the moment. So for me the problems seems to be gone
Corbett
#50 Posted : Friday, January 15, 2010 3:58:34 PM

Rank: Premium user

Groups: Premium Users
Posts: 31
Location: US
Thanks for letting me know that it isn't quite right. I completely rewrote the date handling to hopefully work with different date formats better. Can you please try out this version and let me know?

Thanks.

Tomdm wrote:
after some time 1.6.1 sill gave me a date format error, i was a bit too fast to say that all problems were solved, however 1.6.2beta seems to have processed already more then 100 PCs without problems at the moment. So for me the problems seems to be gone
Martin
#51 Posted : Monday, January 18, 2010 10:45:43 AM


Rank: Premium user

Groups: Premium Users
Posts: 24
Location: Scotland
Well done Corbett! Works beautifully. Thanks a lot.
Facilities
#52 Posted : Tuesday, January 19, 2010 9:21:22 AM


Rank: Premium user

Groups: Member, Premium Users
Posts: 35
Location: Johannesburg, South Africa
Hi

This works so well, thank you for all of the effort! Applause

Would you be able to do the same for IBM/Lenovo and HP?

I have sample data etc for you if you need data to test with.
Corbett
#53 Posted : Tuesday, January 19, 2010 2:45:00 PM

Rank: Premium user

Groups: Premium Users
Posts: 31
Location: US
I wondered when this was going to happen.

If you could give me a sample URL for both IBM and HP I can look at the amount of work involved. Would you be willing to beta test? I have no IBM or HP machines.

Facilities wrote:
Would you be able to do the same for IBM/Lenovo and HP?
I have sample data etc for you if you need data to test with.
DGoodwin
#54 Posted : Wednesday, January 20, 2010 3:45:52 PM

Rank: Premium user

Groups: Premium Users, Member
Posts: 49
Location: NC, USA
we have roughly 140 HP's if you want a tester?
kurtp
#55 Posted : Monday, January 25, 2010 4:05:19 PM
Rank: Freeware user

Groups: Member
Posts: 1
Is there a way to show purchase and warranty end date on the action screen?
I ran the tool and it seemed to work without an error. I tried to create an report but fail getting the information from the db.
Can anyone help me in getting a report?

cheers
dsch
#56 Posted : Monday, February 08, 2010 1:43:27 PM


Rank: Premium user

Groups: Premium Users
Posts: 7
Location: Germany
Sure, i used this for Dell Workstations:

Code:

Select tblComputers.Computername, tblCompCustom.Warrantydate, tblCompCustom.PurchaseDate, tblComputersystem.Manufacturer, tblComputersystem.Model From tblComputers Inner Join tblCompCustom On tblComputers.Computername = tblCompCustom.Computername Inner Join tblComputersystem On tblComputers.Computername = tblComputersystem.Computername Where tblCompCustom.Warrantydate <= Convert(DateTime,Convert(VarChar(10),GetDate(),120),120) And tblComputersystem.Model Not Like 'Power%'


and this one for the servers:

Code:
Select tblComputers.Computername, tblCompCustom.Warrantydate, tblCompCustom.PurchaseDate, tblComputersystem.Manufacturer, tblComputersystem.Model From tblComputers Inner Join tblCompCustom On tblComputers.Computername = tblCompCustom.Computername Inner Join tblComputersystem On tblComputers.Computername = tblComputersystem.Computername Where tblCompCustom.Warrantydate <= Convert(DateTime,Convert(VarChar(10),GetDate(),120),120) And tblComputersystem.Model Like 'Power%'



The report shows you all devices that have no longer Dell Support.
BSONO
#57 Posted : Friday, February 19, 2010 8:45:00 PM

Rank: Premium user

Groups: Premium Users
Posts: 14
I'm not sure if anyone gave Corbett the HP information, but our HP serial numbers also require a part number. I cannot find anyway to get the part number from WMI, registry etc. The only way I know of is physically looking at the number on the computer/server. Our provider is HP so this would be very helpful. Thanks,
Corbett
#58 Posted : Friday, February 19, 2010 10:52:52 PM

Rank: Premium user

Groups: Premium Users
Posts: 31
Location: US
Sorry, I never received any links to an HP system's warranty information. With this new information it sounds like it's going to be quite difficult to get the warranty information automatically from their web site.

BSONO wrote:
I'm not sure if anyone gave Corbett the HP information, but our HP serial numbers also require a part number. I cannot find anyway to get the part number from WMI, registry etc. The only way I know of is physically looking at the number on the computer/server. Our provider is HP so this would be very helpful. Thanks,
rkotvis
#59 Posted : Friday, February 19, 2010 11:38:12 PM

Rank: Premium user

Groups: Premium Users
Posts: 25
Location: The Netherlands
On a few HP desktop and notebook models the part number can be found in the Model property of the Win32_ComputerSystem class:

HP Compaq 6710b (GR680ET#ABH)
HP Compaq nx8220 (PY516ET#ABH)
HP dx2000 MT(PE205ET)


Unfortunately, these are the only ones I've been able to find.
Roelof Kotvis
Bouwvereniging "Woningbelang"
LinkedIn Profile
BSONO
#60 Posted : Saturday, February 20, 2010 5:14:54 PM

Rank: Premium user

Groups: Premium Users
Posts: 14
I found the HP part number in the BIOS under the heading SKU Number. I also found this script below to pull it through WMI, however, when I look at the SKU Number in WMI CIM Studio its blank. The script pulls back a blank SKU number also. Maybe, it will make sense to someone and they can figure it out. Thanks,

Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystemProduct",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "IdentifyingNumber: " & objItem.IdentifyingNumber
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SKUNumber: " & objItem.SKUNumber
Wscript.Echo "UUID: " & objItem.UUID
Wscript.Echo "Vendor: " & objItem.Vendor
Wscript.Echo "Version: " & objItem.Version
Next


Users browsing this topic
Guest (3)
9 Pages«<23456>»
Tag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba