You are not logged in.
Any idea on why the video portion is failing on approx 5k of our systems?
Free Disk Space Check Free Disk Space OK
Memory Check System Memory OK.
Processor Speed Check Processor Speed OK
Video Card Memory Check Video RAM OK
Singular expression refers to non-unique object.
Last edited by mcalvi (2009-08-24 13:29:49)
Offline
The property name is
Video Card Memory Check
the relevance is
(if (it < 128) then ("Insufficient Video Memory. Video Memory in MB: " & (it as string)) else ("Video RAM OK")) of ((numeric value of (first match (regex "\d+$") of it) of ((select "adapterram from Win32_VideoController" of wmi) as string)) / 1048576)
Last edited by mcalvi (2009-08-25 05:34:32)
Offline
On the machines that are failing: is there more than one "adapterram"? My laptop requires me to use "selects" instead of "select" with that WMI query as there are two adapterram results.
Offline
the relevance debugger gives me the following.
q: (select "adapterram from Win32_VideoController" of wmi)
A: AdapterRAM=1824163840
E: Singular expression refers to non-unique object.
q: (selects "adapterram from Win32_VideoController" of wmi)
A: AdapterRAM=1824163840
A: AdapterRAM
q: (if (it < 128) then ("Insufficient Video Memory. Video Memory in MB: " & (it as string)) else ("Video RAM OK")) of ((numeric value of (first match (regex "\d+$") of it) of ((select "adapterram from Win32_VideoController" of wmi) as string)) / 1048576)
A: Video RAM OK
E: Singular expression refers to non-unique object.
q: (if (it < 128) then ("Insufficient Video Memory. Video Memory in MB: " & (it as string)) else ("Video RAM OK")) of ((numeric value of (first match (regex "\d+$") of it) of ((selects "adapterram from Win32_VideoController" of wmi) as string)) / 1048576)
A: Video RAM OK
E: Singular expression refers to nonexistent object.
Offline
You can use:
"integer values of selects..." instead of just "selects..."
That will work in the case where there are two adapterrram results but only one has a value associated with it. If you have boxes that return multiple apaaterram values it will probably not work.
Offline
will it work for systems with one value as well?
Offline
Any more updates in this thread? Even using "integer values of selects" I still receive:
<multiple results; error>
Debugger on every one (sample >25) of these machines returning this value report:
q:(if (it < 128) then ("Insufficient. Video Memory in MB: " & (it as string)) else ("Video RAM OK")) of ((numeric value of (first match (regex "\d+$") of it) of ((integer values of selects "adapterram from Win32_VideoController" of wmi) as string)) / 1048576)
A:"Video RAM OK"
E:"Singular expression refers to a non-unique object"
OR
q:(if (it < 128) then ("Insufficient. Video Memory in MB: " & (it as string)) else ("Video RAM OK")) of ((numeric value of (first match (regex "\d+$") of it) of ((selects "adapterram from Win32_VideoController" of wmi) as string)) / 1048576)
A:"Video RAM OK"
E:"Singular expression refers to a non-unique object"
OR
q:(if (it < 128) then ("Insufficient. Video Memory in MB: " & (it as string)) else ("Video RAM OK")) of ((numeric value of (first match (regex "\d+$") of it) of ((select "adapterram from Win32_VideoController" of wmi) as string)) / 1048576)
A:"Video RAM OK"
E:"Singular expression refers to a non-unique object"
Any help would be fantastic!
Offline
It needed a little work ("numeric value" --> "numeric values" and moving the division to a different place in the expression)... Try this:
q:(if (it / 1048576 < 128) then ("Insufficient. Video Memory in MB: " & (it as string)) else ("Video RAM OK")) of ((numeric values of (first match (regex "\d+$") of it) of ((integer values of selects "adapterram from Win32_VideoController" of wmi) as string)) )
Ben
Offline
Ben,
Thanks for taking a look! I'll give it a try and post results.
Offline
Ben,
The relevance actually works a lot better, however now im seeing:
<multiple results>
or
<none> (these didn't exist before)
on several machines. When hovering my mouse over the "<multiple results>" objects, I get:
Video RAM OK
Video RAM OK
if I hover over the "<none>" entries, there are no results.
Again, thanks so much for your help. A lot of this is out of my league.
Offline