i think you want:
"Configuration File Entry:/etc/sysconfig/network//HOSTNAME"."Value1 as String (All OS)" does not match "[A-Z].*"
Per the customer "This seems to match only if the entire host name is in caps. if only part is in caps, the rule still passes."
Server name examples we're trying to catch:
If you have a mix of character/number/character/number/special character/character and it can change per server, can we use the matches/does not match condition? Basically, we just want to look for any uppercase character and have it fail the check.
The customer came up with this logic that seems to be working.
Ok – I thought they were looking for all caps..
No, just any capital letter in the server name string. As far as remediation goes, are you familiar with a script that will change a string of test to all lowercase?
1 of 1 people found this helpful
echo BLah | tr '[:upper:]' '[:lower:]'
would do it.