[rancid] Juniper CLI prompts out of sync causing frequent changes

Chris Wopat me at falz.net
Fri Jul 27 13:18:08 UTC 2018


Hi folks,

Last year I commented on an issue we're seeing across many Juniper devices.
I neglected to follow up on Heasley's response then but are seeing it a lot
more frequently now, perhaps related to some OS upgrades or something else.


Thread was here:

http://www.shrubbery.net/pipermail/rancid-discuss/2017-October/009916.html
http://www.shrubbery.net/pipermail/rancid-discuss/2017-October/009922.html

Looking at the last week or so of these we've had, they're on devices
running 14.1X53-D4*, which is primaraily QFX5100 but also a few EX4200.

Here's output from a single diff, its like this on various commands nearly
every run:



Index: configs/r-kettlemoraine-hub
===================================================================
retrieving revision 1.144
diff -u -4 -r1.144 r-kettlemoraine-hub
@@ -1,7 +1,8 @@
  #RANCID-CONTENT-TYPE: juniper
  #
  # r-kettlemoraine-hub> show chassis clocks
+ # show chassis environment
  # r-kettlemoraine-hub> show chassis environment
  # Class Item                           Status
  # Power FPC 0 Power Supply 0           OK
  #       FPC 0 Power Supply 1           OK
Index: configs/r-lacrossecity-hub
===================================================================
retrieving revision 1.108
diff -u -4 -r1.108 r-lacrossecity-hub
@@ -15,9 +15,8 @@
  #       FPC 0 Fan 2                    OK
  #       FPC 0 Fan 3                    OK
  #
  # r-lacrossecity-hub> show chassis firmware
- # show chassis fpc detail
  # Part                     Type       Version
  # FPC 0                    uboot      U-Boot 1.1.6 (Jun  5 2012 -
02:24:53) 1.0.0
  #                          loader     FreeBSD/PowerPC U-Boot bootstrap
loader 2.4
  #
Index: configs/r-platteville-hub
===================================================================
retrieving revision 1.274
diff -u -4 -r1.274 r-platteville-hub
@@ -1,7 +1,8 @@
  #RANCID-CONTENT-TYPE: juniper
  #
  # r-platteville-hub> show chassis clocks
+ # show chassis environment
  # r-platteville-hub> show chassis environment
  # Class Item                           Status
  # Power FPC 0 Power Supply 0           OK
  #       FPC 0 Power Supply 1           OK

Heasley, you chimed in saying the prompt may be out of sync. While I don't
quite know what that means, you suggested sending output of:

eval `rancid -Ct juniper device`

Here that is, finally:

jlogin -t 120 -c 'show chassis clocks;show chassis environment;show chassis
firmware;show chassis fpc detail;show chassis hardware detail;show chassis
hardware models;show chassis routing-engine;show chassis scb;show chassis
sfm detail;show chassis ssb;show chassis feb detail;show chassis feb;show
chassis cfeb;show chassis alarms;show system license;show system
boot-messages;show system core-dumps;show version detail;show version
invoke-on other-routing-engine;show configuration;file checksum md5
/var/db/scripts/*/*;file list recursive /var/db/scripts/' r-platteville-hub

You may notice some additions at the end which help us track some slax
scripts:

file checksum md5 /var/db/scripts/*/*;file list recursive /var/db/scripts/'

we've had those in place for quite some time (before this) so I'm unsure if
those are related.

Cheers,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20180727/35179031/attachment.html>


More information about the Rancid-discuss mailing list