Global Properties Re-Write
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
13 | |
Global Properties Re-Write | |
BES | |
RAM WM_CPU WM_SystemDrive properties Global | |
danielheth on 10/17/2012 9:32:22 AM | |
danielheth on 10/17/2012 9:37:41 AM | |
8873 Views / 27 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Properties
WM_OSType
Period
1 day
* Results in a "string"/number |

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 |

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 |

(significant digits 2 of (speed of main processor / mhz)) as integer
WM_RAM (MB)
Period
6 hours
* Results in a "string"/number |

(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 |

((total space of drive of system folder)/(1024 * 1024)) as integer
WM_SystemDrive-FreeSpace (MB)
Period
1 hour
* Results in a "string"/number |

((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 |

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
Sharing
Social Media: |
Comments
![]() |
|
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)" |