Global Properties Re-Write
Log In or Register to download the BES file, and more.

0 Votes

Description

This set of properties attempts to bring some of the more common properties into a format that is easier to parse/compare by stripping parts from existing property values, and also to make more generic properties from provided BigFix ones.

e.g. The original RAM property currently returns "1024 MB", and here, whould return "1024" with the Property Name of RAM (MB)


Property Details

ID13
TitleGlobal Properties Re-Write
DomainBES
KeywordsRAM WM_CPU WM_SystemDrive properties Global
Added by on 10/17/2012 9:32:22 AM
Last Modified by on 10/17/2012 9:37:41 AM
Counters 8873 Views / 27 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

WM_OSType
Period 1 day
 
  * Results in a "string"/number
Show indented relevance
IF (name of operating system as lowercase starts with "aix") THEN "AIX" ELSE IF (name of operating system as lowercase starts with "hp-ux") THEN "HPUX" ELSE IF (name of operating system as lowercase starts with "sunos") THEN "SUNOS" ELSE IF ((name of operating system as lowercase starts with "linux" OR name of operating system as lowercase starts with "vmware esx")) THEN "LINUX" ELSE IF ((name of operating system as lowercase starts with "mac")) THEN "MAC" ELSE IF ((name of operating system as lowercase starts with "win")) THEN "WINDOWS" ELSE "other"
WM_SystemType
Period 1 day
 
  * Results in a "string"/number
Show indented relevance
IF (name of operating system as lowercase starts with "win") THEN (if (name of operating system = "Win95" OR name of operating system = "Win98" or name of operating system = "WinME") then "Workstation" else (if (value "ProductType" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions" of registry = "WinNT") then "Workstation" else "Server")) ELSE IF (name of operating system as lowercase contains "server" OR name of operating system as lowercase contains "aix" OR name of operating system as lowercase contains "hp-ux" OR name of operating system as lowercase contains "sunos" OR name of operating system as lowercase contains "vmware esx" OR (name of operating system as lowercase contains "linux" AND (name of operating system as lowercase contains "redhat enterprise as " OR name of operating system as lowercase contains "redhat enterprise es "))) THEN "Server" ELSE if ((name of operating system as lowercase contains "linux" AND name of operating system as lowercase contains "desktop") OR name of operating system as lowercase contains "mac os x") THEN "Workstation" else "Unknown" & name of operating system
WM_CPU (MHz)
Period 1 day
 
  * Results in a "string"/number
Show indented relevance
(significant digits 2 of (speed of main processor / mhz)) as integer
WM_CPU (Family)
Period 1 day
 
  * Results in a "string"/number
Show indented relevance
family name of main processor as string
WM_RAM (MB)
Period 6 hours
 
  * Results in a "string"/number
Show indented relevance
(if (it > 128) then (((it / 32) * 32) + (if (it mod 32 > 16) then 32 else 0)) else it) of (size of ram / (1024*1024)) as integer
WM_SystemDrive-TotalSize (MB)
Period 1 day
 
  * Results in a "string"/number
Show indented relevance
((total space of drive of system folder)/(1024 * 1024)) as integer
WM_SystemDrive-FreeSpace (MB)
Period 1 hour
 
  * Results in a "string"/number
Show indented relevance
((free space of drive of system folder)/(1024 * 1024)) as integer
Drive||Free|Total of Local Drives (MB)
Period 30 minutes
 
  * Results in a "string"/number
Show indented relevance
IF name of operating system as lowercase contains "win" THEN concatenation "," of (preceding text of first ":" of name of it as string & "||" & (if exists free space of it then ((free space of it/ (1024 * 1024)) as string) else "NONE") & "|" & (if exists total space of it then ((total space of it / (1024 * 1024)) as string) else "NONE")) of drives whose (type of it = "DRIVE_FIXED") ELSE concatenation "," of (following text of first "/" of name of it as string & "||" & (if exists free space of it then ((free space of it/ (1024 * 1024)) as string) else "NONE") & "|" & (if exists total space of it then ((total space of it / (1024 * 1024)) as string) else "NONE")) of drives whose (type of it = "DRIVE_FIXED")

Relevance

Used in 96 fixlets and 101 analyses   * Results in a true/false
Show indented relevance
true

Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
The analysis here: http://bigfix.me/analysis/details/2994533 contains a property called "Spaces of Drives" which is a OS indepentant option that could be used instead of "Drive||Free|Total of Local Drives (MB)"