Uninstall BES Relay task fails with "Relevance substitution failed"

(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!

(imported comment written by coreym91)

I still haven’t been able to get this to work anywhere. All of the failures have been the same “Relevance Substitution failed” error. Does anybody have any experience with this task?

Some more information:

BES Server Version 8.0.627

BES Console Version 8.0.627

BES Relay Versions 7.2.5.22-8.0.627

BES Client Versions 7.2.4.60-7.2.5.22

OS WinXP 5.1.2600

(imported comment written by BenKus)

Pre-8.0 Clients don’t know about the “|” operator… I will inform the Fixlet team to fix this…

Thanks!

Ben

(imported comment written by coreym91)

Thank you Ben! It looks like I will have to upgrade the relay and client on these to version 8 in order for this to work for now. I’ll test it and let you know how it goes.