(imported topic written by Bigfeex)
Pretense:
-
I have a run once policy that sets all systems to automatic relay selection.
-
I have policies setup to install relays on systems based upon name from automatic computer groups.
Ask:
- I would like to use these same automatic comptuer groups for to define manual relay selection and specify specific relays. I have part of this working, as defined below, but it’s only working the first time I apply the policy against the auto group. If I change a system in this auto group back to auto relay selection, the policy does not appear to be properly re-run against the systems. I set some systems to auto after the first run of this and the policy is not changing them to the desired settings. I think this has something to do with the date parameter defined in the action.
Ultimatley, I would like to define that, if auto is set or a relay other than defined below in the action is set, this policy become relevant and make the intended relay changes. This way, when a new relay is installed I can direct it to an intended set of main relays automagically.
Current policy settings:
Messages
No user interface will be shown before running this action.
No message will be shown while running this action.
Users
This action will run independently of user presence.
User interface will be shown to all users.
Execution
This action will never expire.
It will run at any time of day, on any day of the week.
If the action becomes relevant after it has successfully executed, the action will be reapplied as a policy an unlimited number of times.
If the action fails, it will not be retried.
Post-Action
No operations will occur after the action completes.
Relevance:
(value of it does not equal ((“0”) as string)) of setting “__RelaySelect_Automatic” of client
Action Script:
setting “__RelaySelect_Automatic”=“0” on “{parameter “action issue date” of action}” for client
setting “__RelayServer1”=“http%3a%2f%2fTB-TRNDRLY-P01%2eCorp%2eTrueblueinc%2ecom%3a53220%2fbfmirror%2fdownloads%2f” on “{parameter “action issue date” of action}” for client
setting “__RelayServer2”=“http%3a%2f%2fTB-TRNDRLY-P02%2eCorp%2eTrueblueinc%2ecom%3a53220%2fbfmirror%2fdownloads%2f” on “{parameter “action issue date” of action}” for client