diff options
author | ytti <saku@ytti.fi> | 2017-02-20 11:08:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-20 11:08:18 +0200 |
commit | fafbdbc63a0bda9e2b798c15791e428453684eb4 (patch) | |
tree | fe65049b958397fe63d693d5fefac19a0200739e /lib/oxidized | |
parent | a1535a6f8f6b672fdc17c6dcf2af13c074d71c5d (diff) | |
parent | c77406cac82839a36acb5917c7a60734201ed915 (diff) |
Merge pull request #687 from nertwork/master
Node - Cumulus additional params
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/cumulus.rb | 8 | ||||
-rw-r--r-- | lib/oxidized/model/ios.rb | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/oxidized/model/cumulus.rb b/lib/oxidized/model/cumulus.rb index dc6792a..3a7e995 100644 --- a/lib/oxidized/model/cumulus.rb +++ b/lib/oxidized/model/cumulus.rb @@ -32,7 +32,10 @@ class Cumulus < Oxidized::Model cfg += add_comment 'IP Routes' cfg += cmd 'netstat -rn' - + + cfg += add_comment 'SNMP settings' + cfg += cmd 'cat /etc/snmp/snmpd.conf' + cfg += add_comment 'QUAGGA DAEMONS' cfg += cmd 'cat /etc/quagga/daemons' @@ -48,6 +51,9 @@ class Cumulus < Oxidized::Model cfg += add_comment 'QUAGGA OSPF6' cfg += cmd 'cat /etc/quagga/ospf6d.conf' + cfg += add_comment 'QUAGGA CONF' + cfg += cmd 'cat /etc/quagga/Quagga.conf' + cfg += add_comment 'MOTD' cfg += cmd 'cat /etc/motd' diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb index c8b0ef3..94a3ab0 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -30,6 +30,7 @@ class IOS < Oxidized::Model cfg.gsub! /^enable (password|secret) \d \S+/, '<secret hidden>' cfg.gsub! /^(\s+(?:password|secret)) (?:\d )?\S+/, '\\1 <secret hidden>' cfg.gsub! /wpa-psk ascii \d \S+/, '<secret hidden>' + cfg.gsub! /key 7 \d.+/, '<secret hidden>' cfg.gsub! /^tacacs-server key \d \S+/, '<secret hidden>' cfg end |