From 31e8e32509f353e5bf554714b35cf3dd799b3090 Mon Sep 17 00:00:00 2001 From: Atroskelis Date: Fri, 18 Nov 2016 16:47:08 +0200 Subject: Update ciscosmb.rb Adapted for SG series, not sure about SF. Please test. --- lib/oxidized/model/ciscosmb.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/oxidized/model/ciscosmb.rb') diff --git a/lib/oxidized/model/ciscosmb.rb b/lib/oxidized/model/ciscosmb.rb index 3ef9a85..3d9b10d 100644 --- a/lib/oxidized/model/ciscosmb.rb +++ b/lib/oxidized/model/ciscosmb.rb @@ -33,14 +33,11 @@ class CiscoSMB < Oxidized::Model cfg end - cfg :telnet do + cfg :telnet, :ssh do username /^User Name:/ password /^\r?Password:$/ - end - - cfg :telnet, :ssh do - post_login 'terminal datadump' # Disable pager - post_login 'terminal width 0' + post_login 'terminal len 0' + pre_logout 'exit' #exit returns to previous priv level, no way to quit from exec(#) pre_logout 'exit' end -- cgit v1.2.1 From df08feadfa68eb3493a6b0e60a1ef8f667936d4d Mon Sep 17 00:00:00 2001 From: Atroskelis Date: Fri, 18 Nov 2016 16:52:14 +0200 Subject: Update ciscosmb.rb Forgot the username prompt change. --- lib/oxidized/model/ciscosmb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/model/ciscosmb.rb') diff --git a/lib/oxidized/model/ciscosmb.rb b/lib/oxidized/model/ciscosmb.rb index 3d9b10d..96baa7d 100644 --- a/lib/oxidized/model/ciscosmb.rb +++ b/lib/oxidized/model/ciscosmb.rb @@ -34,7 +34,7 @@ class CiscoSMB < Oxidized::Model end cfg :telnet, :ssh do - username /^User Name:/ + username /^Username:/ password /^\r?Password:$/ post_login 'terminal len 0' pre_logout 'exit' #exit returns to previous priv level, no way to quit from exec(#) -- cgit v1.2.1 From 9fdddda636f3f606a5eb7330e91a1c1a3a4a68a3 Mon Sep 17 00:00:00 2001 From: Atroskelis Date: Fri, 18 Nov 2016 17:22:06 +0200 Subject: Update ciscosmb.rb Added old commands in case of different CLI variations. --- lib/oxidized/model/ciscosmb.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/oxidized/model/ciscosmb.rb') diff --git a/lib/oxidized/model/ciscosmb.rb b/lib/oxidized/model/ciscosmb.rb index 96baa7d..73151f8 100644 --- a/lib/oxidized/model/ciscosmb.rb +++ b/lib/oxidized/model/ciscosmb.rb @@ -36,6 +36,8 @@ class CiscoSMB < Oxidized::Model cfg :telnet, :ssh do username /^Username:/ password /^\r?Password:$/ + post_login 'terminal datadump' # Disable pager + post_login 'terminal width 0' post_login 'terminal len 0' pre_logout 'exit' #exit returns to previous priv level, no way to quit from exec(#) pre_logout 'exit' -- cgit v1.2.1 From 61d9981aa0bc6ac014a03f3055ec432bc0c5089f Mon Sep 17 00:00:00 2001 From: Mike Rostermund Date: Wed, 7 Dec 2016 22:41:02 +0100 Subject: Fix suggested by ytti for issue #610 --- lib/oxidized/model/ciscosmb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/model/ciscosmb.rb') diff --git a/lib/oxidized/model/ciscosmb.rb b/lib/oxidized/model/ciscosmb.rb index 73151f8..e5501d5 100644 --- a/lib/oxidized/model/ciscosmb.rb +++ b/lib/oxidized/model/ciscosmb.rb @@ -34,7 +34,7 @@ class CiscoSMB < Oxidized::Model end cfg :telnet, :ssh do - username /^Username:/ + username /^User ?[nN]ame:/ password /^\r?Password:$/ post_login 'terminal datadump' # Disable pager post_login 'terminal width 0' -- cgit v1.2.1