Set FailoverRelayList randomly v2
Log In or Register to download the BES file, and more.

0 Votes

Versioning - This is the latest version.

1Set failoverrelaylist randomly3/16/2020 1:34:20 PM
2Set FailoverRelayList randomly v23/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

ID27374
StatusAlpha - Code that was just developed
TitleSet FailoverRelayList randomly v2
DomainBESC
SourceInternal
Source Release Date3/14/2020 12:00:00 AM
KeywordsRandomize,tuple,failover,dmz,internet relay selection
Is TaskTrue
Added by on 3/11/2025 1:37:10 PM
Last Modified by on 3/11/2025 1:37:10 PM
Counters 124 Views / 0 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 96 fixlets and 101 analyses   * Results in a true/false
Show indented relevance
true

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:
Share this page on Yammer

Comments

Log In or Register to leave comments!