Failover Relay Checking

(imported topic written by SystemAdmin)

Is there a way within relevance (something we can throw into QnA) that will tell us true or false if the client is currently registered with the failover relay instead of relay 1 or 2?

We have a setup where we manually configure __RelayServer1 and __RelayServer2. We also configure the _BESClient_RelaySelect_FailoverRelay setting as a last resort registration.

I found a vague reference to “current relay” within the help files but nothing is helping answer my question. Any Ideas?

(imported comment written by NoahSalzman)

Try “settings of client”…

Q: settings of client

A: Location By Office=

A: Organization=

A: _BESClient_ActionManager_HasMainDialog=1

A: _BESClient_ActionManager_TrayMode=AlwaysTray

A: _BESClient_LastShutdown_Reason=Service manager stop request

A: _BESClient_UploadManager_BufferDirectory=%252fLibrary%252fApplication Support%252fBigFix%252fBES Agent%252f__BESData%252f__Global%252fUpload

A: __LockState=false

A: __Relay_Control_RootServer=http%253a%252f%252fbigfix-nds%253a52311%252fcgi-bin%252fbfgather%252eexe%252factionsite

T: 5592550

(imported comment written by SystemAdmin)

I found what i was looking for:

(not ((value of setting “__RelayServer1” of client as string) contains (if (name of registration server as string does not contain “127.0.0.1”) then (name of registration server as string) else if (name of registration server as string contains “127.0.0.1” and exists setting “_BESRelay_PostResults_ParentRelayURL” of client and exists value of setting “_BESRelay_PostResults_ParentRelayURL” of client as string) then (preceding text of first “/” of (following text of first “//” of (value of setting “_BESRelay_PostResults_ParentRelayURL” of client))) else “BES Root Server”)) and not ((value of setting “__RelayServer2” of client as string) contains (if (name of registration server as string does not contain “127.0.0.1”) then (name of registration server as string) else if (name of registration server as string contains “127.0.0.1” and exists setting “_BESRelay_PostResults_ParentRelayURL” of client and exists value of setting “_BESRelay_PostResults_ParentRelayURL” of client as string) then (preceding text of first “/” of (following text of first “//” of (value of setting “_BESRelay_PostResults_ParentRelayURL” of client))) else “BES Root Server”)))

This uses the global “Relay” property to determine who it is currently talking to then compares that against both __RelayServer1 and __RelayServer2.