Report Help [SOLVED]
I am trying to make a report that will give me all the computer model numbers from KBox. I also would like to start ruling out certain models as I figure out what it is. Basically, I am trying to get a report to list all of our laptops. Not sure, of an easy way but to have a list of all the computers and then start ruling out each model that I know is a desktop. Then I plan to do an online search on the model numbers that I am unsure of. So far, I have as follows, but it is not actually eliminating the models numbers I already have listed. I know there is something missing but do not know what it is. I do not have much experience with SQL and trying to learn a little at a time. I need help setting up the (and CS_MODEL NOT LIKE '%7522D6U%') to work properly in order to eliminate those machine models. Thanks in advance!
SELECT SYSTEM_DESCRIPTION, CS_MODEL, CS_MANUFACTURER, ASSET.NAME AS ASSET_NAME FROM MACHINE LEFT JOIN ASSET ON ASSET.MAPPED_ID = MACHINE.ID AND ASSET.ASSET_TYPE_ID=5
and CS_MODEL NOT LIKE '%7522D6U%'
and CS_MODEL NOT LIKE '%964523U%'
and CS_MODEL NOT LIKE '%821529U%'
and CS_MODEL NOT LIKE '%9645J1U%'
and CS_MODEL NOT LIKE '%9704ANU%'
order by CS_MODEL
0 Comments
[ + ] Show comments
Answers (11)
Please log in to answer
Posted by:
GillySpy
14 years ago
I would start by detecting the chassis type as a custom inventory field [link]http://www.kace.com/support/customer/faq/index.php?action=artikel&cat=5&id=850&artlang=en[/link]
Then I would create a filter to label all machines with a certain chassis type.
Then, since you're not comfortable with SQL, use the report wizard to generate this report based on the label membership.
Then I would create a filter to label all machines with a certain chassis type.
Then, since you're not comfortable with SQL, use the report wizard to generate this report based on the label membership.
Posted by:
airwolf
14 years ago
Gerald's suggestion is definitely an easier solution than trying to figure out which models are laptops by manually checking them off of a list. Detecting chassis type may be effective, but I haven't used the KBOX suggestion so I cannot attest to its accuracy. What I've done in my organization is setup a script (using WMI) to detect the existence of a battery in the system and write a registry key accordingly. I then configured a custom software inventory named "Laptop Battery" to detect the value. This has given us a very accurate count of laptops.
Posted by:
ustacp
14 years ago
Thanks a lot Gerald. You just saved me a ton of time. That worked out perfectly.
ORIGINAL: GillySpy
I would start by detecting the chassis type as a custom inventory field [link]http://www.kace.com/support/customer/faq/index.php?action=artikel&cat=5&id=850&artlang=en[/link]
Then I would create a filter to label all machines with a certain chassis type.
Then, since you're not comfortable with SQL, use the report wizard to generate this report based on the label membership.
Posted by:
ustacp
14 years ago
Andy,
I actually ran across a Google search where they did the same thing as you described. That would work well too. The way Gerald had me go, actually allows me to place the servers and desktops into a filter as well. So I get to knock out three birds at once. I have been meaning to do this for some time now but have not got around to it yet until now. I also ran across some listings using the same method Gerald described via WMI though. Therefore, it should be pretty accurate as it is used elsewhere besides the KBox.
I would be interested to see how the battery script compared to the chassis script in finding the laptops.
I actually ran across a Google search where they did the same thing as you described. That would work well too. The way Gerald had me go, actually allows me to place the servers and desktops into a filter as well. So I get to knock out three birds at once. I have been meaning to do this for some time now but have not got around to it yet until now. I also ran across some listings using the same method Gerald described via WMI though. Therefore, it should be pretty accurate as it is used elsewhere besides the KBox.
I would be interested to see how the battery script compared to the chassis script in finding the laptops.
ORIGINAL: airwolf
Gerald's suggestion is definitely an easier solution than trying to figure out which models are laptops by manually checking them off of a list. Detecting chassis type may be effective, but I haven't used the KBOX suggestion so I cannot attest to its accuracy. What I've done in my organization is setup a script (using WMI) to detect the existence of a battery in the system and write a registry key accordingly. I then configured a custom software inventory named "Laptop Battery" to detect the value. This has given us a very accurate count of laptops.
Posted by:
RichB
14 years ago
ORIGINAL: GillySpy
I would start by detecting the chassis type as a custom inventory field [link]http://www.kace.com/support/customer/faq/index.php?action=artikel&cat=5&id=850&artlang=en[/link]
Then I would create a filter to label all machines with a certain chassis type.
Then, since you're not comfortable with SQL, use the report wizard to generate this report based on the label membership.
Awesome, eh! Working great for me. Good things can come from Canada! [8D]
Posted by:
ustacp
14 years ago
Posted by:
RichB
14 years ago
I also found a chassis type not originally designated as a Portable so had to add it to the filter: Docking Station.
What is the SQL to report just the distinct Chassis Types without listing all the computers associated?
Also, using this method it seems all computers get designated as a Desktop initially since the criteria is "... if not labelled Portable or Server" and the first time it checks those designations haven't been applied yet. The next time they check in they get the Portable designation but the Desktop label does not go away.
What is the SQL to report just the distinct Chassis Types without listing all the computers associated?
Also, using this method it seems all computers get designated as a Desktop initially since the criteria is "... if not labelled Portable or Server" and the first time it checks those designations haven't been applied yet. The next time they check in they get the Portable designation but the Desktop label does not go away.
Posted by:
RichB
14 years ago
The article sited earlier says "24. Set up the Filter for your Desktop machines by excluding machines with the Server label or the Portable label."
I am finding all computers are getting the Desktop label in addition to the Portable or Server label and it won't go away. I set up the "Desktop" label's filter as Label Names does not contain Portable and Label Names does not contain Server.
Is there a better way to exclude the Portable and Server computers so they don't get the Desktop label too?
I am finding all computers are getting the Desktop label in addition to the Portable or Server label and it won't go away. I set up the "Desktop" label's filter as Label Names does not contain Portable and Label Names does not contain Server.
Is there a better way to exclude the Portable and Server computers so they don't get the Desktop label too?
Posted by:
RichB
14 years ago
Posted by:
GillySpy
14 years ago
Posted by:
RichB
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.