I’ve configured all of my device backups within LibreNMS to remove secrets/password hashes/etc. upon saving. This works flawlessly on all device models I’ve tried, except Aruba Wireless (aosw). AOSW has been a struggle to backup from the beginning, requiring a good bit of modification to the aosw.rb file just to get the backups working correctly. I suspect the rb file needs further modification to make this work, but I can’t say I’m very proficient in Ruby. Asking the community for help in getting this working.
Here’s a line of code from my aosw.rb file that should remove the enable secret value but does not:
cfg.gsub!(/enable secret (\S+)$/, ‘enable secret ’)
Here’s a line of code from my comware.rb file that works correctly:
cfg.gsub! /^( password hash).*/, ‘\1 ’
Here’s my full aosw.rb file for reference:
https://p.libren.ms/view/dd6bde81
Please let me know if there’s any additional information I can supply to move this along. Thanks!