<div dir="ltr"><div>I'm guessing that you mean switch-profiles, as those commands aren't always in the running config. Port-profiles should be visible, although ports using them would only have an "inherit port-profile" line in place of all of the inherited configuration. </div><div><br></div>The very quick and dirty way would be to edit nxrancid and find the line that says:<div>







<p class=""><span class="">    {</span>'show running-config'<span class="">      => </span>'WriteTerm'<span class="">},</span></p><p class="">and add a line above it similar to:</p><p class="">







</p><p class=""><span class="">    {</span>'show running-config switch-profile'<span class="">      => </span>'WriteTerm'<span class="">},</span></p><p class="">A cleaner approach would be to clone the WriteTerm sub in the nxrancid to something like WriteTermSwitchProfile and call that, making sure to change the:</p><p class="">







</p><p class=""><span class="">    </span><span class="">return</span><span class="">(-</span>1<span class="">) </span><span class="">if</span><span class=""> (</span><span class="">/</span>\% Invalid command at <span class="">/</span><span class="">);</span></p><p class="">line to</p><p class="">







</p><p class=""><span class="">    </span><span class="">return</span><span class="">(</span>1<span class="">) </span><span class="">if</span><span class=""> (</span><span class="">/</span>\% Invalid command at <span class="">/</span><span class="">);</span></p><p class="">to accommodate switches that don't take that command. You could also clean up all of the username/snmp matches in that config, as most of that can't be replicated to other switches via the switch-profile.</p><p class=""><br></p><p class="">HTH</p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 2, 2014 at 7:36 AM, Arne Larsen <span dir="ltr"><<a href="mailto:arlarndk@gmail.com" target="_blank">arlarndk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div text="#000000" bgcolor="#FFFFFF">
    
    <p class="MsoNormal"><span lang="EN-US">Hi all.<u></u><u></u></span></p>
    <p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
    <p class="MsoNormal"><span lang="EN-US">Can someone
        give me a hint what to do.<u></u><u></u></span></p>
    <p class="MsoNormal"><span lang="EN-US">We are
        using port-profiles on the nexus boxes, but the output from show
        running are
        missing characters.<u></u><u></u></span></p>
    <p class="MsoNormal"><span lang="EN-US">How can I
        add a command like show port-profile to nx-rancid, or how can I
        get around the missing number of characthers<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888">
    <p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
    <p class="MsoNormal"><span lang="EN-US">/Arne<u></u><u></u></span></p>
    
    
    
    
    
    
    
    
  </font></span></div>

<br>_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Dan
</div>