1. Logon to Kbox 1000 as Administrator
2. Select Reports
3. Under "Choose Action" dropdown select “Add New SQL Reportâ€Â
4. Paste the following SQL statement under the “SQL Select Statement Boxâ€Â
5. You may change the SQL statement interval of 10 days to some other values
SQL:
select ASSET_HISTORY.TIME, ASSET.NAME, ASSET_HISTORY.DESCRIPTION
from ASSET
left join ASSET_TYPE on ASSET.ASSET_TYPE_ID = ASSET_TYPE.ID
left join ASSET_HISTORY on ASSET.ID = ASSET_HISTORY.ASSET_ID
where
(ASSET_TYPE.ID = 5
and NOW() < DATE_ADD(ASSET_HISTORY.TIME, INTERVAL 10 DAY)
and ASSET_HISTORY.DESCRIPTION not like '%KB%'
and ASSET_HISTORY.DESCRIPTION not like '%reboot%' and ASSET_HISTORY.DESCRIPTION not like '%Warranty%')
and
(ASSET_HISTORY.DESCRIPTION like 'Found software item%'
or ASSET_HISTORY.DESCRIPTION like '%remove%'
or ASSET_HISTORY.DESCRIPTION like '%change%')
order by TIME DESC
SELECT NAME,TIME,VALUE1,VALUE2 FROM ORG1.ASSET_HISTORY
WHERE
TYPE_NAME LIKE '%Computer%' AND
CHANGE_TYPE LIKE '%Modification%' AND
FIELD_NAME LIKE 'OS_NAME'
ORDER BY TIME DESC - StockTrader 10 years ago
select ASSET_HISTORY.TIME, ASSET.NAME, ASSET_HISTORY.FIELD_NAME, ASSET_HISTORY.VALUE1, ASSET_HISTORY.CHANGE_TYPE
from ASSET
left join ASSET_TYPE on ASSET.ASSET_TYPE_ID = ASSET_TYPE.ID
left join ASSET_HISTORY on ASSET.ID = ASSET_HISTORY.ASSET_ID
where (ASSET_TYPE.ID = 5
and ASSET_HISTORY.FIELD_NAME like '%SOFTWARE%'
#and NOW() < DATE_ADD(ASSET_HISTORY.TIME, INTERVAL 10 DAY)
)
and
(ASSET_HISTORY.CHANGE_TYPE like '%removal%'
or ASSET_HISTORY.CHANGE_TYPE like '%addition%'
or ASSET_HISTORY.CHANGE_TYPE like '%modification%'
or ASSET_HISTORY.CHANGE_TYPE like '%detected%')
and
ASSET.NAME like '%<asset_name>%'
order by ASSET_HISTORY.TIME DESC - dteetz 9 years ago