Set failoverrelaylist randomly
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
26673 | |
Beta - Preliminary testing ready for more | |
Set failoverrelaylist randomly | |
BESC | |
Internal | |
3/14/2020 12:00:00 AM | |
Randomize,tuple,failover,dmz,internet relay selection | |
True | |
Jsaylor on 3/16/2020 1:34:20 PM | |
Jsaylor on 3/16/2020 1:34:20 PM | |
2449 Views / 11 Downloads | |
* Average over 0 ratings. ** Log In or Register to add your rating. |
Relevance
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: |