SUA - Software Usage Analysis Info - Windows
Log In or Register to download the BES file, and more.

0 Votes

Versioning - This is the latest version.

1Software Use Analysis Info - Windows5/2/2013 9:21:56 AM
2SUA - Software Use Analysis Info - Windows5/2/2013 12:51:36 PM
3SUA - Software Usage Analysis Info - Windows6/20/2013 1:20:07 PM

Description

This Analysis is to gather data about clients who are reporting data to Software Use Analysis. The "Duration of Scan" property will likely report an error if the scan is in progress, and probably for other reasons I have not yet investigated. The "ScanLog-ModTime" property should be the time of the last scan, unless a scan is in progress. The "Time between Scan & Upload" property is the difference of the mod time of the newest upload and the mod time of the scan log, which may be incorrect/negative if a scan is in progresss.

NOTE: This is "BETA" code and is not fully tested or in full production. This is an attempt to gather helpful feedback on the status of SUA on the client.

NOTE: This has only been tested on Windows, but should work on other OSes with minor adjustments.

http://bigfix.me/cdb/analysis/2994536


Property Details

ID2994536
StatusBeta - Preliminary testing ready for more
TitleSUA - Software Usage Analysis Info - Windows
DomainBESC
Added by on 6/20/2013 1:20:07 PM
Last Modified by on 6/20/2013 1:20:34 PM
Counters 8160 Views / 96 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 1 rating. ** Log In or Register to add your rating.

Properties

ScanLog-ModTime
Period 6 hours
 
  * Results in a true/false
Show indented relevance
if(not(exists parent folder of regapp "besclient.exe" AND exists folder (pathname of parent folder of regapp "besclient.exe" & "\LMT\ITSIT") AND exists file (pathname of parent folder of regapp "besclient.exe" & "\LMT\ITSIT\scan.log") )) then ERROR "no log" else (modification time of file (pathname of parent folder of regapp "besclient.exe" & "\LMT\ITSIT\scan.log") as string)
Results to Upload?
Period 6 hours
 
  * Results in a true/false
Show indented relevance
if (exists value of settings "ITSIT_Scanner_OutDir" of client) then (exists file (computer id as string & ".xml") of folder (value of settings "ITSIT_Scanner_OutDir" of client)) else (if (name of operating system as lowercase starts with "win") then (exists file (computer id as string & ".xml") of folder (pathname of parent folder of regapp "besclient.exe" & "\LMT\ITSIT")) else (exists file (computer id as string & ".xml") of folder ((pathname of parent folder of parent folder of client folder of site "actionsite") & "/LMT/ITSIT")))
Last Upload? (i think)
Period 6 hours
 
  * Results in a true/false
Show indented relevance
maximum of modification times of files whose(name of it ends with ".xml.bz2") of folder (pathname of parent folder of regapp "besclient.exe" & "\LMT\ITSIT")
Duration of Scan?
Period 6 hours
 
  * Results in a true/false
Show indented relevance
((following text of first ";" of it as string as time)-(preceding text of first ";" of it as string as time)) of concatenation ";" of (it as string) of following texts of firsts "# " of lines whose(it does not contain "Started" AND it does not contain "Complete" AND it contains ":" AND it contains "# ") of file "scan.log" of folder (pathname of parent folder of regapp "besclient.exe" & "\LMT\ITSIT")
Time between Scan & Upload
Period 6 hours
 
  * Results in a true/false
Show indented relevance
(maximum of modification times of files whose(name of it ends with ".xml.bz2") of folder (pathname of parent folder of regapp "besclient.exe" & "\LMT\ITSIT")) - (modification time of file (pathname of parent folder of regapp "besclient.exe" & "\LMT\ITSIT\scan.log"))
CIT Scan Count
Period 6 hours
 
  * Results in a true/false
Show indented relevance
if (not exists setting "CIT_Scan_Count" whose(exists value of it) of client) then ERROR "not set" else value of setting "CIT_Scan_Count" of client
ITSIT Scan Count
Period 6 hours
 
  * Results in a true/false
Show indented relevance
if (not exists setting "ITSIT_Scan_Count" whose(exists value of it) of client) then ERROR "not set" else value of setting "ITSIT_Scan_Count" of client
Version of CIT Scanner
Period 6 hours
 
  * Results in a "string"/number
Show indented relevance
if(exists folder "C:\Program Files\tivoli\cit\properties\version" AND exists file whose(name of it ends with ".cmptag") of folder "C:\Program Files\tivoli\cit\properties\version") then ((it as text) of xpaths "/Component/ComponentVersion" of xml document of file whose(name of it ends with ".cmptag") of folder "C:\Program Files\tivoli\cit\properties\version") else ERROR "No CIT Scanner"
Location of CIT Scanner
Period 12 hours
 
  * Results in a "string"/number
Show indented relevance
if (exists folder "LMT\CIT" of parent folder of client AND exists file "installCITlog.txt" of folder "LMT\CIT" of parent folder of client) then (following text of first "Default dest: " of line whose(it starts with "Default dest: ") of file "installCITlog.txt" of folder "LMT\CIT" of parent folder of client) as trimmed string else ERROR "No CIT Scanner"
ITSIT_Scanner_Version file
Period 6 hours
 
  * Results in a "string"/number
Show indented relevance
version of file "itsit.exe" of folder "LMT\ITSIT" of parent folder of client
ITSIT_Scanner_Version setting
Period 6 hours
 
  * Results in a true/false
Show indented relevance
if (not exists setting "ITSIT_Scanner_Version" whose(exists value of it) of client) then ERROR "not set" else value of setting "ITSIT_Scanner_Version" of client
_BESClient_UsageManager_EnableAppUsageSummary
Period 6 hours
 
  * Results in a true/false
Show indented relevance
if (not exists setting "_BESClient_UsageManager_EnableAppUsageSummary" whose(exists value of it) of client) then ERROR "not set" else value of setting "_BESClient_UsageManager_EnableAppUsageSummary" of client
_BESClient_UsageManager_EnableAppUsageSummaryApps
Period 6 hours
 
  * Results in a true/false
Show indented relevance
if (not exists setting "_BESClient_UsageManager_EnableAppUsageSummaryApps" whose(exists value of it) of client) then ERROR "not set" else value of setting "_BESClient_UsageManager_EnableAppUsageSummaryApps" of client
ITSIT_Scanner_Debug
Period 6 hours
 
  * Results in a true/false
Show indented relevance
if (not exists setting "ITSIT_Scanner_Debug" whose(exists value of it) of client) then ERROR "not set" else value of setting "ITSIT_Scanner_Debug" of client
ITSIT_Deny
Period 6 hours
 
  * Results in a true/false
Show indented relevance
if (not exists setting "ITSIT_Deny" whose(exists value of it) of client) then ERROR "not set" else value of setting "ITSIT_Deny" of client
ITSIT_Scanner_OutDir
Period 6 hours
 
  * Results in a true/false
Show indented relevance
if (not exists setting "ITSIT_Scanner_OutDir" whose(exists value of it) of client) then ERROR "not set" else value of setting "ITSIT_Scanner_OutDir" of client
CIT_Deny
Period 6 hours
 
  * Results in a true/false
Show indented relevance
if (not exists setting "CIT_Deny" whose(exists value of it) of client) then ERROR "not set" else value of setting "CIT_Deny" of client
Location of CIT Scanner
Period 6 hours
 
  * Results in a true/false
Show indented relevance
(following text of first "CIT_HomeDirectory = " of lines whose(it starts with "CIT_HomeDirectory = ") of file "cit.ini" of folder "cit" of windows folder) as trimmed string
Version of CIT Scanner
Period 6 hours
 
  * Results in a true/false
Show indented relevance
(following text of first "CIT_Version = " of lines whose(it starts with "CIT_Version = ") of file "cit.ini" of folder "cit" of windows folder) as trimmed string
CIT_BuildDate
Period 6 hours
 
  * Results in a true/false
Show indented relevance
(following text of first "CIT_BuildDate = " of lines whose(it starts with "CIT_BuildDate = ") of file "cit.ini" of folder "cit" of windows folder) as trimmed string
CIT_Exploiters
Period 6 hours
 
  * Results in a true/false
Show indented relevance
(following text of first "CIT_Exploiters = " of lines whose(it starts with "CIT_Exploiters = ") of file "cit.ini" of folder "cit" of windows folder) as trimmed string
CIT_ConfigRootDirectory
Period 6 hours
 
  * Results in a true/false
Show indented relevance
(following text of first "CIT_ConfigRootDirectory = " of lines whose(it starts with "CIT_ConfigRootDirectory = ") of file "cit.ini" of folder "cit" of windows folder) as trimmed string

Relevance

isWindows (Relevance 1172)
Used in 1112 fixlets and 524 analyses   * Results in a true/false
Show indented relevance
windows of operating system

Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
Analyses tend to be rather safe since they can't make changes to the system. This analysis was used in production, but I haven't used it recently so it is possible that some properties won't work, but even so they shouldn't cause any harm.
Devesh -
Hi , has this been tried and tested ? is this safe to use?