lib/oxidized/model/aoscx.rb in oxidized-0.29.1 vs lib/oxidized/model/aoscx.rb in oxidized-0.30.0
- old
+ new
@@ -56,10 +56,11 @@
cmd 'show environment' do |cfg|
cfg.gsub! /^(LC.*\s+)\d+\s+$/, '\\1<hidden>'
cfg.gsub! /^(\d\/\d\/\d.*\s+)\d+\s+$/, '\\1<hidden>'
cfg.gsub! /^(\d+\/\S+\s+\S+\s+)\d+\.\d+\s+C(.*)/, '\\1<hidden>\\2'
cfg.gsub! /^(LC.*\s+)\d+\.\d+\s+(C.*)$/, '\\1 <hidden> \\2'
+ cfg.gsub! /^(\S+\s+\S+\s+\s+\S+\s+)(slow|normal|medium|fast|max)(\s+\S+\s+\S+\s+)\d+/, '\\1<speed>\\3<rpm>'
comment cfg
end
cmd 'show module' do |cfg|
comment cfg
@@ -67,10 +68,10 @@
cmd 'show interface transceiver' do |cfg|
comment cfg
end
- cmd 'show system | exclude "Up Time" | exclude "CPU" | exclude "Memory"' do |cfg|
+ cmd 'show system | exclude "Up Time" | exclude "CPU" | exclude "Memory" | exclude "Pkts .x" | exclude "Lowest" | exclude "Missed"' do |cfg|
comment cfg
end
cmd 'show running-config'