This post is more than 5 years old
8 Posts
0
174517
May 24th, 2010 22:00
Wildcards in rule conditions
I have several VMs which I know will never get VMware tools installed, so I want to remove them from the alarm. I managed to get the rule to work if I add "||(scope.get("name") == "LXACS001")" to the "VMW Virtual Machine VMware Tools" condition. However, I really don't want to setup 4 different conditions to the IF statement. Can somebody please tell me how I can use a wildcard (or perhaps there's a better way to do this)? I want something like: "||(scope.get("name") like "LXACS%")".
Thanks!!
Thanks!!



lmurphy1
57 Posts
0
June 14th, 2010 19:00
VMWVirtualMachine where name ! like "LXACS%"
-Larry
brian.laws
8 Posts
0
June 8th, 2010 18:00
lmurphy1
57 Posts
0
June 8th, 2010 18:00
-LM
brian.laws
8 Posts
0
June 14th, 2010 19:00
brian.laws
8 Posts
0
June 14th, 2010 19:00
lmurphy1
57 Posts
0
October 2nd, 2010 17:00
eg.. VMWVirtualMachineMemory where name ! like "LXACS%'
or you can be more specific like:
VMWVirtualMachineMemory where name != "LXACS-myVM"
That will tell it to exclude just LXACS-myVM.
-Larry
lmurphy1
57 Posts
0
October 3rd, 2010 10:00
You can do this via cmd line on the vFog server:
Open cmd prompt and cd intto the vfoglight\bin folder, then run the below command:
fglcmd -ussr foglight -pwd foglight -cmd util:configexport -f c:\rules.xml
Of course, change the user/password strings as needed. This create an xml file of the rules. It can be imported back in.
-Larry
lmurphy1
57 Posts
0
October 3rd, 2010 10:00
fglcmd -usr foglight -pwd foglight -cmd util:configexport -f c:\rules.xml