[rancid] Nexus 1000v switch-router

Charles T. Brooks Charles.Brooks at hbcs.org
Thu Jun 30 22:46:52 UTC 2016


Hmmmm... I'll answer the second question first.  No, neither the nexus 5K nor the 1000v has "show vtp status".  It's possible that we don't have a feature licensed/loaded that would enable this, I don't really know.  The NX-OS version on the 5K I looked at is not the very  latest greatest but it's not terribly old, either.

As for the patch, this is what my ShowEnv subroutine in nxos.pm looks like in rancid 3.4.1:

        tr/\015//d;
        last if (/^$prompt/);
        next if (/^(\s*|\s*$cmd\s*)$/);
        next if (/^\s*\^\s*$/);
        return(1) if /Line has invalid autocommand /;
        return(1) if /(Invalid input detected|Type help or )/;
        return(1) if (/\% Invalid command at /);
        return(1) if (/No token match at /);    # 1000v
        return(-1) if (/\% Permission denied/);
        return(-1) if (/command authorization failed/i);

Does not quite match your diff.  But I can change the return to -1 and report back tomorrow!

Good night all,
--Charlie

________________________________________
From: heasley [heas at shrubbery.net]
Sent: Thursday, June 30, 2016 3:46 PM
To: Charles T. Brooks
Cc: heasley; rancid-discuss at shrubbery.net
Subject: Re: [rancid] Nexus 1000v switch-router

I think this will fix the problem with show environment temperature

Index: lib/nxos.pm.in
===================================================================
--- lib/nxos.pm.in      (revision 3413)
+++ lib/nxos.pm.in      (working copy)
@@ -325,7 +325,7 @@
        return(1) if /Line has invalid autocommand /;
        return(1) if /(Invalid input detected|Type help or )/;
        return(1) if (/No token match at /);    # 1000v
-       return(-1) if (/\% Invalid command at /);
+       return(1) if (/\% Invalid command at /);# 1000v has no support
        return(-1) if (/\% Permission denied/);
        return(-1) if (/command authorization failed/i);


Does the platform, 1000v or 5000 (etc), support show vtp status?  And, does it
produce a line like:
        VTP Operating Mode\s+:\s+(Transparent|Server)
       ------------------  CONFIDENTIALITY NOTICE  ---------------

  This message, including any attachments, is for the sole use of the
intended recipient(s) and may contain privileged confidential information
protected by law. Any unauthorized review, use, disclosure or distribution
of this message is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of this message.

       ------------------  CONFIDENTIALITY NOTICE  ---------------



More information about the Rancid-discuss mailing list