summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-11-18 17:25:49 +0200
committerGitHub <noreply@github.com>2016-11-18 17:25:49 +0200
commit29c800271e8ca796ffdc238025070e4aa4d62aca (patch)
treee8ad8a98ac5cda953e311c3f8fe658f7478287c5
parent689d4dba60de7a1faf555011f9db6fb3aef2fbea (diff)
parent9fdddda636f3f606a5eb7330e91a1c1a3a4a68a3 (diff)
Merge pull request #616 from Atroskelis/patch-2
Added SG support to ciscosmb.rb model
-rw-r--r--lib/oxidized/model/ciscosmb.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/oxidized/model/ciscosmb.rb b/lib/oxidized/model/ciscosmb.rb
index 3ef9a85..73151f8 100644
--- a/lib/oxidized/model/ciscosmb.rb
+++ b/lib/oxidized/model/ciscosmb.rb
@@ -33,14 +33,13 @@ class CiscoSMB < Oxidized::Model
cfg
end
- cfg :telnet do
- username /^User Name:/
- password /^\r?Password:$/
- end
-
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'
end