diff options
author | Robert (KHobbits) <rob@khobbits.co.uk> | 2018-05-11 20:33:02 +0100 |
---|---|---|
committer | Wild Kat <wk@users.noreply.github.com> | 2018-05-11 21:33:02 +0200 |
commit | 23d77b181efb4ab82591abfdecdbbf36c5961417 (patch) | |
tree | 79e37994f0fda7cfa922b2fdf0ddd90e0d5dfaff /lib/oxidized/model/procurve.rb | |
parent | dd2695bbb47ceee3cf677e49d24ac1b43c923e8e (diff) |
Enable 'enable' support for HP Procurves
Diffstat (limited to 'lib/oxidized/model/procurve.rb')
-rw-r--r-- | lib/oxidized/model/procurve.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb index 930dc53..f9175b1 100644 --- a/lib/oxidized/model/procurve.rb +++ b/lib/oxidized/model/procurve.rb @@ -79,6 +79,13 @@ class Procurve < Oxidized::Model end cfg :telnet, :ssh do + # preferred way to handle additional passwords + if vars :enable + post_login do + send "enable\n" + cmd vars(:enable) + end + end post_login 'no page' pre_logout "logout\ny\nn" end |