From 3ae81a44098d0deefaf77b7ccc15564e70d8aec4 Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 14 Mar 2015 16:45:32 +0100 Subject: Fix terminal length issues with older powerconnect switches as mentioned in #89. Fixed by sending both commands and allowing one of them to fail. --- lib/oxidized/model/powerconnect.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb index a1fe229..ef27f98 100644 --- a/lib/oxidized/model/powerconnect.rb +++ b/lib/oxidized/model/powerconnect.rb @@ -39,6 +39,7 @@ class PowerConnect < Oxidized::Model end end + post_login "terminal datadump" post_login "terminal length 0" pre_logout "logout" -- cgit v1.2.1 From bf89123121deab937fa24c3530fd349a5cc9049b Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 14 Mar 2015 17:17:02 +0100 Subject: Also fix logout issue as described in #89 --- lib/oxidized/model/powerconnect.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb index ef27f98..429f1c8 100644 --- a/lib/oxidized/model/powerconnect.rb +++ b/lib/oxidized/model/powerconnect.rb @@ -42,6 +42,7 @@ class PowerConnect < Oxidized::Model post_login "terminal datadump" post_login "terminal length 0" pre_logout "logout" + pre_logout "exit" end -- cgit v1.2.1