AAC - Set Relay Diagnostic Password and Enable Relay Diagnostic
0 Votes |
Description
This Fixlet prompts for a password that will be required to access the Relay diagnostic page of the relays where the action will be distributed.
Relay Password will travel encrypted in the fixlet action and will be obfuscated on the relay settings.
After setting the password the Relay Diagnostic will be enabled and Relay service will be restarted.
Written by andrea.capasso@hcl.com using documentation for parametrized fixlets
"Creating Parameterized Fixlets V1.0.doc"Property Details
24887 | |
QA - Ready for Production Level Testing | |
AAC - Set Relay Diagnostic Password and Enable Relay Diagnostic | |
Utility | |
andrea.capasso@hcl.com | |
8/17/2017 12:00:00 AM | |
Relay Diagnostic Password | |
True | |
kapax on 1/18/2018 3:47:04 AM | |
kapax on 11/3/2020 8:19:13 AM | |
5884 Views / 103 Downloads | |
* Average over 0 ratings. ** Log In or Register to add your rating. |
Relevance
exists relay service OR exists main gather service
Actions
Action 1 (default)
Action Link Click
here to deploy this action.
Script Type
BigFix Action Script
//File with name details
action log commands
setting "_BESRelay_Diagnostics_Password"="{parameter "RDPW"}" on "{now}" for client
setting "_BESRelay_Diagnostics_Enable" = "1" on "{now}" for client
action log all
if {(windows of operating system)}
wait net stop besrelay
wait net start besrelay
elseif {(name of operating system = case insensitive regex ".*linux.*")}
wait /etc/init.d/besrelay restart
endif
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
Social Media: |
Comments
|
|
There shouldn't be an issue with the relevance as written, just getting in my way of my half hearted crusade against unnecessary Regex. |
|
|
Regex can be slower in some cases, and I find Regex to be less human readable, which is why I avoid it unless it is the only option, which is sometimes the case.... but even then I try to limit the use of Regex to the smallest possible text. |
|
|
Thanks for the comment. Do you see any issues using the regex clause? I'm quite comfortable using it and I tend to prefer it to the "contains", since I can easily add "OR" in the regular expressions to include a new OS if I can test it... |
|
|
FYI `unix of operating system` works for unix & linux. You could also use `name of operating system as lowercase contains "linux"` |