(imported topic written by coreym91)
I am attempting to utilize the “Uninstall BES Relay” task on approximately 100 relays, however I am encountering the following error on every one attempted thus far:
At 22:06:09 -0500 - actionsite (hxxp://bes.x.com:52311/cgi-bin/bfgather.exe/actionsite)
Relevant - Uninstall BES Relay (fixlet:11057)
At 22:06:14 -0500 -
Report posted successfully.
At 22:06:15 -0500 - actionsite (hxxp://bes.x.com:52311/cgi-bin/bfgather.exe/actionsite)
Start monitoring action - Status of Action 11057 (fixlet:2147494705)
At 22:06:15 -0500 -
ActionLogMessage: (action 11057 ) Action signature verified
ActionLogMessage: (action 11057 ) starting action
At 22:06:15 -0500 - BES Support (hxxp://sync.bigfix.com/cgi-bin/bfgather/bessupport)
Command failed (Relevance substitution failed) wait {preceding text of last “%00” of ((value “UninstallString” of key whose ((value “DisplayName” of it = “BigFix Enterprise Relay” OR value “DisplayName” of it = “Tivoli Endpoint Manager Relay”) and name of it starts with “{”) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry) as string) | ((value “UninstallString” of key whose ((value “DisplayName” of it = “BigFix Enterprise Relay” OR value “DisplayName” of it = “Tivoli Endpoint Manager Relay”) and name of it starts with “{”) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry) as string)} RESTARTBESCLIENT=0 /qn (fixlet 11057)
At 22:06:16 -0500 -
ActionLogMessage: (action 11057 ) ending action
At 22:06:16 -0500 - actionsite (hxxp://bes.x.com:52311/cgi-bin/bfgather.exe/actionsite)
Not Relevant - Uninstall BES Relay (fixlet:11057)
At 22:06:53 -0500 -
Report posted successfully.
I have plugged the failing command into the fixlet debugger and received the error: “Relevance clauses must be surrounded by { and } guards.” I also plugged the relevance stripped of the actions into qna and it returned the expected result - MsiExec.exe /X{9E387FEF-EF1E-4EDA-B016-A667461D80CE}
According to http://support.bigfix.com/cgi-bin/kbdirect.pl?id=1230 there is a way to escape the special {} characters used in relevance substitution, however I haven’t been able to get it to work.
Any ideas? This being a BES Support site fixlet I assumed it would work without any modification, however I may be missing something and could use some help.
Thanks!