<o p=""></o>
<o p=""> Hi</o>
I’m currently working on a set of reports that highlight to my managers how many machines they have currently and how many are MIA. I set about trying to define what criteria (in plain English) I could use to define to write an appropriate SQL query or queries.<o p=""></o>
<o p=""> </o>
Without going into the detail of what I would like the queries to be, I got bogged down way before this on simply understanding what the table and column names were, and how NS drew the information for them. <o p=""></o>
<o p=""> </o>
I considered the famous ‘IsManaged’… I assumed ‘IsManaged’ would have something to do with the NS client being present. Now I would like to know exactly what triggers the change of this field and what it is supposed to mean and what Altiris uses it for, please?<o p=""></o>
<o p=""> </o>
When I questioned ‘IsManaged’ I came acros some other queries which seemed logical. Firstly by using any field where the date has been updated for example [Inv_Aex_AC_Identification].[Client date] appeared to be client ‘last updated’ type field. It being in the Basic Inventory section I thought that this would be a good way to judge if something was managed – its sent a basic inventory, right?<o p=""></o>
<o p=""> </o>
If you take the following three queries, one asking for all managed computers that have sent a basic inventory update in the last 14 days and all unmanaged computers that have sent an update in the last 14 days there is a discrepency of 2. Apparently 2 PC’s are not managed but the fields still got updated. The last query further serves to widen my misunderstanding where is looks for managed PC’s that havent had that field updated in over 3 months. Apparently 30 of these.<o p=""></o>
<o p=""> </o>
Could learned gentleman please explain the ‘ismanaged’ field and how it is changed and on what criteria, and then explain some of the other fields that can be used to determine the activity of a client PC (like the Client date field below and any others you know of.<o p=""></o>
<o p=""> </o>
Many thanks and apologies for the wall of text with waffle
<o p=""></o>
<o p="">
Mike
</o>
SELECT COUNT(*) <o p=""></o>
FROM Inv_AeX_AC_Identification acid<o p=""></o>
join vcomputer on acid._resourceguid = vcomputer.guid <o p=""></o>
WHERE DATEDIFF(dd, acid.[Client Date], GETDATE()) < 14<o p=""></o>
and<o p=""></o>
vcomputer.ismanaged = '1'<o p=""></o>
<o p=""> </o>
=9938<o p=""></o>
<o p=""> </o>
SELECT COUNT(*) <o p=""></o>
FROM Inv_AeX_AC_Identification acid<o p=""></o>
join vcomputer on acid._resourceguid = vcomputer.guid <o p=""></o>
WHERE DATEDIFF(dd, acid.[Client Date], GETDATE()) < 14<o p=""></o>
and<o p=""></o>
vcomputer.ismanaged = '0'<o p=""></o>
<o p=""> </o>
=2<o p=""></o>
<o p=""> </o>
SELECT COUNT(*) <o p=""></o>
FROM Inv_AeX_AC_Identification acid<o p=""></o>
join vcomputer on acid._resourceguid = vcomputer.guid <o p=""></o>
WHERE DATEDIFF(dd, acid.[Client Date], GETDATE()) > 90<o p=""></o>
and<o p=""></o>
vcomputer.ismanaged = '1'<o p=""></o>
<o p=""> </o>
=30<o p=""></o>