Identifying RAM by Server Type

(imported topic written by FITZPAW91)

Hi

I am trying to create an analysis that will identify the model of RAM based on they model of the server. I created a Property, and when I run the first if then else, it works fine. But if I add a second one with an OR between them I get a Boolean error. This is what I have so far.

(If string value of selects “Model from Win32_ComputerSystem” of wmi contains “ProLiant BL20p G3” Then “2-way interleaved PC3200 DDR2 SDRAM 400 MHz” Else “N/A”) => WORKS

(If string value of selects “Model from Win32_ComputerSystem” of wmi contains “ProLiant BL20p G3” Then “2-way interleaved PC3200 DDR2 SDRAM 400 MHz” Else “N/A”) OR (If string value of selects “Model from Win32_ComputerSystem” of wmi contains “ProLiant BL20p G2” Then “2-way interleaved PC2100 DDR SDRAM 266MHz” Else “N/A”) => DOESN’T WORK

Any help would be appreciated.

Thanks

William

(imported comment written by BenKus)

Hi William,

You basically will want to do a nested if:

(If string value of selects “Model from Win32_ComputerSystem” of wmi contains “ProLiant BL20p G3” Then “2-way interleaved PC3200 DDR2 SDRAM 400 MHz” Else If string value of selects “Model from Win32_ComputerSystem” of wmi contains “ProLiant BL20p G2” Then “2-way interleaved PC2100 DDR SDRAM 266MHz” Else “N/A”)

OR if you want a more efficient version that only does one wmi call:

(If (it contains “ProLiant BL20p G3”) Then “2-way interleaved PC3200 DDR2 SDRAM 400 MHz” Else If (it contains “ProLiant BL20p G2”) Then “2-way interleaved PC2100 DDR SDRAM 266MHz” Else “N/A”) of string value of selects “Model from Win32_ComputerSystem” of wmi

Ben