From 973d8c8bf5f0fe68ddbf24f93fec0549b13b6774 Mon Sep 17 00:00:00 2001 From: Danilo Sousa Date: Tue, 1 Mar 2016 14:40:46 -0300 Subject: force the F5 TMOS shell to do not ask questions config # tmsh -h usage: tmsh -q the shell will not ask the user any questions, this option does not have an affect in interactive mode --- lib/oxidized/model/tmos.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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, '') -- cgit v1.2.1