From ff55492c455b775e22f710e5873d21a181a4a84f Mon Sep 17 00:00:00 2001 From: ospfbgp Date: Sat, 28 Apr 2018 19:59:17 -0400 Subject: Update boss.rb Issues with some older boss switches that have the banner turned off. They still display the banner but it is just scrolls and no pause. The send "c" gets put at the prompt and you are now stuck. An easy fix is to just send new line so you get a new prompt and the next command does not get corrupt. Tested on about 100 BOSS switches and all working now. --- lib/oxidized/model/boss.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/oxidized/model/boss.rb') diff --git a/lib/oxidized/model/boss.rb b/lib/oxidized/model/boss.rb index cf762ee..0adf4c0 100644 --- a/lib/oxidized/model/boss.rb +++ b/lib/oxidized/model/boss.rb @@ -1,5 +1,5 @@ class Boss < Oxidized::Model - # Avaya Baystack Operating System Software(BOSS) + # Extreme Baystack Operating System Software(BOSS) # Created by danielcoxman@gmail.com # May 15, 2017 # This was tested on ers3510, ers5530, ers4850, ers5952 @@ -28,6 +28,8 @@ class Boss < Oxidized::Model expect /ommand Line Interface\.\.\./ do |data, re| send "c" data.sub re, '' + send "\n" + data.sub re, '' end # needed for proper formatting -- cgit v1.2.1