From 92925748eaf5003cf0fd95b8d1b68b4e5a6c7f78 Mon Sep 17 00:00:00 2001 From: ja-frog <31773963+ja-frog@users.noreply.github.com> Date: Wed, 13 Sep 2017 08:16:43 -0500 Subject: Suppress timestamp response to ios commands At least some versions of ios output a timestamp after each input command. This will cause Oxidized to have a different version of the config for every poll of the device. I added the per-session command to suppress timestamps. --- lib/oxidized/model/ios.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb index 0cb2f3a..a47c156 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -140,6 +140,7 @@ class IOS < Oxidized::Model end post_login 'terminal length 0' post_login 'terminal width 0' + post_login 'terminal exec prompt no-timestamp' pre_logout 'exit' end -- cgit v1.2.1 From 7f64e0770f07170d29d2bb816def0465cc3178f5 Mon Sep 17 00:00:00 2001 From: ja-frog <31773963+ja-frog@users.noreply.github.com> Date: Fri, 22 Sep 2017 13:35:00 -0500 Subject: Update ios.rb --- lib/oxidized/model/ios.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'lib') diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb index a47c156..0cb2f3a 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -140,7 +140,6 @@ class IOS < Oxidized::Model end post_login 'terminal length 0' post_login 'terminal width 0' - post_login 'terminal exec prompt no-timestamp' pre_logout 'exit' end -- cgit v1.2.1 From bed69a08ed9281919f44c4448ece46d4eaac6e84 Mon Sep 17 00:00:00 2001 From: ja-frog <31773963+ja-frog@users.noreply.github.com> Date: Fri, 22 Sep 2017 13:36:23 -0500 Subject: Suppress timestamp response to ios xr commands At least some versions of ios xr output a timestamp after each input command. This will cause Oxidized to have a different version of the config for every poll of the device. I added the per-session command to suppress timestamps. --- lib/oxidized/model/iosxr.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/oxidized/model/iosxr.rb b/lib/oxidized/model/iosxr.rb index bf01140..ac2f798 100644 --- a/lib/oxidized/model/iosxr.rb +++ b/lib/oxidized/model/iosxr.rb @@ -36,6 +36,7 @@ class IOSXR < Oxidized::Model cfg :telnet, :ssh do post_login 'terminal length 0' post_login 'terminal width 0' + post_login 'terminal exec prompt no-timestamp' if vars :enable post_login do send "enable\n" -- cgit v1.2.1