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

0 Votes

Description

This fixlet will semi-randomly pick four relays from a comma separated list of any number of relays.  Edit value of the "relaylist" parameter in the first line of the actionscript to set your list of relays.

The first two picks are static per endpoint, based on the computer ID and the expiration time of the client certificate.  These will stay the same through multiple executions of the fixlet.

The second two picks are effectively random, and will change every time this fixlet is executed.

 

Note:  duplicate picks are possible, so individual endpoints may end up with the same relay in two or more of the four slots.


Property Details

ID26673
StatusBeta - Preliminary testing ready for more
TitleSet failoverrelaylist randomly
DomainBESC
SourceInternal
Source Release Date3/14/2020 12:00:00 AM
KeywordsRandomize,tuple,failover,dmz,internet relay selection
Is TaskTrue
Added by on 3/16/2020 1:34:20 PM
Last Modified by on 3/16/2020 1:34:20 PM
Counters 2449 Views / 11 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 94 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
parameter "relaylist" = "server1.otherdomain.com,server2.hcl.com,127.0.0.1,192.168.3.1"

setting "_BESClient_RelaySelect_FailoverRelayList" = "{((tuple item whose (index of it = computer id mod (number of tuple items of tuple string of substrings separated by "," of parameter "relaylist")) of tuple string of substrings separated by "," of parameter "relaylist") as string) & ";" & ((tuple item whose (index of it = (now - expiration date of client license) / second mod (number of tuple items of tuple string of substrings separated by "," of parameter "relaylist")) of tuple string of substrings separated by "," of parameter "relaylist") as string) & ";" & ((tuple item whose (index of it = (now - last report time of client) / second mod (number of tuple items of tuple string of substrings separated by "," of parameter "relaylist")) of tuple string of substrings separated by "," of parameter "relaylist") as string) & ";" & ((tuple item whose (index of it = uptime of operating system / second mod (number of tuple items of tuple string of substrings separated by "," of parameter "relaylist")) of tuple string of substrings separated by "," of parameter "relaylist") as string)}" 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!