From ef98213207376882779bb8634073cfc57aacec7e Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 22 Sep 2021 11:50:50 +0100 Subject: [PATCH] Update to comware for v1950 OS Release 3208 HPE Comware Release 3208 (v7.1) doesnt accept the xtd-cli-mode on as it has "too many parameters" removing the on will allow it to work. I suspect the post login on this section needs better logic. --- lib/oxidized/model/comware.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/oxidized/model/comware.rb b/lib/oxidized/model/comware.rb index 324629efd..856074942 100644 --- a/lib/oxidized/model/comware.rb +++ b/lib/oxidized/model/comware.rb @@ -41,10 +41,15 @@ class Comware < Oxidized::Model cmd 'y', /(#{@node.prompt}|input password)/ cmd vars(:comware_cmdline) - # HP V1950 + # HP V1950 r2432P06 cmd 'xtd-cli-mode on', /(#{@node.prompt}|Continue)/ cmd 'y', /(#{@node.prompt}|input password)/ cmd vars(:comware_cmdline) + + # HP V1950 OS r3208 (v7.1) + cmd 'xtd-cli-mode', /(#{@node.prompt}|Continue)/ + cmd 'y', /(#{@node.prompt}|input password)/ + cmd vars(:comware_cmdline) end end