<div dir="ltr">I had a similar problem with nxrancid. I ended up modifying the script in the ShowVersion sub to return(1) for Invalid input detected rather than -1.<div><br></div><div>The issue is that some of the commands will only show up with certain hardware ("show vdc all" doesn't work on anything other than a Nexus 7000/7700) or unless certain features have been enabled ("show fex" only works when "feature fex" has been enabled). It's a hack, but I thought that it was the easiest solution without creating a command list for every variable of hardware/configuration.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 4, 2015 at 5:08 PM, John Livingston <span dir="ltr"><<a href="mailto:John.Livingston@emulex.com" target="_blank">John.Livingston@emulex.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks guys! Here is the full output of the nxrancid -d script:<br>
<br>
<br>
[user@host1 ~]$ cd bin<br>
[user@host1 ~]$ nxrancid -d rv-ibmbc1-fc2<br>
executing clogin -t 90 -c"term no monitor-force;show version;show version build-info all;show license;show license usage;show license host-id;show system redundancy status;show environment clock;show environment fan;show environment fex all fan;show environment temperature;show environment power;show boot;dir bootflash:;dir debug:;dir logflash:;dir slot0:;dir usb1:;dir usb2:;dir volatile:;show module;show module xbar;show inventory;show vtp status;show vlan;show debug;show cores vdc-all;show processes log vdc-all;show running-config" rv-ibmbc1-fc2<br>
PROMPT MATCH: rv-ibmbc1-fc2#<br>
HIT COMMAND:rv-ibmbc1-fc2# term no monitor-force<br>
In RunCommand: rv-ibmbc1-fc2# term no monitor-force<br>
HIT COMMAND:rv-ibmbc1-fc2# show version<br>
In ShowVersion: rv-ibmbc1-fc2# show version<br>
TYPE = NXOS<br>
HIT COMMAND:rv-ibmbc1-fc2# show version build-info all<br>
In ShowVersionBuild: rv-ibmbc1-fc2# show version build-info all<br>
HIT COMMAND:rv-ibmbc1-fc2# show license<br>
In ShowLicense: rv-ibmbc1-fc2# show license<br>
HIT COMMAND:rv-ibmbc1-fc2# show license usage<br>
In ShowLicense: rv-ibmbc1-fc2# show license usage<br>
HIT COMMAND:rv-ibmbc1-fc2# show license host-id<br>
In ShowLicense: rv-ibmbc1-fc2# show license host-id<br>
HIT COMMAND:rv-ibmbc1-fc2# show system redundancy status<br>
In ShowRedundancy: rv-ibmbc1-fc2# show system redundancy status<br>
HIT COMMAND:rv-ibmbc1-fc2# show environment clock<br>
In ShowEnv: rv-ibmbc1-fc2# show environment clock<br>
HIT COMMAND:rv-ibmbc1-fc2# show environment fan<br>
In ShowEnv: rv-ibmbc1-fc2# show environment fan<br>
HIT COMMAND:rv-ibmbc1-fc2# show environment fex all fan<br>
In ShowEnv: rv-ibmbc1-fc2# show environment fex all fan<br>
HIT COMMAND:rv-ibmbc1-fc2# show environment temperature<br>
In ShowEnvTemp: rv-ibmbc1-fc2# show environment temperature<br>
HIT COMMAND:rv-ibmbc1-fc2# show environment power<br>
In ShowEnvPower: rv-ibmbc1-fc2# show environment power<br>
HIT COMMAND:rv-ibmbc1-fc2# show boot<br>
In ShowBoot: rv-ibmbc1-fc2# show boot<br>
HIT COMMAND:rv-ibmbc1-fc2# dir bootflash:<br>
In DirSlotN: rv-ibmbc1-fc2# dir bootflash:<br>
HIT COMMAND:rv-ibmbc1-fc2# dir debug:<br>
In DirSlotN: rv-ibmbc1-fc2# dir debug:<br>
HIT COMMAND:rv-ibmbc1-fc2# dir logflash:<br>
In DirSlotN: rv-ibmbc1-fc2# dir logflash:<br>
HIT COMMAND:rv-ibmbc1-fc2# dir slot0:<br>
In DirSlotN: rv-ibmbc1-fc2# dir slot0:<br>
HIT COMMAND:rv-ibmbc1-fc2# dir usb1:<br>
In DirSlotN: rv-ibmbc1-fc2# dir usb1:<br>
HIT COMMAND:rv-ibmbc1-fc2# dir usb2:<br>
In DirSlotN: rv-ibmbc1-fc2# dir usb2:<br>
HIT COMMAND:rv-ibmbc1-fc2# dir volatile:<br>
In DirSlotN: rv-ibmbc1-fc2# dir volatile:<br>
HIT COMMAND:rv-ibmbc1-fc2# show module<br>
In ShowModule: rv-ibmbc1-fc2# show module<br>
HIT COMMAND:rv-ibmbc1-fc2# show module xbar<br>
In ShowModule: rv-ibmbc1-fc2# show module xbar<br>
HIT COMMAND:rv-ibmbc1-fc2# show inventory<br>
In ShowInventory: rv-ibmbc1-fc2# show inventory<br>
HIT COMMAND:rv-ibmbc1-fc2# show vtp status<br>
In ShowVTP: rv-ibmbc1-fc2# show vtp status<br>
HIT COMMAND:rv-ibmbc1-fc2# show vlan<br>
In ShowVLAN: rv-ibmbc1-fc2# show vlan<br>
HIT COMMAND:rv-ibmbc1-fc2# show debug<br>
In ShowDebug: rv-ibmbc1-fc2# show debug<br>
HIT COMMAND:rv-ibmbc1-fc2# show cores vdc-all<br>
In ShowCores: rv-ibmbc1-fc2# show cores vdc-all<br>
HIT COMMAND:rv-ibmbc1-fc2# show processes log vdc-all<br>
In ShowProcLog: rv-ibmbc1-fc2# show processes log vdc-all<br>
rv-ibmbc1-fc2: show processes log vdc-all failed: -1<br>
rv-ibmbc1-fc2: missed cmd(s): show running-config<br>
rv-ibmbc1-fc2: missed cmd(s): show running-config<br>
rv-ibmbc1-fc2: End of run not found<br>
rv-ibmbc1-fc2: End of run not found<br>
rv-ibmbc1-fc2: clean: 0, end: 0<br>
!PROC_LOGS: ^<br>
[user@host1 ~]$<br>
<br>
<br>
And here's the output of clogin with just the "show running-config" command:<br>
<br>
<br>
<br>
[user@host1 ~]$clogin -t 90 -c:"show running-config" rv-ibmbc1-fc2<br>
rv-ibmbc1-fc2<br>
spawn ssh -c 3des -x -l user rv-ibmbc1-fc2<br>
MDS Switch<br>
Password:<br>
Cisco Nexus Operating System (NX-OS) Software<br>
TAC support: <a href="http://www.cisco.com/tac" target="_blank">http://www.cisco.com/tac</a><br>
Copyright (c) 2002-2014, Cisco Systems, Inc. All rights reserved.<br>
The copyrights to certain works contained in this software are<br>
owned by other third parties and used and distributed under<br>
license. Certain components of this software are licensed under<br>
the GNU General Public License (GPL) version 2.0 or the GNU<br>
Lesser General Public License (LGPL) Version 2.1. A copy of each<br>
such license is available at<br>
<a href="http://www.opensource.org/licenses/gpl-2.0.php" target="_blank">http://www.opensource.org/licenses/gpl-2.0.php</a> and<br>
<a href="http://www.opensource.org/licenses/lgpl-2.1.php" target="_blank">http://www.opensource.org/licenses/lgpl-2.1.php</a><br>
rv-ibmbc1-fc2#<br>
rv-ibmbc1-fc2# terminal length 0<br>
rv-ibmbc1-fc2# terminal width 132<br>
rv-ibmbc1-fc2# terminal-length 0<br>
^<br>
% Invalid command at '^' marker.<br>
rv-ibmbc1-fc2# :show running-config<br>
^<br>
% Invalid command at '^' marker.<br>
rv-ibmbc1-fc2#exit<br>
Connection to rv-ibmbc1-fc2 closed.<br>
[user@host1 ~]$<br>
<br>
Any help you can provide is much appreciated.<br>
<br>
Thanks,<br>
John<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Dan</div>
</div>