if
(
exists wmi
)
then if
(
exists main gather service
)
then
(
(
(
(
string value of selects "WorkingSetSize from win32_process where Name = 'besrootserver.exe'" of wmi
)
as integer
)
/
(
1024*1024
)
)
as string & " MB"
)
else
(
(
(
(
string value of selects "WorkingSetSize from win32_process where Name = 'besrelay.exe'" of wmi
)
as integer
)
/
(
1024*1024
)
)
as string & " MB"
)
else ERROR "WMI not available"
if (exists wmi) then if(exists main gather service) then ((((string value of selects "WorkingSetSize from win32_process where Name = 'besrootserver.exe'" of wmi) as integer) / (1024*1024)) as string & " MB") else ((((string value of selects "WorkingSetSize from win32_process where Name = 'besrelay.exe'" of wmi) as integer) / (1024*1024)) as string & " MB") else ERROR "WMI not available"