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

Untag as favorite
Custom report
djolly
#1 Posted : Monday, January 16, 2012 9:32:52 AM

Rank: Premium user

Groups: Premium Users, Member
Posts: 14
Location: UK
Hi there,

I would like to run a custom report which returns the serial number, purchase date, warranty date, custom field 1, mac address and station name for all computers beginning with the name "VOC-"

Is this doable?

Thanks in advance
Lansweeper
#2 Posted : Monday, January 16, 2012 1:12:11 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,379
Please try the report below.

Quote:
Select Top 1000000 tblComputers.Computername, tblComputers.Computer,
tblComputers.Domain, tblSystemEnclosure.SerialNumber,
tblCompCustom.PurchaseDate, tblCompCustom.Warrantydate, tblCompCustom.Custom1,
tblNetwork.MACaddress
From tblComputers Inner Join
web40ActiveComputers On tblComputers.Computername =
web40ActiveComputers.Computername Inner Join
tblNetwork On tblComputers.Computername = tblNetwork.Computername Inner Join
tblSystemEnclosure On tblComputers.Computername =
tblSystemEnclosure.Computername Inner Join
tblCompCustom On tblComputers.Computername = tblCompCustom.Computername
Where tblComputers.Computer Like 'VOC-%' And tblNetwork.IPEnabled = 1
Order By tblComputers.Computer
djolly
#3 Posted : Monday, January 16, 2012 2:37:29 PM

Rank: Premium user

Groups: Premium Users, Member
Posts: 14
Location: UK
Worked perfectly. Thank you so much. Could you please now provide me with a similar query but this time searching for Devices rather than Computers.

I would now like to use the the same query but this time searching for Devices with the name 'Ruckus'.
Lansweeper
#4 Posted : Monday, January 16, 2012 2:45:51 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,379
You need a completely different report for this, as device information is stored in different tables. (Lansweeper version 5 will merge computers and devices into a single "asset" category.)

Please try the report below for the information you're after.
Quote:
Select tblCustDevices.Displayname, tblCustDevices.Serialnumber,
tblCustDevices.PurchaseDate, tblCustDevices.Warrantydate,
tblCustDevices.Custom1, tblCustDevices.Mac
From tblCustDevices
Where tblCustDevices.Displayname Like '%Ruckus%'
Order By tblCustDevices.Displayname
djolly
#5 Posted : Tuesday, January 17, 2012 10:47:43 AM

Rank: Premium user

Groups: Premium Users, Member
Posts: 14
Location: UK
Worked great thanks again for the fast reply
Users browsing this topic
Guest
Untag 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