Clients not showing up in collection based on query

Author Message
JCHoefer

  • Total Posts : 12
  • Scores: 0
  • Reward points : 2680
  • Joined: 12/6/2011
  • Status: offline
Clients not showing up in collection based on query Friday, February 03, 2012 11:20 AM (permalink)
0
I have a collection called "Non-Approved Clients" that shows me just that.  I use this to make approving clients easier.
 
Recently I approved 4 laptops named "GD-Cart1-05", "-06", "-09" and "-12".
 
These show up in the collection "All Systems" as assigned to the correct site code with an approved client.
 
The DO NOT show up (even after a collection update and refresh in a collection called "1 - Glendaal".  That collection is based on the following query:
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_SYSTEM.Name like "GD-%"
 
Originally the colletion query was not limited.  So I tried limiting it to "All Approved Systems" and "All Systems" in an attempt to solve the issue.  No joy.
 
Any ideas on what is causing this?  I'm also wondering if this is isolated or if I have other collections with the same issue.
 
 
#1
    skissinger

    • Total Posts : 4645
    • Scores: 448
    • Reward points : 75260
    • Joined: 9/13/2001
    • Location: Sherry Kissinger
    • Status: offline
    Re:Clients not showing up in collection based on query Friday, February 03, 2012 12:25 PM (permalink)
    0
    You are asking for where SMS_G_System_SYSTEM.Name like "GD-%"
    not where SMS_R_System.Netbiosname like "GD-%"
    What if you stick with the SMS_R_System (the one that comes from heartbeat) not the SMS_G_System (the one that comes after a successful hinv).
    mofmaster@myitforum.com
    My Blog
    Microsoft MVP - ConfigMgr
     
    #2
      JCHoefer

      • Total Posts : 12
      • Scores: 0
      • Reward points : 2680
      • Joined: 12/6/2011
      • Status: offline
      Re:Clients not showing up in collection based on query Friday, February 03, 2012 12:39 PM (permalink)
      0
      I tried both "where SMS_R_System.Name like "GD-%"" and "where SMS_R_System.Netbiosname like "GD-%"".
       
      Both gave me an invalid query error on clicking OK.
       
      #3
        skissinger

        • Total Posts : 4645
        • Scores: 448
        • Reward points : 75260
        • Joined: 9/13/2001
        • Location: Sherry Kissinger
        • Status: offline
        Re:Clients not showing up in collection based on query Friday, February 03, 2012 12:53 PM (permalink)
        0
        Sorry, I don't have a console in front of me, I was going by memory.  that said, don't type in exactly what I wrote; in the collection query wizard use the pull downs etc. to select the right attributes for the Where clause.
        mofmaster@myitforum.com
        My Blog
        Microsoft MVP - ConfigMgr
         
        #4
          mhudson

          • Total Posts : 792
          • Scores: 32
          • Reward points : 20730
          • Joined: 4/1/2007
          • Location: College Station, TX
          • Status: offline
          Re:Clients not showing up in collection based on query Friday, February 03, 2012 1:18 PM (permalink)
          0
          I find this to be a problem with G_System... use R_System
          SMS_R_SYSTEM.Name="XXX" or like "%xyz%"
           
          #5
            DexterRivera

            • Total Posts : 26
            • Scores: 1
            • Reward points : 10590
            • Joined: 10/30/2008
            • Status: offline
            Re:Clients not showing up in collection based on query Friday, February 03, 2012 2:24 PM (permalink)
            0
            here is what I have in collection I use to single out some machine by the beginning of their hostname, of course change host to GD:
             
            select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.Name like "host%"
             
            #6
              DeQuosaek

              • Total Posts : 11
              • Scores: 0
              • Reward points : 5790
              • Joined: 11/4/2011
              • Status: offline
              Re:Clients not showing up in collection based on query Thursday, February 09, 2012 7:31 PM (permalink)
              0
              In the query designer, select System Resource and Name to get SMS_R_System.Name and make sure the query is not limited.  If the query that the collection is based on is limited to another collection, the computers won't show up until the limiting collection is updated according to its schedule. (or manually)
               
              SELECT SMS_R_System.Name FROM SMS_R_System WHERE SMS_R_System.Name LIKE "GD-%"

              should work just fine.  Make sure you're using the same names in each of the SELECT, FROM and WHERE statements.
               
               
               
               
              #7
                Online Bookmarks Sharing: Share/Bookmark

                Jump to:

                Current active users

                There are 0 members and 3 guests.

                Icon Legend and Permission

                • New Messages
                • No New Messages
                • Hot Topic w/ New Messages
                • Hot Topic w/o New Messages
                • Locked w/ New Messages
                • Locked w/o New Messages
                • Read Message
                • Post New Thread
                • Reply to message
                • Post New Poll
                • Submit Vote
                • Post reward post
                • Delete my own posts
                • Delete my own threads
                • Rate post

                2000-2012 ASPPlayground.NET Forum Version 3.9