Report request
Afternoon all,
I'm trying to get a report of all software within rooms.
Rooms are specified in the hostname e.g. DWF0N123499999 (N1234 is the room)
However, it needs to be a report of all the software in each room, so I have created a smart label for most rooms.
I beleive I could possibly do this a few ways...
Pull off all software for an individual label name, or, group up some of the labels and pull off all software by label group?
Or, get the report to somehow look at the 5th, 6th, 7th, 8th and 9th character of the hostname and list the software for each unique instance of that block of characters?
I know what I need to ask of it, just not how :(
Any help would be greatly appreciated.
I've tried out a few reports from here that work off label names, but we have 172 rooms! A) I'm going to have to add 172 labels and B) add them all to the SQL of a report?
Even better, I have a spreadsheet of all room numbers if that's of any use?
Thank you in advance!
I'm trying to get a report of all software within rooms.
Rooms are specified in the hostname e.g. DWF0N123499999 (N1234 is the room)
However, it needs to be a report of all the software in each room, so I have created a smart label for most rooms.
I beleive I could possibly do this a few ways...
Pull off all software for an individual label name, or, group up some of the labels and pull off all software by label group?
Or, get the report to somehow look at the 5th, 6th, 7th, 8th and 9th character of the hostname and list the software for each unique instance of that block of characters?
I know what I need to ask of it, just not how :(
Any help would be greatly appreciated.
I've tried out a few reports from here that work off label names, but we have 172 rooms! A) I'm going to have to add 172 labels and B) add them all to the SQL of a report?
Even better, I have a spreadsheet of all room numbers if that's of any use?
Thank you in advance!
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
Husky
12 years ago
So I got a bit further with what I want out of this report.. It seems to work perfectly! Apart from when software is listed, it is in a huge block of text, no separation.
I know the '/n' should break it up with a new line?
SELECT GROUP_CONCAT(DISTINCT LABEL.NAME SEPARATOR '\n') AS LABEL_NAME_GROUPED,MACHINE.NAME AS SYSTEM_NAME,GROUP_CONCAT(DISTINCT SOFTWARE.DISPLAY_NAME SEPARATOR '\n') AS SOFTWARE_DISPLAY_NAME_GROUPED FROM MACHINE LEFT JOIN MACHINE_LABEL_JT ON (MACHINE_LABEL_JT.MACHINE_ID = MACHINE.ID) LEFT JOIN LABEL ON (LABEL.ID = MACHINE_LABEL_JT.LABEL_ID AND LABEL.TYPE <> 'hidden') LEFT JOIN MACHINE_SOFTWARE_JT ON (MACHINE_SOFTWARE_JT.MACHINE_ID = MACHINE.ID) LEFT JOIN SOFTWARE ON (SOFTWARE.ID = MACHINE_SOFTWARE_JT.SOFTWARE_ID) WHERE ((SOFTWARE.DISPLAY_NAME not like '%(KB%%') AND (SOFTWARE.DISPLAY_NAME not like '%CCC%') AND (SOFTWARE.DISPLAY_NAME not like '%update%') AND (LABEL.NAME = 'S1930')) GROUP BY MACHINE.ID ORDER BY LABEL_NAME_GROUPED,SYSTEM_NAME
Much appreciated :)
I know the '/n' should break it up with a new line?
SELECT GROUP_CONCAT(DISTINCT LABEL.NAME SEPARATOR '\n') AS LABEL_NAME_GROUPED,MACHINE.NAME AS SYSTEM_NAME,GROUP_CONCAT(DISTINCT SOFTWARE.DISPLAY_NAME SEPARATOR '\n') AS SOFTWARE_DISPLAY_NAME_GROUPED FROM MACHINE LEFT JOIN MACHINE_LABEL_JT ON (MACHINE_LABEL_JT.MACHINE_ID = MACHINE.ID) LEFT JOIN LABEL ON (LABEL.ID = MACHINE_LABEL_JT.LABEL_ID AND LABEL.TYPE <> 'hidden') LEFT JOIN MACHINE_SOFTWARE_JT ON (MACHINE_SOFTWARE_JT.MACHINE_ID = MACHINE.ID) LEFT JOIN SOFTWARE ON (SOFTWARE.ID = MACHINE_SOFTWARE_JT.SOFTWARE_ID) WHERE ((SOFTWARE.DISPLAY_NAME not like '%(KB%%') AND (SOFTWARE.DISPLAY_NAME not like '%CCC%') AND (SOFTWARE.DISPLAY_NAME not like '%update%') AND (LABEL.NAME = 'S1930')) GROUP BY MACHINE.ID ORDER BY LABEL_NAME_GROUPED,SYSTEM_NAME
Much appreciated :)
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.