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

Tag as favorite
Static IP
paprita
#1 Posted : Thursday, September 02, 2010 9:59:21 AM


Rank: Premium user

Groups: Premium Users
Posts: 163
Location: Rome, Italy
In my network I have servers with static IP and clients with dynamic IP.
How can I modify "Network: Static IP address configured" query in order to see just clients and not servers?

Thanks.
Lansweeper
#2 Posted : Thursday, September 02, 2010 10:04:02 AM

Rank: Administration

Groups: Administration, Premium Users
Posts: 9,982
Use the "domainrole" field in tblcomputersystem

Code:
Select Top 1000000 dbo.tblComputers.Computername,
  dbo.tblComputers.ComputerUnique, dbo.tblComputers.Domain,
  Web40OSName.Compimage As icon, dbo.tblNetwork.IPAddress,
  dbo.tblNetwork.IPSubnet, dbo.tblNetwork.Lastchanged,
  tbldomainroles.Domainrole, tbldomainroles.Domainrolename
From dbo.tblComputers Inner Join
  dbo.tblNetwork On dbo.tblComputers.Computername = dbo.tblNetwork.Computername
  Inner Join
  dbo.web40ActiveComputers On dbo.tblComputers.Computername =
    dbo.web40ActiveComputers.Computername Inner Join
  Web40OSName On Web40OSName.Computername = dbo.tblComputers.Computername
  Inner Join
  tblComputersystem On dbo.tblComputers.Computername =
    tblComputersystem.Computername Inner Join
  tbldomainroles On tbldomainroles.Domainrole = tblComputersystem.Domainrole
Where dbo.tblNetwork.IPAddress <> '0.0.0.0' And dbo.tblNetwork.IPEnabled = 1 And
  dbo.tblNetwork.DHCPenabled = 0 And dbo.tblNetwork.IPAddress <> '' And
  tbldomainroles.Domainrole < 3
Order By dbo.tblComputers.Computer
paprita
#3 Posted : Thursday, September 02, 2010 10:53:57 AM


Rank: Premium user

Groups: Premium Users
Posts: 163
Location: Rome, Italy
It run ...thanks.

Applause Applause Applause
Users browsing this topic
Guest
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