Custom site relevance

(imported topic written by cstoneba)

I have a server that I put into a custom site with the code:

custom site subscribe CustomSite_Patching as “Patching” on “{now}”

However, when I run my relevance check in QnA on the client, it reports back that it is not in the custom site:

q: exists site whose (type of it = “Custom Site” and site tag of it = “CustomSite_Patching”)

A: False

any suggestions?

(imported comment written by BenKus)

I think the “site” inspector looks in the __BESData subfolder of the client to see if the site is subscribed… But since the “client” in this case is QNA, it looks in its current subfolder rather than the besclient.exe’s folder…

Ben

(imported comment written by cstoneba)

so what is the best way to have a relevance statement determine if a client is in a specific custom site?

(imported comment written by cstoneba)

anyone?

(imported comment written by JasonHonda)

That should be the correct relevance. What Ben is saying is using QNA will not give you the same results as actual client relevance. You can figure out if it will work by using a newer 8.1 version of the Fixlet Debugger and choose from the Debug menu, to Evaluate Using local client evaluator.

(imported comment written by cstoneba)

For some reason, this fixlet is becoming relevant and I thought it was because the site relevany was not working properly, but maybe I am overlooking something else. Jason, can you take a look?

((if (exists setting “day_0” whose (value of it != “” AND value of it !=“Asset Not in SM”) of client AND exists setting “days_after_day_0” whose (value of it != “”) of client AND exists setting “week_number_day_0” whose (value of it != “”) of client AND exists setting “time” whose (value of it != “”) of client AND exists setting “duration” whose (value of it != “”) of client) then (((if (day_of_month of current date as integer < value of setting “days_after_day_0” of client as integer) then (((now < it) AND (now > it + (value of setting “duration” of client as time interval))) of (((((first (value of setting “day_0” of client as day_of_week) of (current month_and_year - 1*month)) + ((value of setting “week_number_day_0” of client as integer - 1)*week) + ((value of setting “days_after_day_0” of client as integer)*day)) as string) & " " & (value of setting “time” of client)) as local time)) else if (value of setting “PatchProfileOverride” of client as string = “0”) then true else (((now < it) AND (now > it + (value of setting “duration” of client as time interval))) of ((((((first (value of setting “day_0” of client as day_of_week) of current month_and_year) + ((value of setting “week_number_day_0” of client as integer -1 )*week)) + (value of setting “days_after_day_0” of client as integer)*day) as string) & " " & (value of setting “time” of client)) as local time))))) else if (value of setting “PatchProfileOverride” of client as string = “0”) then true else false)) or (now >= value of setting “PatchingRebootStop” of client as time)