diff options
author | ytti <saku@ytti.fi> | 2016-03-01 22:15:32 +0200 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2016-03-01 22:15:32 +0200 |
commit | 41afe0081cca6922b1d344762b9ccbbfe2f60881 (patch) | |
tree | 94978c12209f672c59d0e0399defdcaed01ec5f4 /lib | |
parent | a06a636737825c2901f286454300d06065f66951 (diff) | |
parent | 973d8c8bf5f0fe68ddbf24f93fec0549b13b6774 (diff) |
Merge pull request #352 from danilopopeye/f5-tmos-no-paging
force the F5 TMOS shell to do not ask questions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/tmos.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/oxidized/model/tmos.rb b/lib/oxidized/model/tmos.rb index b2b1ea2..9f8183f 100644 --- a/lib/oxidized/model/tmos.rb +++ b/lib/oxidized/model/tmos.rb @@ -22,19 +22,19 @@ class TMOS < Oxidized::Model cmd('cat /config/bigip.license') { |cfg| comment cfg } - cmd 'tmsh list' do |cfg| + cmd 'tmsh -q list' do |cfg| cfg.gsub!(/state (up|down)/, '') cfg.gsub!(/errors (\d+)/, '') cfg end - cmd('tmsh list net route all') { |cfg| comment cfg } + cmd('tmsh -q list net route all') { |cfg| comment cfg } cmd('/bin/ls --full-time --color=never /config/ssl/ssl.crt') { |cfg| comment cfg } cmd('/bin/ls --full-time --color=never /config/ssl/ssl.key') { |cfg| comment cfg } - cmd 'tmsh show running-config sys db all-properties' do |cfg| + cmd 'tmsh -q show running-config sys db all-properties' do |cfg| cfg.gsub!(/sys db configsync.localconfigtime {[^}]+}/m, '') cfg.gsub!(/sys db gtm.configtime {[^}]+}/m, '') cfg.gsub!(/sys db ltm.configtime {[^}]+}/m, '') |