q: (following text of last “/” of preceding text of first “.vmx” of it, following text of last "= " of next line of it) of lines whose (it contains “vmx”) of file "C:\temp\temp.txt"
A: server1, on
A: server2, on
A: server3-temp, off
A: server4, on
name of operating system as lowercase contains “vmware” and exists file “/var/opt/BESClient/getstate.txt”
Analysis:
Title: Virtual Guest and State Info (getstate)
(following text of last “/” of preceding text of first “.vmx” of it as uppercase& " - " & following text of last "= " of next line of it as uppercase) of lines whose (it contains “vmx”) of file “/var/opt/BESClient/getstate.txt”
Title: Virtual Guest and Snapshot Info (hassnapshot)
(following text of last “/” of preceding text of first “.vmx” of it as uppercase& " - " & following text of last "= " of next line of it as uppercase) of lines whose (it contains “vmx”) of file “/var/opt/BESClient/hassnapshot.txt”
You could create a automatic computer group with a policy action that would run every time a computer becomes relevant to it and set the timing on the group
Below, this way every 12 hours it would become relevant, it would check the file time and re run it twice a day
it will also run if the file does not exist
Automatic Computer Group Relevance 2 times per day
(name of operating system as lowercase contains “esx”) and (not exists file “/var/opt/BESClient/getstate.txt”) or ((modification time of file “/var/opt/BESClient/getstate.txt”) < (now - 12 * hour))
Automatic Computer Group Relevance 1 times per day
(name of operating system as lowercase contains “esx”) and (not exists file “/var/opt/BESClient/getstate.txt”) or ((modification time of file “/var/opt/BESClient/getstate.txt”) < (now - 1 * day))
I do the same thing with DMIDecode Information, I refresh this every week
(version of client >= “6.0.0.0”) and (true and exists true whose (if true then (((name of operating system as lowercase contains “linux”) or (name of operating system as lowercase contains “esx”)) and ((not exists file “/root/dmidecode.out”) or ((modification time of file “/root/dmidecode.out”) < (now - 7 * day)))) else false))