How do I get device type information from SMS 2003

Posted on 2007-08-08
Medium Priority
Last Modified: 2013-11-21

I would like to determine, by querying the SMS database, what type of device each item in the SYSTEM_DISC table is, i.e. workstation, server, router, etc.

Is this info available within the SMS database and if so, where do I look for it?

Question by:eoinmccarthy
  • 2
LVL 29

Accepted Solution

matrixnz earned 375 total points
ID: 19677758
Assuming your referring to System Role?

Here's a simple query based on All Systems

select SMS_R_System.Name, SMS_G_System_SYSTEM.SystemRole, SMS_R_System.SMSAssignedSites, SMS_R_System.IPAddresses, SMS_R_System.IPSubnets, SMS_R_System.OperatingSystemNameandVersion, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.LastLogonUserDomain, SMS_R_System.LastLogonUserName, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.NetbiosName from  SMS_R_System inner join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceId


Author Comment

ID: 19693651
Neither SMS_R_System or SMS_G_System_SYSTEM exist on the sample SMS database that I'm working with.

Author Comment

ID: 19693769
Tried a cut-down version of query on views that looked like the ones described above:

from  v_R_System
inner join v_GS_System on v_GS_System.ResourceID = v_R_System.ResourceId

This produced useful results - machine name and its role (just server or workstation in the sample data). It appears that v_R_System looks onto the System_DISC table and
v_GS_System looks onto System_DATA table.   Not sure what either means but seem to be headed in the right direction.



Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On a regular basis I get questions about slow RDP performance, RDP connection problems, strange errors and even BSOD, remote computers freezing or restarting after initiation of a remote session. In a lot of this cases the quick solutions made b…
Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question