Closed thanegill closed 6 years ago
@thanegill Noticed that too. Using this gsub for that, might need to mod for you case.
cfg.gsub! /(^(\s|\s+)[1-4]\s+\S+\s+(\S+|Powered|Not Present)).*/, '\\1'
If you want to undo the PR that's fine too.
This works for me. Though I'm sure that it would break for other models.
cfg.gsub! /(^\s+\d+\s+\d+\s+\w+\s+\w+\s+\w+\s+\w+\s+\S+)(\s+\w+)(\s+\w+)/, '\\1\\3'
I have tried the regexes above but Oxidized refuses to start, no logs available (Oxidized 0.24)
@rbeumer Typo? How does your config look?
@davama My apologies, it seems I was too hasty. When I test it now it works flawlessly.
Just updating to let everyone know I saw the same issue as well with Aruba switches across multiple models and the gsub provided by davama cleaned it up enough that I don't get config changes at every wattage uptick/downtick.
If you want to undo the PR that's fine too.
As i mentioned before we can undo it, if that is the consensus.
Now our setup uses custom models with our own edits so having 'show system....' is not needed since we can easily add to our own model. https://github.com/ytti/oxidized/issues/1384
It was originally added to the distribution model to have all hardware info within the config backup but with custom models now it's not really needed.
Whatever is decided is fine
Seems like it would be worthwhile having a PR for the gsub fix if someone can do that?
This issue has been automatically closed because there has been no response to our request for more information from the original author. The information that is currently in the issue is insufficient to take further action. Feel free to re-open this issue if additional information becomes available, or if you believe it has been closed in error.
@laf I tried both gusbs but still have "Watt updates". My vote would be to remove #1176
Since #1176 was merged I get flapping configs outputs whenever the wattage changes on my switches.
This is a 3810 stack running 16.02. The Wattage column changes constantly. Almost every time a config is pulled.
It looks like the output on some hp/procurve systems show usage and some don't.