diff options
author | Elvin Efendi <elvin.efendiev@shopify.com> | 2015-10-26 14:30:48 -0400 |
---|---|---|
committer | Elvin Efendi <elvin.efendiev@shopify.com> | 2015-11-23 11:21:51 -0500 |
commit | a54574ee01060097259adc22413efe1853b83bbb (patch) | |
tree | ed6c33f51a0a0a2013a8e435d4ff8e93ef58c823 /lib/oxidized/model | |
parent | 937b1f6806caf8f4e0b4397398770ac4e339cdb4 (diff) |
include health and hardware info into config
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/junos.rb | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/lib/oxidized/model/junos.rb b/lib/oxidized/model/junos.rb index da3af72..2572b93 100644 --- a/lib/oxidized/model/junos.rb +++ b/lib/oxidized/model/junos.rb @@ -20,7 +20,7 @@ class JunOS < Oxidized::Model cmd 'show configuration | display omit' - cmd 'show version' do |cfg| + cmd 'show version detail' do |cfg| @model = $1 if cfg.match(/^Model: (\S+)/) comment cfg end @@ -30,13 +30,26 @@ class JunOS < Oxidized::Model case @model when 'mx960' out << cmd('show chassis fabric reachability') { |cfg| comment cfg } + when 'mx480' + out << cmd('show chassis scb') { |cfg| comment cfg } + out << cmd('show chassis sfm detail') { |cfg| comment cfg } + out << cmd('show chassis ssb') { |cfg| comment cfg } + out << cmd('show chassis feb detail') { |cfg| comment cfg } + out << cmd('show chassis feb') { |cfg| comment cfg } + out << cmd('show chassis cfeb') { |cfg| comment cfg } end out end - cmd 'show chassis hardware' do |cfg| - comment cfg - end + cmd('show chassis environment') { |cfg| comment cfg } + cmd('show chassis firmware') { |cfg| comment cfg } + cmd('show chassis fpc detail') { |cfg| comment cfg } + cmd('show chassis hardware detail') { |cfg| comment cfg } + cmd('show chassis routing-engine') { |cfg| comment cfg } + cmd('show chassis alarms') { |cfg| comment cfg } + cmd('show system license') { |cfg| comment cfg } + cmd('show system boot-messages') { |cfg| comment cfg } + cmd('show system core-dumps') { |cfg| comment cfg } cfg :telnet do username(/^login:/) |