diff options
author | Danilo Sousa <dsgoncalves@uoldiveo.com> | 2016-03-01 14:40:46 -0300 |
---|---|---|
committer | Danilo Sousa <dsgoncalves@uoldiveo.com> | 2016-03-01 14:46:51 -0300 |
commit | 973d8c8bf5f0fe68ddbf24f93fec0549b13b6774 (patch) | |
tree | 94978c12209f672c59d0e0399defdcaed01ec5f4 /lib/oxidized | |
parent | a06a636737825c2901f286454300d06065f66951 (diff) |
force the F5 TMOS shell to do not ask questions
config # tmsh -h
usage: tmsh <options ...> <commmand>
-q the shell will not ask the user any questions, this option
does not have an affect in interactive mode
Diffstat (limited to 'lib/oxidized')
-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, '') |