RegEx to Hide Fan Speed & RPM for Aruba 6200 series switches.
I have a handful of Aruba 6200F series switches running firmware ML.10.09.1010 that are not properly masking fan information which is creating a lot of unnecessary commits.
It has been a while since I created a RegEx pattern for Oxidized and I need a little help getting it right.
The logged fan information looks like this:
The RegEx and substitution line I came up with looks like this:
cfg.gsub! /^(System-\d\/\d\/\d\s+)(\S+\s+\S+\s+)(\S+)(\s+\S+\s+\S+\s+)(\d{1,4})$/, '\\1 \\2 <speed> \\4 <rpm>'
In testing the RegEx using 3rd party tools it appears to work as intended, but I'm not having luck getting it to work within my Oxidized environment.
Any help would be appreciated.
If this can be resolved, I am more than willing to submit the final revision as a pull request.
Just realized this might be part of pull request #2565, which is masking the entire result, not just the speed and RPM that I was trying to hide.