Set FailoverRelayList randomly v2
0 Votes |
Versioning - This is the latest version.
1 | Set failoverrelaylist randomly | 3/16/2020 1:34:20 PM |
2 | Set FailoverRelayList randomly v2 | 3/11/2025 1:37:10 PM |
Description
This fixlet will randomize a list of any number of relays in both a primary a secondary group, and then set the _BESClient_RelaySelect_FailoverRelayList with the resulting randomized list.
Each relay value can be anything that resolves to a valid IP address, the list must be separated by commas. Edit the "relaylist" and "relaysecondarylist" parameters to values that work for your environment, for example, change the bolded text in the Actions tab:
parameter "relaylist" = "server1.otherdomain.com,server2.hcl.com,127.0.0.1,192.168.3.1"
Every execution will re-randomize the values.
Property Details
27374 | |
Alpha - Code that was just developed | |
Set FailoverRelayList randomly v2 | |
BESC | |
Internal | |
3/14/2020 12:00:00 AM | |
Randomize,tuple,failover,dmz,internet relay selection | |
True | |
Jsaylor on 3/11/2025 1:37:10 PM | |
Jsaylor on 3/11/2025 1:37:10 PM | |
124 Views / 0 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance
Actions
Action 1 (default)
Action Link Click
here to deploy this action.
Script Type
BigFix Action Script
//Change this value to the first set of relays that should be selected, such as all internet-facing relays
parameter "relaylist" = "server1.otherdomain.com,server2.hcl.com,127.0.0.1,192.168.3.1"
//Change this value to the second set of relays that should be selected, such as intranet failover relays
parameter "relaysecondarylist" = "internalrelay.com,realserver.com,100.0.0.1"
setting "_BESClient_RelaySelect_FailoverRelayList" = "{concatenation ";" of following texts of lasts "|" of unique values of (random integer of 10000 as string & "|" & it) of (tuple string items of substrings separated by "," of parameter "relaylist") & ";" & concatenation ";" of following texts of lasts "|" of unique values of (random integer of 10000 as string & "|" & it) of (tuple string items of substrings separated by "," of parameter "relaysecondarylist")}" on "{now}" for client
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
Social Media: |