diff options
author | ytti <saku@ytti.fi> | 2015-04-16 11:57:02 +0300 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2015-04-16 11:57:02 +0300 |
commit | 73e02a432de76dad5600a1cadc1a816d46ab6278 (patch) | |
tree | af0157d7b9a2a378801ec337f12d630b8380cd64 /lib/oxidized | |
parent | 1ef909b49313ad87168adfd3bb7b8d62406e2812 (diff) | |
parent | 6df0b0606de5fb4a8ec4e2dc936e75a9bd89c3a6 (diff) |
Merge pull request #104 from sid3windr/patch-1
Add support for HP Comware SMB switches
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/comware.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/oxidized/model/comware.rb b/lib/oxidized/model/comware.rb index c09a128..bfc1524 100644 --- a/lib/oxidized/model/comware.rb +++ b/lib/oxidized/model/comware.rb @@ -21,6 +21,17 @@ class Comware < Oxidized::Model end cfg :telnet, :ssh do + # enable command-line mode on SMB comware switches (HP V1910, V1920) + # autodetection is hard, because the 'summary' command is paged, and + # the pager cannot be disabled before _cmdline-mode on. + if vars :comware_cmdline + post_login do + send "_cmdline-mode on\n" + send "y\n" + send vars(:comware_cmdline) + "\n" + end + end + post_login 'screen-length disable' post_login 'undo terminal monitor' pre_logout 'quit' |