diff options
author | Atroskelis <fanachos@gmail.com> | 2016-11-18 16:47:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-18 16:47:08 +0200 |
commit | 31e8e32509f353e5bf554714b35cf3dd799b3090 (patch) | |
tree | b33f129e18290e6075dc0e7f859ff9feb4cd574c /lib/oxidized/model/ciscosmb.rb | |
parent | 689d4dba60de7a1faf555011f9db6fb3aef2fbea (diff) |
Update ciscosmb.rb
Adapted for SG series, not sure about SF.
Please test.
Diffstat (limited to 'lib/oxidized/model/ciscosmb.rb')
-rw-r--r-- | lib/oxidized/model/ciscosmb.rb | 9 |
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 |