summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ciscosmb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/ciscosmb.rb')
-rw-r--r--lib/oxidized/model/ciscosmb.rb9
1 files changed, 3 insertions, 6 deletions
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