[rancid] NX-OS and colorized prompts

Gauthier, Chris cgauthier at comscore.com
Tue Jul 11 17:01:08 UTC 2017


Chris GauthierSenior Network Engineer | comScore, Inc.
o +1 503-331-2704cgauthier at comscore.com
317 SW Alder St, Suite 500 | Portland | OR97204
............................................................................................................................................................................................................................

-----Original Message-----
From: heasley <heas at shrubbery.net>
Date: Tuesday, July 11, 2017 at 8:28 AM
To: "Gauthier, Chris" <cgauthier at comscore.com>
Cc: "rancid-discuss at shrubbery.net" <rancid-discuss at shrubbery.net>
Subject: Re: [rancid] NX-OS and colorized prompts

    Tue, Jul 11, 2017 at 03:11:53PM +0000, Gauthier, Chris:
    > In trying to get my Nexus switches working, I discovered a problem.  The colorized prompts on the Nexus switches use ANSI Escape codes.  This totally trips out rancid and causes it to miss commands.  I verified by turning off the colorization manually that is the issue.  I copied the cisco-nx and renamed it in my rancid.types.conf file and added
    > 
    > cisco-nx5600-9000;command;rancid::RunCommand;no term color
    > 
    > right before the line
    > 
    > cisco-nx5600-9000;command;rancid::RunCommand;term no monitor
    > 
    > Rancid timed out after the “no term color” command executed and changed the prompt.  Suggestions on how to remedy this within rancid?
    
    hold on while i curse for 20 minutes.  seriously cisco, what is the utility
    of this.
    
    can you disable it by default in the config?  Maybe setting a non-color-
    supporting TERM would work?
    

It’s disabled by default, but, I do believe rancid should be able to work through this.  Btw, I’m running 3.6.2.  It’s also an easy to fix on a per-session basis by executing the “no term color” command, which I tried.  I suspect the changed prompt threw off rancid since it didn’t match what it saw before.  The testing account I am using happens to have it turned on all the time because humans use it and it’s useful.

--Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170711/80b85430/attachment.html>


More information about the Rancid-discuss mailing list