AAC - Set Relay Diagnostic Password and Enable Relay Diagnostic
Log In or Register to download the BES file, and more.

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

ID24887
StatusQA - Ready for Production Level Testing
TitleAAC - Set Relay Diagnostic Password and Enable Relay Diagnostic
CategoryUtility
Sourceandrea.capasso@hcl.com
Source Release Date8/17/2017 12:00:00 AM
KeywordsRelay Diagnostic Password
Is TaskTrue
Added by on 1/18/2018 3:47:04 AM
Last Modified by on 11/3/2020 8:19:13 AM
Counters 5884 Views / 103 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 85 fixlets and 10 analyses   * Results in a true/false
Show indented 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:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
There shouldn't be an issue with the relevance as written, just getting in my way of my half hearted crusade against unnecessary Regex.
jgstew -
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.
kapax -
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...
jgstew -
FYI `unix of operating system` works for unix & linux. You could also use `name of operating system as lowercase contains "linux"`