From Sebastien.Boulianne at cpu.ca Wed Jun 1 16:01:49 2016 From: Sebastien.Boulianne at cpu.ca (Sebastien.Boulianne at cpu.ca) Date: Wed, 1 Jun 2016 12:01:49 -0400 Subject: [rancid] Install and configure Rancid-CGI Message-ID: <5FE0959288C73D448BB44CB7E9CC320F5837FD196D@CPUMAIL2.cpu.qc.ca> Hi, I run rancid since many weeks and I luv it. Some days ago, I saw there is a util Rancid-CGI and I would like to install it. I run Debian so I just installed the package rancid-cgi and apache2. I saw there is a lg.conf. I would like to know if someone use the util and how did you configure it. Do you have a clear tuto ? Which config do I need to do in Apache2 and rancid ? Thanks in advance for your help. S?bastien -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Wed Jun 1 21:24:36 2016 From: heas at shrubbery.net (heasley) Date: Wed, 1 Jun 2016 21:24:36 +0000 Subject: [rancid] Install and configure Rancid-CGI In-Reply-To: <5FE0959288C73D448BB44CB7E9CC320F5837FD196D@CPUMAIL2.cpu.qc.ca> References: <5FE0959288C73D448BB44CB7E9CC320F5837FD196D@CPUMAIL2.cpu.qc.ca> Message-ID: <20160601212436.GB73667@shrubbery.net> Wed, Jun 01, 2016 at 12:01:49PM -0400, Sebastien.Boulianne at cpu.ca: > Some days ago, I saw there is a util Rancid-CGI and I would like to install it. > > I run Debian so I just installed the package rancid-cgi and apache2. > I saw there is a lg.conf. there is no rancid cgi provided by us. there is an lg.cgi, see README.lg. > I would like to know if someone use the util and how did you configure it. > Do you have a clear tuto ? > > Which config do I need to do in Apache2 and rancid ? see apache.org for configuring apache for cgis. From fabizs at yahoo.com Wed Jun 1 17:42:10 2016 From: fabizs at yahoo.com (Fabio Santos) Date: Wed, 1 Jun 2016 17:42:10 +0000 (UTC) Subject: [rancid] Erro with Rancid on solaris 10. References: <1594738517.3243124.1464802930793.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <1594738517.3243124.1464802930793.JavaMail.yahoo@mail.yahoo.com> Hi all, I'm trying to compile the rancid 3.4.1 on solaris 10 sparc, but i'm experience some erros, see: bash-3.2#make Making allin . Making allin include /usr/ccs/bin/make? all-am Making allin etc Making allin lib Making allin bin gcc-DHAVE_CONFIG_H -I. -I../include????? -g-O0 -D__EXTENSIONS__ -MT par.o -MD -MP -MF .deps/par.Tpo -c -o par.o par.c par.c: Infunction `asprintf': par.c:141:error: syntax error before '{' token par.c:143:error: storage class specified for parameter `optind' par.c:147:error: parameter `cmd' is initialized par.c:148:error: parameter `args' is initialized par.c:152:error: syntax error before "if" par.c:434:error: parameter `len' is initialized par.c:437:error: syntax error before "while" par.c:487: error:parameter `len' is initialized par.c:487:error: redefinition of parameter 'len' par.c:434:error: previous definition of 'len' was here par.c:488:error: parameter `tick' is initialized par.c:489:error: redefinition of parameter 'ptr' par.c:435:error: previous definition of 'ptr' was here par.c:494:error: syntax error before "if" par.c:700:error: storage class specified for parameter `cmd_num' par.c:700:error: parameter `cmd_num' is initialized par.c:703:error: syntax error before "sigprocmask" par.c:728:error: redefinition of parameter 't' par.c:144:error: previous definition of 't' was here par.c:731:error: syntax error before "if" par.c:801:error: parameter `argn' is initialized par.c:802:error: conflicting types for 'b' par.c:490:error: previous definition of 'b' was here par.c:803:error: conflicting types for 'c' par.c:490:error: previous definition of 'c' was here par.c:805:error: parameter `nargs' is initialized par.c:806:error: parameter `quotes' is initialized par.c:808:error: syntax error before "if" par.c:932:error: redefinition of parameter 'buf' par.c:491:error: previous definition of 'buf' was here par.c:934:error: syntax error before "if" par.c:1065:error: syntax error before "if" par.c:1108:error: redefinition of parameter 'status' par.c:727:error: previous definition of 'status' was here par.c:1109:error: redefinition of parameter 't' par.c:728:error: previous definition of 't' was here par.c:1112:error: syntax error before "if" par.c:1184:error: redefinition of parameter 'status' par.c:1108:error: previous definition of 'status' was here par.c:1185:error: redefinition of parameter 't' par.c:1109:error: previous definition of 't' was here par.c:1188:error: syntax error before "if" par.c:1259:error: redefinition of parameter 'status' par.c:1184:error: previous definition of 'status' was here par.c:1261:error: syntax error before "if" par.c:1345:error: redefinition of parameter 't' par.c:1185:error: previous definition of 't' was here par.c:1348:error: syntax error before "sigprocmask" *** Errorcode 1 make: Fatalerror: Command failed for target `par.o' Currentworking directory /tmp/rancid-3.4.1/bin *** Errorcode 1 Thefollowing command caused the error: fail=; \ if(target_option=k; case ${target_option-} in??) ;;? *) echo"am__make_running_with_option: internal error: invalid"? "target option '${target_option-}'specified" >&2;? exit1;;? esac;? has_opt=no;?sane_makeflags=$MAKEFLAGS;? if{? if test -z ''; then? false;?elif test -n ''; then? true;? elif test -n '' && test -n '';then? true;? else?false;? fi;? }; then?sane_makeflags=$MFLAGS;? else? case $MAKEFLAGS in? *\\[\ \??????]*)? bs=\\;? sane_makeflags=`printf '%s\n'"$MAKEFLAGS"? | sed"s/$bs$bs[$bs $bs???????]*//g"`;;? esac;? fi;?skip_next=no;? strip_trailopt()? {?flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`;? };? forflg in $sane_makeflags; do? test$skip_next = yes && { skip_next=no; continue; };? case $flg in?*=*|--*) continue;;? -*I)strip_trailopt 'I'; skip_next=yes;;?-*I?*) strip_trailopt 'I';;? -*O)strip_trailopt 'O'; skip_next=yes;;?-*O?*) strip_trailopt 'O';;? -*l)strip_trailopt 'l'; skip_next=yes;;?-*l?*) strip_trailopt 'l';;?-[dEDm]) skip_next=yes;;? -[JT])skip_next=yes;;? esac;? case $flg in?*$target_option*) has_opt=yes; break;;?esac;? done;? test $has_opt = yes); then \ ? failcom='fail=yes'; \ else \ ? failcom='exit 1'; \ fi; \ dot_seen=no;\ target=`echoall-recursive | sed s/-recursive//`; \ case"all-recursive" in \ ? distclean-* | maintainer-clean-*) list='.include etc lib bin man share' ;; \ ? *) list='. include etc lib bin man share' ;;\ esac; \ for subdirin $list; do \ ? echo "Making $target in $subdir"; \ ? if test "$subdir" = ".";then \ ??? dot_seen=yes; \ ???local_target="$target-am"; \ ? else \ ??? local_target="$target"; \ ? fi; \ ? (CDPATH="${ZSH_VERSION+.}:"&& cd $subdir && /usr/ccs/bin/make? $local_target) \ ? || eval $failcom; \ done; \ if test"$dot_seen" = "no"; then \ ? /usr/ccs/bin/make? "$target-am" || exit 1; \ fi; test -z"$fail" make: Fatalerror: Command failed for target `all-recursive' bash-3.2# someone had same problem? -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Jun 2 00:10:20 2016 From: heas at shrubbery.net (Heasley) Date: Wed, 1 Jun 2016 17:10:20 -0700 Subject: [rancid] Erro with Rancid on solaris 10. In-Reply-To: <1594738517.3243124.1464802930793.JavaMail.yahoo@mail.yahoo.com> References: <1594738517.3243124.1464802930793.JavaMail.yahoo.ref@mail.yahoo.com> <1594738517.3243124.1464802930793.JavaMail.yahoo@mail.yahoo.com> Message-ID: <54830E91-4222-4CA1-B8BE-971B5C1D4948@shrubbery.net> > Am 01.06.2016 um 10:42 schrieb Fabio Santos : > > Hi all, > > I'm trying to compile the rancid 3.4.1 on solaris 10 sparc, but i'm experience some erros, see: > > bash-3.2# make > Making all in . > I just fixed this for someone else, but i need to clean it up. Give me a day or so. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabizs at yahoo.com Thu Jun 2 13:56:24 2016 From: fabizs at yahoo.com (Fabio Santos) Date: Thu, 2 Jun 2016 13:56:24 +0000 (UTC) Subject: [rancid] Erro with Rancid on solaris 10. In-Reply-To: <54830E91-4222-4CA1-B8BE-971B5C1D4948@shrubbery.net> References: <1594738517.3243124.1464802930793.JavaMail.yahoo.ref@mail.yahoo.com> <1594738517.3243124.1464802930793.JavaMail.yahoo@mail.yahoo.com> <54830E91-4222-4CA1-B8BE-971B5C1D4948@shrubbery.net> Message-ID: <317332183.3857088.1464875784835.JavaMail.yahoo@mail.yahoo.com> No problem... Please kep in mind that I already add?-D__EXTENSIONS__ to the CFLAGS line in bin/Makefile. Em Quarta-feira, 1 de Junho de 2016 21:10, Heasley escreveu: Am 01.06.2016 um 10:42 schrieb Fabio Santos : Hi all, I'm trying to compile the rancid 3.4.1 on solaris 10 sparc, but i'm experience some erros, see: bash-3.2#makeMaking allin . I just fixed this for someone else, but i need to clean it up. Give me a day or so.? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dandenoth at gmail.com Fri Jun 3 13:15:32 2016 From: dandenoth at gmail.com (Derek) Date: Fri, 3 Jun 2016 08:15:32 -0500 Subject: [rancid] Ignore flash changes in Cisco routers? Message-ID: Hello everyone. I've recently upgraded some routers to Cisco ISR 4331's, and noticed I'm getting config diffs for flash memory changes, specifically related to the tracelogs. Here's an example: - !Flash: bootflash: 98497 drwx 8192 Jun 2 2016 23:51:20 -05:00 tracelogs + !Flash: bootflash: 98497 drwx 8192 Jun 3 2016 05:48:55 -05:00 tracelogs - !Flash: bootflash: 7397990400 bytes total (6595952640 bytes free) + !Flash: bootflash: 7397990400 bytes total (6595903488 bytes free) Is there anywhere I can modify RANCID so it ignores these changes? Right now, it just clutters up my revisions needlessly. Thanks, Derek -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.cooper at rbc.com Fri Jun 3 13:23:31 2016 From: thomas.cooper at rbc.com (Cooper, Thomas) Date: Fri, 3 Jun 2016 13:23:31 +0000 Subject: [rancid] Ignore flash changes in Cisco routers? In-Reply-To: References: Message-ID: Edit your etc/rancid.types.base file. You can remove the commands rancid gathers (like ?dir nvram:?). Thomas Cooper From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Derek Sent: 2016, June, 03 9:16 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Ignore flash changes in Cisco routers? Hello everyone. I've recently upgraded some routers to Cisco ISR 4331's, and noticed I'm getting config diffs for flash memory changes, specifically related to the tracelogs. Here's an example: - !Flash: bootflash: 98497 drwx 8192 Jun 2 2016 23:51:20 -05:00 tracelogs + !Flash: bootflash: 98497 drwx 8192 Jun 3 2016 05:48:55 -05:00 tracelogs - !Flash: bootflash: 7397990400 bytes total (6595952640 bytes free) + !Flash: bootflash: 7397990400 bytes total (6595903488 bytes free) Is there anywhere I can modify RANCID so it ignores these changes? Right now, it just clutters up my revisions needlessly. Thanks, Derek _______________________________________________________________________ If you received this email in error, please advise the sender (by return email or otherwise) immediately. You have consented to receive the attached electronically at the above-noted email address; please retain a copy of this confirmation for future reference. Si vous recevez ce courriel par erreur, veuillez en aviser l'exp?diteur imm?diatement, par retour de courriel ou par un autre moyen. Vous avez accept? de recevoir le(s) document(s) ci-joint(s) par voie ?lectronique ? l'adresse courriel indiqu?e ci-dessus; veuillez conserver une copie de cette confirmation pour les fins de reference future. -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Jun 3 15:16:22 2016 From: heas at shrubbery.net (heasley) Date: Fri, 3 Jun 2016 15:16:22 +0000 Subject: [rancid] Ignore flash changes in Cisco routers? In-Reply-To: References: Message-ID: <20160603151622.GA33990@shrubbery.net> Fri, Jun 03, 2016 at 08:15:32AM -0500, Derek: > Hello everyone. I've recently upgraded some routers to Cisco ISR 4331's, > and noticed I'm getting config diffs for flash memory changes, specifically > related to the tracelogs. Here's an example: > > - !Flash: bootflash: 98497 drwx 8192 Jun 2 2016 23:51:20 > -05:00 tracelogs > > + !Flash: bootflash: 98497 drwx 8192 Jun 3 2016 05:48:55 > -05:00 tracelogs > > > - !Flash: bootflash: 7397990400 bytes total (6595952640 bytes free) > > + !Flash: bootflash: 7397990400 bytes total (6595903488 bytes free) > > Is there anywhere I can modify RANCID so it ignores these changes? Right > now, it just clutters up my revisions needlessly. 3.4.1 should filter this and summarize the free space. From axhasan5 at gmail.com Mon Jun 13 00:59:55 2016 From: axhasan5 at gmail.com (Asad) Date: Sun, 12 Jun 2016 17:59:55 -0700 (PDT) Subject: [rancid] Cisco IOS-XR Help - End of run not found Message-ID: <8826ef0a-2f81-416e-9f85-77d9751916c3@googlegroups.com> Hi All, We are trying to add a few ASR9000 IOS-XR devices to Rancid 3.4.1. My issue seems similar to http://www.shrubbery.net/pipermail/rancid-discuss/2014-May/007597.html, I have un-commented NOPIPE=YES; export NOPIPE in rancid.conf and I have also tried to uncomment some of the show commands but it is still not working. To isolate any IOS-XR configuration issues I deployed a XRv with very basic configuration and I get same "end of run not found" error message. Any help would be appreciated. rancid at jp-script/opt/rancid#rancid -d -t cisco-xr lab-xrv-01 loadtype: device type cisco-xr loadtype: found device type cisco-xr in /opt/rancid/etc/rancid.types.base executing clogin -t 90 -c"terminal exec prompt no-timestamp;admin show version;admin show install summary;admin show license udi;admin show license;admin show variables boot;admin show hw-module fpd location all;show redundancy;show install active;admin show diag;admin show inventory raw;show debug;show rpl maximum;admin show running;show running-config" lab-xrv-01 PROMPT MATCH: RP/0/0/CPU0:lab-xrv-01# HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#terminal exec prompt no-timestamp In RunCommand: RP/0/0/CPU0:lab-xrv-01#terminal exec prompt no-timestamp HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show version In ShowVersion: RP/0/0/CPU0:lab-xrv-01#admin show version TYPE = XRv Series HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show install summary In ShowInstallSummary: RP/0/0/CPU0:lab-xrv-01#admin show install summary HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show license udi In ShowLicense: RP/0/0/CPU0:lab-xrv-01#admin show license udi HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show license In ShowLicense: RP/0/0/CPU0:lab-xrv-01#admin show license HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show variables boot In ShowBootVar: RP/0/0/CPU0:lab-xrv-01#admin show variables boot HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show hw-module fpd location all In ShowRunning: RP/0/0/CPU0:lab-xrv-01#admin show hw-module fpd location all HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#show redundancy In ShowRedundancy: RP/0/0/CPU0:lab-xrv-01#show redundancy HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#show install active In ShowInstallActive: RP/0/0/CPU0:lab-xrv-01#show install active HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show diag In ShowDiag: RP/0/0/CPU0:lab-xrv-01#admin show diag HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show inventory raw In ShowInventory: RP/0/0/CPU0:lab-xrv-01#admin show inventory raw HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#show debug In ShowDebug: RP/0/0/CPU0:lab-xrv-01#show debug HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#show rpl maximum In ShowRPL: RP/0/0/CPU0:lab-xrv-01#show rpl maximum HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show running In ShowRunning: RP/0/0/CPU0:lab-xrv-01#admin show running HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#show running-config In WriteTerm: RP/0/0/CPU0:lab-xrv-01#show running-config lab-xrv-01: End of run not found lab-xrv-01: End of run not found end Thanks Asad -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mckinnon at gmail.com Mon Jun 13 19:55:52 2016 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Mon, 13 Jun 2016 21:55:52 +0200 Subject: [rancid] Cisco IOS-XR Help - End of run not found In-Reply-To: <8826ef0a-2f81-416e-9f85-77d9751916c3@googlegroups.com> References: <8826ef0a-2f81-416e-9f85-77d9751916c3@googlegroups.com> Message-ID: <575F0FC8.1050509@gmail.com> On 13/06/2016 02:59, Asad wrote: > Hi All, > > We are trying to add a few ASR9000 IOS-XR devices to Rancid 3.4.1. My > issue seems similar > to http://www.shrubbery.net/pipermail/rancid-discuss/2014-May/007597.html, > I have un-commented NOPIPE=YES; export NOPIPE in rancid.conf and I have > also tried to uncomment some of the show commands but it is still not > working. To isolate any IOS-XR configuration issues I deployed a XRv > with very basic configuration and I get same "end of run not found" > error message. > > Any help would be appreciated. > > rancid at jp-script/opt/rancid#rancid -d -t cisco-xr lab-xrv-01 > loadtype: device type cisco-xr > loadtype: found device type cisco-xr in /opt/rancid/etc/rancid.types.base > executing clogin -t 90 -c"terminal exec prompt no-timestamp;admin show > version;admin show install summary;admin show license udi;admin show > license;admin show variables boot;admin show hw-module fpd location > all;show redundancy;show install active;admin show diag;admin show > inventory raw;show debug;show rpl maximum;admin show running;show > running-config" lab-xrv-01 > PROMPT MATCH: RP/0/0/CPU0:lab-xrv-01# > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#terminal exec prompt no-timestamp > In RunCommand: RP/0/0/CPU0:lab-xrv-01#terminal exec prompt no-timestamp > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show version > In ShowVersion: RP/0/0/CPU0:lab-xrv-01#admin show version > TYPE = XRv Series > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show install summary > In ShowInstallSummary: RP/0/0/CPU0:lab-xrv-01#admin show install > summary > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show license udi > In ShowLicense: RP/0/0/CPU0:lab-xrv-01#admin show license udi > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show license > In ShowLicense: RP/0/0/CPU0:lab-xrv-01#admin show license > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show variables boot > In ShowBootVar: RP/0/0/CPU0:lab-xrv-01#admin show variables boot > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show hw-module fpd location all > In ShowRunning: RP/0/0/CPU0:lab-xrv-01#admin show hw-module fpd > location all > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#show redundancy > In ShowRedundancy: RP/0/0/CPU0:lab-xrv-01#show redundancy > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#show install active > In ShowInstallActive: RP/0/0/CPU0:lab-xrv-01#show install active > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show diag > In ShowDiag: RP/0/0/CPU0:lab-xrv-01#admin show diag > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show inventory raw > In ShowInventory: RP/0/0/CPU0:lab-xrv-01#admin show inventory raw > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#show debug > In ShowDebug: RP/0/0/CPU0:lab-xrv-01#show debug > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#show rpl maximum > In ShowRPL: RP/0/0/CPU0:lab-xrv-01#show rpl maximum > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#admin show running > In ShowRunning: RP/0/0/CPU0:lab-xrv-01#admin show running > HIT COMMAND:RP/0/0/CPU0:lab-xrv-01#show running-config > In WriteTerm: RP/0/0/CPU0:lab-xrv-01#show running-config > lab-xrv-01: End of run not found > lab-xrv-01: End of run not found > end This is an FAQ. The truth is that "End of run not found" is about as meaningful as "General exception error 1: Something went wrong." You need to get out the big debugging guns, or at least get your hands dirty. In brief, rancid works like this: logs into a device, enables, and runs a sequence of commands[1][2] on the device. It captures all the output and starts to process it in perl, line by line. The first major action is to find the string that defines the router's CLI prompt, then verify that the echoed command is the next expected one in the sequence printing "HIT COMMAND" for each one. If so, output is passed to a dedicated function for processing. And so on down the list of commands, each one checked for a prompt and the correct echo'ed command. This can go wrong in many ways, mostly influenced by the phases of the moon and whatever Cisco felt like releasing in today's image. If a function does not end cleanly at the expected point, the wrong piece of running code processes everything thereafter and the rancid script do not exit cleanly, giving your error. If something unexpected happens in a multi-line chunk of output config, a loop may not exit cleanly giving the same result.[3] In your case, the prompt was detected correctly and almost all router commands processed correctly. IIRC "show run" is the last one and it's not exiting cleanly per your output. It advise these steps first: - look carefully at the temporary router output file right at the end where "show run" ends. Does the command exit correctly with the usual prompt followed by nothing just like all the other commands above it? That would indicate everything was processed correctly except the very last step. - Something I've had to do a few times is find the main() loop in the perl code where it reads output line by line and insert a print statement to print the line just read to the screen then throw rancid at it. See what's the last line processed and let logic determine your next step. - make sure you have the correct device type configured for that device. I always found XR to be especially tricky - close enough to old-school IOS to look like it might work and different enough to need it's own codebase. [1] In the rancid-2 series this was defined in @commandtable. The 3 series may be different, but it must still exist and must be in an array somewhere. [2] NOPIPE is not relevant here. It simply defines whether the router's output is saved to a disk file then read from there, or if it is piped directly into the next piece of running perl code. 15 years ago, server RAM may have made this important but nowadays not at all. The setting only serves to give you a permanent disk file or not. [3] None of this is rancid's fault, it's trying to generate highly structured output from what too often seems like random free-form text. From seyma.nget at gmail.com Wed Jun 15 02:14:18 2016 From: seyma.nget at gmail.com (Seyma Nget) Date: Wed, 15 Jun 2016 09:14:18 +0700 Subject: [rancid] Rancid for Huawei switch Message-ID: Hi all, I am sending the email in order to get some advice from all of you if you have any idea or experiences about using Rancid for Huawei switch? I am currently having Rancid version 3.4.1 in place and Huawei S6320, S5300 and few other S33xx series. Any suggestion/idea/advice would be much appreciated. Thanks in advance, Regards, *Seyma Nget* *Network Engineer at eintellego Networks Pty Ltd.* *Cisco: Cambodia National NetRider Champion 2014 - CCNP* *Juniper: JNCIP-SP - JNCIP-SEC - JNCIP-ENT - Juniper Ingenious Champions* [image: Facebook] [image: Twitter] [image: Google Plus] [image: Youtube] [image: Linkedin] [image: Instagram] [image: Pinterest] -------------- next part -------------- An HTML attachment was scrubbed... URL: From howard at leadmon.net Thu Jun 16 17:33:00 2016 From: howard at leadmon.net (Howard Leadmon) Date: Thu, 16 Jun 2016 13:33:00 -0400 Subject: [rancid] Issues running rancid from cron on Ubuntu.. Message-ID: <188a01d1c7f5$24317130$6c945390$@leadmon.net> Maybe this will be an easy one for someone to answer, I can hope. I had rancid for years running on FBSD, but recently moved over on to a current Ubuntu server. I moved my configs across, and have it so if from a shell prompt I perform a rancid-run life is good, it's seeing all the gear, and saving cofigs, and emailing updates to me. The problem is when I toss rancid-run into cron, it spits errors and will not read the configs. So it's for sure an issue of this being kicked into cron, but using google-fu I am finding nothing. I even tried not calling the symlink but calling the main executable directly, but still no difference. Here is the error I see in the rancid.log file if I let this execute from cron: starting: Thu Jun 16 12:31:02 EDT 2016 Trying to get all of the configs. no such variable (read trace on "env(USER)") invoked from within "add user * $env(USER)" ("eval" body line 1) invoked from within "eval $line" (procedure "source_password_file" line 21) invoked from within "source_password_file $password_file" (file "/usr/lib/rancid/bin/clogin" line 853)no such variable (read trace on "env(USER)") invoked from within "add user * $env(USER)" ("eval" body line 1) invoked from within "eval $line" (procedure "source_password_file" line 21) invoked from within "source_password_file $password_file" (file "/usr/lib/rancid/bin/clogin" line 853) switch-1: missed cmd(s): all commands switch-1: End of run not found ! This ONLY happens when I execute from cron, if done locally in a shell, all works perfectly. In crontab, I simply have the time and path to rancid-run. Any ideas? --- Howard Leadmon -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mckinnon at gmail.com Thu Jun 16 17:48:13 2016 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Thu, 16 Jun 2016 19:48:13 +0200 Subject: [rancid] Issues running rancid from cron on Ubuntu.. In-Reply-To: <188a01d1c7f5$24317130$6c945390$@leadmon.net> References: <188a01d1c7f5$24317130$6c945390$@leadmon.net> Message-ID: <5762E65D.7090101@gmail.com> On 16/06/2016 19:33, Howard Leadmon wrote: > Maybe this will be an easy one for someone to answer, I can hope. I > had rancid for years running on FBSD, but recently moved over on to a > current Ubuntu server. I moved my configs across, and have it so if > from a shell prompt I perform a rancid-run life is good, it?s seeing all > the gear, and saving cofigs, and emailing updates to me. > > The problem is when I toss rancid-run into cron, it spits errors and > will not read the configs. So it?s for sure an issue of this being > kicked into cron, but using google-fu I am finding nothing. I even > tried not calling the symlink but calling the main executable directly, > but still no difference. > > Here is the error I see in the rancid.log file if I let this execute > from cron: > > starting: Thu Jun 16 12:31:02 EDT 2016 > > Trying to get all of the configs. > > no such variable > > (read trace on "env(USER)") > > invoked from within > > "add user * $env(USER)" > > ("eval" body line 1) > > invoked from within > > "eval $line" > > (procedure "source_password_file" line 21) > > invoked from within > > "source_password_file $password_file" > > (file "/usr/lib/rancid/bin/clogin" line 853)no such variable > > (read trace on "env(USER)") > > invoked from within > > "add user * $env(USER)" > > ("eval" body line 1) > > invoked from within > > "eval $line" > > (procedure "source_password_file" line 21) > > invoked from within > > "source_password_file $password_file" > > (file "/usr/lib/rancid/bin/clogin" line 853) > > switch-1: missed cmd(s): all commands > > switch-1: End of run not found > > ! > > This ONLY happens when I execute from cron, if done locally in a shell, > all works perfectly. > > In crontab, I simply have the time and path to rancid-run. > > Any ideas? There's usually only one thing that every causes this - the shell environment. A login shell comes with all manner of convenient envvars like PATH that make a human's life easier. cron usually runs in a bare-bones shell with very little in the way of an environment (by design) meaning you can't rely on user shortcuts like PATH. Or it could be as simple as cron doesn't use the same shell you do. You'll have to examine your system with this in mind and see where things differ. It's difficult to get more specific than that at this stage given the information available. Alan From howard at leadmon.net Thu Jun 16 19:14:13 2016 From: howard at leadmon.net (Howard Leadmon) Date: Thu, 16 Jun 2016 15:14:13 -0400 Subject: [rancid] Issues running rancid from cron on Ubuntu.. In-Reply-To: <5762E65D.7090101@gmail.com> References: <188a01d1c7f5$24317130$6c945390$@leadmon.net> <5762E65D.7090101@gmail.com> Message-ID: <18ec01d1c803$47cb06c0$d7611440$@leadmon.net> FYI, I did get it sorted out, but strange more haven't run into this unless my environment is screwy for some reason. I had to set the USER name in the environment. I looked at the environment, and saw LOGNAME=rancid, but that I didn't see USER= rancid. So in the crontab I set USER=rancid, and off everything went.. --- Howard Leadmon From heas at shrubbery.net Thu Jun 16 21:36:11 2016 From: heas at shrubbery.net (heasley) Date: Thu, 16 Jun 2016 21:36:11 +0000 Subject: [rancid] Issues running rancid from cron on Ubuntu.. In-Reply-To: <18ec01d1c803$47cb06c0$d7611440$@leadmon.net> References: <188a01d1c7f5$24317130$6c945390$@leadmon.net> <5762E65D.7090101@gmail.com> <18ec01d1c803$47cb06c0$d7611440$@leadmon.net> Message-ID: <20160616213611.GC19286@shrubbery.net> Thu, Jun 16, 2016 at 03:14:13PM -0400, Howard Leadmon: > FYI, I did get it sorted out, but strange more haven't run into this unless > my environment is screwy for some reason. > > I had to set the USER name in the environment. I looked at the > environment, and saw LOGNAME=rancid, but that I didn't see USER= rancid. > So in the crontab I set USER=rancid, and off everything went.. > grumble. double middle finger to ubuntu. i'll make it look for both variables. From heas at shrubbery.net Thu Jun 16 22:19:19 2016 From: heas at shrubbery.net (heasley) Date: Thu, 16 Jun 2016 22:19:19 +0000 Subject: [rancid] Issues running rancid from cron on Ubuntu.. In-Reply-To: <20160616221458.99CCA1CD22A@sea.shrubbery.net> <20160616213611.GC19286@shrubbery.net> Message-ID: <20160616221919.GF19286@shrubbery.net> Thu, Jun 16, 2016 at 09:36:11PM +0000, heasley: > Thu, Jun 16, 2016 at 03:14:13PM -0400, Howard Leadmon: > > FYI, I did get it sorted out, but strange more haven't run into this unless > > my environment is screwy for some reason. > > > > I had to set the USER name in the environment. I looked at the > > environment, and saw LOGNAME=rancid, but that I didn't see USER= rancid. > > So in the crontab I set USER=rancid, and off everything went.. this will help. not all of the login scripts use this file yet, but it can be applied to the others. Index: bin/login_top.in =================================================================== --- bin/login_top.in (revision 3410) +++ bin/login_top.in (revision 3412) @@ -2,13 +2,22 @@ # x == do not set xterm banner or name # Find the user in the ENV, or use the unix userid. -if {[info exists env(CISCO_USER)]} { - set default_user $env(CISCO_USER) -} elseif {[info exists env(USER)]} { - set default_user $env(USER) -} elseif {[info exists env(LOGNAME)]} { - set default_user $env(LOGNAME) -} else { +if {![info exists default_user] && [info exists env(CISCO_USER)]} { + if {[string length $env(CISCO_USER)]} { + set default_user $env(CISCO_USER) + } +} +if {![info exists default_user] && [info exists env(USER)]} { + if {[string length $env(USER)]} { + set default_user $env(USER) + } +} +if {![info exists default_user] && [info exists env(LOGNAME)]} { + if {[string length $env(LOGNAME)]} { + set default_user $env(LOGNAME) + } +} +if (![info exists default_user]) { # This uses "id" which I think is portable. At least it has existed # (without options) on all machines/OSes I've been on recently - # unlike whoami or id -nu. From howard at leadmon.net Fri Jun 17 03:42:31 2016 From: howard at leadmon.net (Howard Leadmon) Date: Thu, 16 Jun 2016 23:42:31 -0400 Subject: [rancid] coredump.cfg on our Cisco ASA's.. Message-ID: <1aea01d1c84a$4a4f4860$deedd920$@leadmon.net> In an older version of rancid, we used to edit the rancid file to add a "next if" line to tell it to skip coredump.cfg if it encountered any change. This stopped it sending out a diff for every ASA we have on every run, which is to say the least annoying. Here is an example of what we are seeing: Index: configs/firewall =================================================================== retrieving revision 1.9 diff -u -4 -r1.9 firewall @@ -67,9 +67,9 @@ ! The flash activation key is the SAME as the running key. ! !Flash: --#-- --length-- -----date/time------ path !Flash: 13 4096 Jul 14 2009 04:32:24 coredumpinfo - !Flash: 14 43 Jun 16 2016 21:03:07 coredumpinfo/coredump.cfg + !Flash: 14 43 Jun 16 2016 22:03:07 coredumpinfo/coredump.cfg !Flash: 84 4181246 May 21 2009 04:16:00 securedesktop-asa-3.2.1.103-k9.pkg !Flash: 85 398305 May 21 2009 04:16:22 sslclient-win-1.1.0.154.pkg !Flash: 12 4096 Nov 09 2009 19:24:16 crypto_archive !Flash: 92 393828 Sep 01 2009 13:25:16 crypto_archive/crypto_arch_1.bin I am now running version 3.3.0 according the start script, and the rancid script is very small now, guessing a lot got put elsewhere. Can anyone point me to a way to make rancid stop sending me an update about the coredump.cfg file on every run, it would sure be appreciated.. --- Howard Leadmon -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Jun 17 06:23:13 2016 From: heas at shrubbery.net (heasley) Date: Fri, 17 Jun 2016 06:23:13 +0000 Subject: [rancid] coredump.cfg on our Cisco ASA's.. In-Reply-To: <1aea01d1c84a$4a4f4860$deedd920$@leadmon.net> References: <1aea01d1c84a$4a4f4860$deedd920$@leadmon.net> Message-ID: <20160617062313.GA33759@shrubbery.net> Thu, Jun 16, 2016 at 11:42:31PM -0400, Howard Leadmon: > In an older version of rancid, we used to edit the rancid file to add a > "next if" line to tell it to skip coredump.cfg if it encountered any change. > This stopped it sending out a diff for every ASA we have on every run, which > is to say the least annoying. you can 1) the device shouldn't be repeatedly altering the file; its a bug. upgrade the o/s and/or complain to crisco. 2) edit etc/rancid.types.base to remove dir show flash or, since the install of the next version that you adopt will overwrite that file, define your own type just for asa in rancid.types.conf. i prefer the latter as it doesnt discourage you from adopting new versions. 3) edit lib/ios.pm as you would have changed rancid or, since the install ..., create a new lib/your.pm with your own function to filter show flash and use that in rancid.types.conf. From bena at spreadshirt.net Fri Jun 17 16:40:17 2016 From: bena at spreadshirt.net (Bernd Naumann) Date: Fri, 17 Jun 2016 18:40:17 +0200 Subject: [rancid] Support for HP ProCurve E8212zl, E5412zl, 2610. + Confirmation: Dell PowerConnect 7048, and Dell Force10 MXL works Message-ID: <8093f11f-b9a6-bf0a-3acd-8476549c7180@spreadshirt.net> Hello *, For the following HP devices a small patch was necessary, and I want to ask how to patch, because I have not found any reference to a repository or instruction... (Device names from the login prompt) * HP J9091A Switch E8212zl * HP J8698A Switch E5412zl * ProCurve J9086A Switch 2610-24/12PWR cat hlogin.patch --- bin/hlogin.in.orig 2016-02-16 12:28:21.000000000 +0000 +++ bin/hlogin.in 2016-06-17 16:23:42.401055616 +0000 @@ -411,7 +411,7 @@ catch {close}; catch {wait}; send_user "\nError: Unknown host\n"; wait; return 1 } - -re "Enter passphrase.*: " { + -re "(Enter passphrase.*: |.*'s password: )" { # sleep briefly to allow time for stty -echo sleep 1 send -- "$passphrase\r" rancid just ran a few times, so I still have to keep an eye on that, if there are any other differences, but so far everything looks good... In addition, I want to confirm that Dell PowerConnect 7048 works, too, with the type "smc" and Dell Force10 with "force10". But, same story, I have to keep a eye on them. Bernd From mpofu.md at gmail.com Thu Jun 23 13:51:25 2016 From: mpofu.md at gmail.com (Mayibongwe Darlington Mpofu) Date: Thu, 23 Jun 2016 15:51:25 +0200 Subject: [rancid] IOS XR devices not contacted for more than 24 hrs error Message-ID: Hi guys I need help with IOS XR devices that have not been contacted for more than 24 hrs. I can run clogin and run commands on the ios xr devices and it works OK. xrancid seems to work as well. how ever cronjob rancid-run returns End of file not found. On the log file l get the following error: cvs [status aborted]: cannot open file xxx-xxx-xxx-router01 for comparing: Permission denied cvs [status aborted]: cannot open file xxx-xxx-xxx-router02 for comparing: Permission denied Trying to get all of the configs. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re ^H+ { exp_continue } -re {^[^ ^M *]*RP/0/RSP0/C([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 166) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/local/rancid/bin/clogin" line 743)^M zaf-mid-mtb-msr01: missed cmd(s): dir /all disk1a:,admin show diag,dir /all slavedisk2:,dir /all sec-slot2:,dir /all disk1:,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,dir /all slaveslot2:,dir /all disk0:,show install active,dir /all compactflasha:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all sec-disk0:,dir /all harddiskb:,dir /all slavedisk1:,admin show env all,show controllers,dir /all slavedisk0:,show debug,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,dir /all disk0a:,dir /all slot2:,dir /all compactflash:,dir /all harddisk:,dir /all slot0:,show vlan,dir /all slavebootflash:,dir /all slaveslot1:,dir /all nvram:,admin show inventory raw,show redundancy secondary,admin show variables boot,show running-config,dir /all slot1: xxx-xxx-xxx-ruoter01: End of run not found and >xrrancid -d zaf-mid-mtb-msr01 executing clogin -t 90 -c"terminal no-timestamp;terminal exec prompt no-timestamp;admin show version;show redundancy secondary;show install active;admin show env all;show diag chassis-info;admin show variables boot;dir /all nvram:;dir /all bootflash:;dir /all compactflash:;dir /all compactflasha:;dir /all slot0:;dir /all disk0:;dir /all disk0a:;dir /all slot1:;dir /all disk1:;dir /all disk1a:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;admin show diag;admin show inventory raw;show vlan;show debug;show running-config" zaf-mid-mtb-msr01 PROMPT MATCH: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01# HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal no-timestamp In FilterAll: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal no-timestamp HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal exec prompt no-timestamp In FilterAll: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal exec prompt no-timestamp HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show version In ShowVersion: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show version HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show redundancy secondary In ShowRedundancy: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show redundancy secondary HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show install active In ShowInstallActive: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show install active HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show env all In ShowEnv: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show env all HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show diag chassis-info In ShowGSR: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show diag chassis-info HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show variables boot In ShowBoot: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show variables boot HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all nvram: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all nvram: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all bootflash: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all bootflash: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflash: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflash: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflasha: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflasha: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot0: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot0: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0a: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0a: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot1: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot1: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1a: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1a: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot2: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot2: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk2: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk2: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddisk: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddisk: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiska: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiska: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiskb: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiskb: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavenvram: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavenvram: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavebootflash: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavebootflash: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot0: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot0: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk0: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk0: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot1: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot1: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk1: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk1: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot2: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot2: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk2: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk2: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-nvram: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-nvram: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-bootflash: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-bootflash: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot0: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot0: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk0: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk0: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot1: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot1: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk1: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk1: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot2: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot2: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk2: In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk2: HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show controllers In ShowContAll: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show controllers HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show diag In ShowDiag: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show diag HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show inventory raw In ShowInventory: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show inventory raw HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show vlan In ShowVLAN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show vlan HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show debug In ShowDebug: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show debug HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show running-config In WriteTerm: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show running-config > Where do l start troubleshooting. where am l going wrong with these ios xr devices. Regards DarlingtonM -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpofu.md at gmail.com Thu Jun 23 14:22:47 2016 From: mpofu.md at gmail.com (Mayibongwe Darlington Mpofu) Date: Thu, 23 Jun 2016 16:22:47 +0200 Subject: [rancid] IOS XR devices not contacted for more than 24 hrs error In-Reply-To: References: Message-ID: There are some cmds that are not giving output such as" sh vlan, sh redundancy secondary, sh diag chassis-info" could it be an issue of these cmds failing to execute?? Rergards DarlingtonM On Thu, Jun 23, 2016 at 3:51 PM, Mayibongwe Darlington Mpofu < mpofu.md at gmail.com> wrote: > Hi guys > > I need help with IOS XR devices that have not been contacted for more than > 24 hrs. > > I can run clogin and run commands on the ios xr devices and it works OK. > > xrancid seems to work as well. > > how ever cronjob rancid-run returns End of file not found. > > On the log file l get the following error: > cvs [status aborted]: cannot open file xxx-xxx-xxx-router01 for comparing: > Permission denied > cvs [status aborted]: cannot open file xxx-xxx-xxx-router02 for comparing: > Permission denied > > Trying to get all of the configs. > write(spawn_id=1): broken pipe > while executing > "send_user -- "$expect_out(buffer)"" > invoked from within > "expect -nobrace -re ^H+ { exp_continue } -re {^[^ > ^M *]*RP/0/RSP0/C([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- > "$expect_out(buffer)" > } -re {..." > invoked from within > "expect { > -re "\b+" { exp_continue } > -re "^\[^\n\r *]*$reprompt" { send_user -- > "$expect_out(buffer)" > } > -re "^\[^\n\r]*$reprom..." > (procedure "run_commands" line 39) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 166) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > # attempt at platform switching. > set platform "" > send_user ..." > (file "/usr/local/rancid/bin/clogin" line 743)^M > zaf-mid-mtb-msr01: missed cmd(s): dir /all disk1a:,admin show diag,dir > /all slavedisk2:,dir /all sec-slot2:,dir /all disk1:,dir /all > sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all > sec-bootflash:,dir /all slaveslot2:,dir /all disk0:,show install active,dir > /all compactflasha:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all > harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all sec-disk0:,dir > /all harddiskb:,dir /all slavedisk1:,admin show env all,show > controllers,dir /all slavedisk0:,show debug,dir /all bootflash:,dir /all > sec-slot0:,dir /all sec-disk1:,dir /all disk0a:,dir /all slot2:,dir /all > compactflash:,dir /all harddisk:,dir /all slot0:,show vlan,dir /all > slavebootflash:,dir /all slaveslot1:,dir /all nvram:,admin show inventory > raw,show redundancy secondary,admin show variables boot,show > running-config,dir /all slot1: > xxx-xxx-xxx-ruoter01: End of run not found > > and > > >xrrancid -d zaf-mid-mtb-msr01 > executing clogin -t 90 -c"terminal no-timestamp;terminal exec prompt > no-timestamp;admin show version;show redundancy secondary;show install > active;admin show env all;show diag chassis-info;admin show variables > boot;dir /all nvram:;dir /all bootflash:;dir /all compactflash:;dir /all > compactflasha:;dir /all slot0:;dir /all disk0:;dir /all disk0a:;dir /all > slot1:;dir /all disk1:;dir /all disk1a:;dir /all slot2:;dir /all disk2:;dir > /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all > slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all > slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all > slaveslot2:;dir /all slavedisk2:;dir /all sec-nvram:;dir /all > sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all > sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show > controllers;admin show diag;admin show inventory raw;show vlan;show > debug;show running-config" zaf-mid-mtb-msr01 > PROMPT MATCH: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01# > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal no-timestamp > In FilterAll: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal no-timestamp > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal exec prompt > no-timestamp > In FilterAll: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal exec prompt > no-timestamp > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show version > In ShowVersion: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show version > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show redundancy secondary > In ShowRedundancy: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show redundancy > secondary > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show install active > In ShowInstallActive: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show install > active > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show env all > In ShowEnv: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show env all > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show diag chassis-info > In ShowGSR: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show diag chassis-info > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show variables boot > In ShowBoot: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show variables > boot > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all nvram: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all nvram: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all bootflash: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all bootflash: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflash: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflash: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflasha: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all > compactflasha: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0a: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0a: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1a: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1a: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddisk: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddisk: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiska: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiska: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiskb: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiskb: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavenvram: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavenvram: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavebootflash: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all > slavebootflash: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-nvram: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-nvram: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-bootflash: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all > sec-bootflash: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show controllers > In ShowContAll: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show controllers > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show diag > In ShowDiag: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show diag > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show inventory raw > In ShowInventory: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show > inventory raw > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show vlan > In ShowVLAN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show vlan > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show debug > In ShowDebug: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show debug > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show running-config > In WriteTerm: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show running-config > > > > Where do l start troubleshooting. where am l going wrong with these ios xr > devices. > > > Regards > > DarlingtonM > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ginesgb at gmail.com Thu Jun 23 16:27:13 2016 From: ginesgb at gmail.com (Gines Granados Bayona) Date: Thu, 23 Jun 2016 09:27:13 -0700 (PDT) Subject: [rancid] Rancid set to send an email notification to date Message-ID: <6f23a0a0-416e-4abf-807c-9a31ca8b7cb1@googlegroups.com> Hi , it was looking like rancid change settings to make a single shipment notification email every 24 hours. I use RANCID for all my network device config backups. For non critical networks, or execs that wanted to know what was going on it the network . Greetings and thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mckinnon at gmail.com Thu Jun 23 20:03:04 2016 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Thu, 23 Jun 2016 22:03:04 +0200 Subject: [rancid] IOS XR devices not contacted for more than 24 hrs error In-Reply-To: References: Message-ID: <0f663dc4-f138-f951-5c9d-de160a46fe75@gmail.com> On 23/06/2016 15:51, Mayibongwe Darlington Mpofu wrote: > Hi guys > > I need help with IOS XR devices that have not been contacted for more > than 24 hrs. > > I can run clogin and run commands on the ios xr devices and it works OK. > > xrancid seems to work as well. > > how ever cronjob rancid-run returns End of file not found. > > On the log file l get the following error: > cvs [status aborted]: cannot open file xxx-xxx-xxx-router01 for > comparing: Permission denied This is your problem, your have permissions errors and cvs cannot do what it needs to do. Use "find" to look for files not owned by the rancid user. Most common cause is running rancid as root or as yourself, cvs then creates files that rancid cannot read > cvs [status aborted]: cannot open file xxx-xxx-xxx-router02 for > comparing: Permission denied > > Trying to get all of the configs. > write(spawn_id=1): broken pipe > while executing > "send_user -- "$expect_out(buffer)"" > invoked from within > "expect -nobrace -re ^H+ { exp_continue } -re {^[^ > ^M *]*RP/0/RSP0/C([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- > "$expect_out(buffer)" > } -re {..." > invoked from within > "expect { > -re "\b+" { exp_continue } > -re "^\[^\n\r *]*$reprompt" { send_user -- > "$expect_out(buffer)" > } > -re "^\[^\n\r]*$reprom..." > (procedure "run_commands" line 39) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 166) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > # attempt at platform switching. > set platform "" > send_user ..." > (file "/usr/local/rancid/bin/clogin" line 743)^M > zaf-mid-mtb-msr01: missed cmd(s): dir /all disk1a:,admin show diag,dir > /all slavedisk2:,dir /all sec-slot2:,dir /all disk1:,dir /all > sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all > sec-bootflash:,dir /all slaveslot2:,dir /all disk0:,show install > active,dir /all compactflasha:,dir /all slaveslot0:,dir /all > sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all > sec-disk2:,dir /all sec-disk0:,dir /all harddiskb:,dir /all > slavedisk1:,admin show env all,show controllers,dir /all > slavedisk0:,show debug,dir /all bootflash:,dir /all sec-slot0:,dir /all > sec-disk1:,dir /all disk0a:,dir /all slot2:,dir /all compactflash:,dir > /all harddisk:,dir /all slot0:,show vlan,dir /all slavebootflash:,dir > /all slaveslot1:,dir /all nvram:,admin show inventory raw,show > redundancy secondary,admin show variables boot,show running-config,dir > /all slot1: > xxx-xxx-xxx-ruoter01: End of run not found > > and > >>xrrancid -d zaf-mid-mtb-msr01 > executing clogin -t 90 -c"terminal no-timestamp;terminal exec prompt > no-timestamp;admin show version;show redundancy secondary;show install > active;admin show env all;show diag chassis-info;admin show variables > boot;dir /all nvram:;dir /all bootflash:;dir /all compactflash:;dir /all > compactflasha:;dir /all slot0:;dir /all disk0:;dir /all disk0a:;dir /all > slot1:;dir /all disk1:;dir /all disk1a:;dir /all slot2:;dir /all > disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir > /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all > slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all > slaveslot2:;dir /all slavedisk2:;dir /all sec-nvram:;dir /all > sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all > sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all > sec-disk2:;show controllers;admin show diag;admin show inventory > raw;show vlan;show debug;show running-config" zaf-mid-mtb-msr01 > PROMPT MATCH: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01# > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal no-timestamp > In FilterAll: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal no-timestamp > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal exec prompt > no-timestamp > In FilterAll: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal exec > prompt no-timestamp > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show version > In ShowVersion: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show version > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show redundancy secondary > In ShowRedundancy: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show > redundancy secondary > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show install active > In ShowInstallActive: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show > install active > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show env all > In ShowEnv: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show env all > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show diag chassis-info > In ShowGSR: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show diag chassis-info > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show variables boot > In ShowBoot: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show > variables boot > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all nvram: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all nvram: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all bootflash: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all bootflash: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflash: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflash: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflasha: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflasha: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0a: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0a: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1a: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1a: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddisk: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddisk: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiska: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiska: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiskb: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiskb: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavenvram: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavenvram: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavebootflash: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all > slavebootflash: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-nvram: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-nvram: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-bootflash: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-bootflash: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show controllers > In ShowContAll: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show controllers > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show diag > In ShowDiag: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show diag > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show inventory raw > In ShowInventory: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show > inventory raw > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show vlan > In ShowVLAN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show vlan > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show debug > In ShowDebug: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show debug > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show running-config > In WriteTerm: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show running-config >> > > Where do l start troubleshooting. where am l going wrong with these ios > xr devices. > > > Regards > > DarlingtonM > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Alan McKinnon alan.mckinnon at gmail.com From mpofu.md at gmail.com Mon Jun 27 13:08:38 2016 From: mpofu.md at gmail.com (Mayibongwe Darlington Mpofu) Date: Mon, 27 Jun 2016 15:08:38 +0200 Subject: [rancid] IOS XR devices not contacted for more than 24 hrs error In-Reply-To: References: Message-ID: Hi I am actually on rancid 2.3.6. I have checked the setting, there are similar to the other IOS XR devices that configured for the same group. The only difference l have seen, is in the line default configuration between the devices that are contacted by rancid and those that are not. The working group has a access-class specified and the other does not have. I am not sure if this does make a difference. Regards DarlingtonM On Thu, Jun 23, 2016 at 3:51 PM, Mayibongwe Darlington Mpofu < mpofu.md at gmail.com> wrote: > Hi guys > > I need help with IOS XR devices that have not been contacted for more than > 24 hrs. > > I can run clogin and run commands on the ios xr devices and it works OK. > > xrancid seems to work as well. > > how ever cronjob rancid-run returns End of file not found. > > On the log file l get the following error: > cvs [status aborted]: cannot open file xxx-xxx-xxx-router01 for comparing: > Permission denied > cvs [status aborted]: cannot open file xxx-xxx-xxx-router02 for comparing: > Permission denied > > Trying to get all of the configs. > write(spawn_id=1): broken pipe > while executing > "send_user -- "$expect_out(buffer)"" > invoked from within > "expect -nobrace -re ^H+ { exp_continue } -re {^[^ > ^M *]*RP/0/RSP0/C([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- > "$expect_out(buffer)" > } -re {..." > invoked from within > "expect { > -re "\b+" { exp_continue } > -re "^\[^\n\r *]*$reprompt" { send_user -- > "$expect_out(buffer)" > } > -re "^\[^\n\r]*$reprom..." > (procedure "run_commands" line 39) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 166) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > # attempt at platform switching. > set platform "" > send_user ..." > (file "/usr/local/rancid/bin/clogin" line 743)^M > zaf-mid-mtb-msr01: missed cmd(s): dir /all disk1a:,admin show diag,dir > /all slavedisk2:,dir /all sec-slot2:,dir /all disk1:,dir /all > sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all > sec-bootflash:,dir /all slaveslot2:,dir /all disk0:,show install active,dir > /all compactflasha:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all > harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all sec-disk0:,dir > /all harddiskb:,dir /all slavedisk1:,admin show env all,show > controllers,dir /all slavedisk0:,show debug,dir /all bootflash:,dir /all > sec-slot0:,dir /all sec-disk1:,dir /all disk0a:,dir /all slot2:,dir /all > compactflash:,dir /all harddisk:,dir /all slot0:,show vlan,dir /all > slavebootflash:,dir /all slaveslot1:,dir /all nvram:,admin show inventory > raw,show redundancy secondary,admin show variables boot,show > running-config,dir /all slot1: > xxx-xxx-xxx-ruoter01: End of run not found > > and > > >xrrancid -d zaf-mid-mtb-msr01 > executing clogin -t 90 -c"terminal no-timestamp;terminal exec prompt > no-timestamp;admin show version;show redundancy secondary;show install > active;admin show env all;show diag chassis-info;admin show variables > boot;dir /all nvram:;dir /all bootflash:;dir /all compactflash:;dir /all > compactflasha:;dir /all slot0:;dir /all disk0:;dir /all disk0a:;dir /all > slot1:;dir /all disk1:;dir /all disk1a:;dir /all slot2:;dir /all disk2:;dir > /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all > slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all > slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all > slaveslot2:;dir /all slavedisk2:;dir /all sec-nvram:;dir /all > sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all > sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show > controllers;admin show diag;admin show inventory raw;show vlan;show > debug;show running-config" zaf-mid-mtb-msr01 > PROMPT MATCH: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01# > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal no-timestamp > In FilterAll: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal no-timestamp > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal exec prompt > no-timestamp > In FilterAll: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#terminal exec prompt > no-timestamp > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show version > In ShowVersion: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show version > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show redundancy secondary > In ShowRedundancy: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show redundancy > secondary > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show install active > In ShowInstallActive: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show install > active > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show env all > In ShowEnv: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show env all > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show diag chassis-info > In ShowGSR: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show diag chassis-info > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show variables boot > In ShowBoot: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show variables > boot > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all nvram: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all nvram: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all bootflash: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all bootflash: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflash: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflash: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all compactflasha: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all > compactflasha: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0a: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk0a: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1a: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk1a: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slot2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all disk2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddisk: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddisk: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiska: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiska: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiskb: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all harddiskb: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavenvram: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavenvram: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavebootflash: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all > slavebootflash: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slaveslot2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all slavedisk2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-nvram: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-nvram: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-bootflash: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all > sec-bootflash: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk0: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk0: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk1: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk1: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-slot2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk2: > In DirSlotN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#dir /all sec-disk2: > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show controllers > In ShowContAll: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show controllers > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show diag > In ShowDiag: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show diag > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show inventory raw > In ShowInventory: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#admin show > inventory raw > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show vlan > In ShowVLAN: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show vlan > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show debug > In ShowDebug: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show debug > HIT COMMAND:RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show running-config > In WriteTerm: RP/0/RSP0/CPU0:xxx-xxx-xxx-router01#show running-config > > > > Where do l start troubleshooting. where am l going wrong with these ios xr > devices. > > > Regards > > DarlingtonM > -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Mon Jun 27 16:54:02 2016 From: heas at shrubbery.net (heasley) Date: Mon, 27 Jun 2016 16:54:02 +0000 Subject: [rancid] IOS XR devices not contacted for more than 24 hrs error In-Reply-To: References: Message-ID: <20160627165402.GD18760@shrubbery.net> Mon, Jun 27, 2016 at 03:08:38PM +0200, Mayibongwe Darlington Mpofu: > Hi > > I am actually on rancid 2.3.6. I am sorry, that is much too old. I just can't spend time supporting a version that old. please move to 3.4.1; you may have the same problem, but its much easier for me and folks on the list to help you. From andrewm659 at yahoo.com Wed Jun 29 13:41:09 2016 From: andrewm659 at yahoo.com (Andrew Meyer) Date: Wed, 29 Jun 2016 13:41:09 +0000 (UTC) Subject: [rancid] Rancid not collecting new devices References: <1735632958.824169.1467207669254.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <1735632958.824169.1467207669254.JavaMail.yahoo@mail.yahoo.com> I'm running the latest rancid on FreeBSD 10.3, and i've recently added a few devices to my system. ?I've got this setup with Subversion. ?I also have WebSVN setup to view the changes. ?I can see RANCID grabbing the configs, but its not adding them to the system. ?I'm not sure why. ?I can run a clogin and it works fine. ?If I run rancid-run by itself as the rancid user then it runs immidiately, doesn't take a long time to go through all my devices. ?I'm not sure if there is a bug in the latest build or something else. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Charles.Brooks at hbcs.org Thu Jun 30 14:34:05 2016 From: Charles.Brooks at hbcs.org (Charles T. Brooks) Date: Thu, 30 Jun 2016 14:34:05 +0000 Subject: [rancid] Nexus 1000v switch-router Message-ID: Hullo all I've poked around the list archives and haven't found any information about using RANCiD with the Cisco 1000V virtualized switch/router. (Information on that product here - http://www.cisco.com/c/en/us/products/collateral/switches/nexus-1000v-switch-vmware-vsphere/data_sheet_c78-492971.html) If I use a device type of "cisco" it works, but has the same minor but annoying problems that you get when monitoring a Nexus 5K with device type cisco. If I use device type "cisco-nx" it simply does not work at all - after 24 hours I start getting the "unable to connect to device" emails every hour. Has anyone else run into this yet, or am I the first? --Charlie PS: I implemented rancid with git and gitweb a month ago and set up monitoring and automatic remote git a month or so ago and it's FANTASTIC... saves me a lot of work and the price is right. Thank you Mr. Heasley and co-conspirators! --C ------------------ 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 --------------- From heas at shrubbery.net Thu Jun 30 15:43:56 2016 From: heas at shrubbery.net (heasley) Date: Thu, 30 Jun 2016 15:43:56 +0000 Subject: [rancid] Nexus 1000v switch-router In-Reply-To: References: Message-ID: <20160630154356.GB4669@shrubbery.net> Thu, Jun 30, 2016 at 02:34:05PM +0000, Charles T. Brooks: > Hullo all > > I've poked around the list archives and haven't found any information about using RANCiD with the Cisco 1000V virtualized switch/router. (Information on that product here - http://www.cisco.com/c/en/us/products/collateral/switches/nexus-1000v-switch-vmware-vsphere/data_sheet_c78-492971.html) > > If I use a device type of "cisco" it works, but has the same minor but annoying problems that you get when monitoring a Nexus 5K with device type cisco. If I use device type "cisco-nx" it simply does not work at all - after 24 hours I start getting the "unable to connect to device" emails every hour. Has anyone else run into this yet, or am I the first? which are what? I do not know what would be particular about the 1000v over other nexus, besides perhaps environmentals, which was fixed in rancid 3.3. Assuming you have rancid 3.3 or newer, would you send the output of rancid -t cisco-nx -d hostname From andrewm659 at yahoo.com Thu Jun 30 16:31:47 2016 From: andrewm659 at yahoo.com (Andrew Meyer) Date: Thu, 30 Jun 2016 16:31:47 +0000 (UTC) Subject: [rancid] RANCID with SVN not committing References: <1681425224.1483540.1467304307951.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <1681425224.1483540.1467304307951.JavaMail.yahoo@mail.yahoo.com> Thank you for the help with the lock files and tmp dir. ?However now I'm running into other issues with adding devices to RANCID. I'm seeing this at the top of the logs:[rancid at rancid3svn ~/logs]$ cat NetworkDevices.20160724.125000starting: Sun Jul 24 12:50:00 CDT 2016 property 'svn:ignore' set on '.'property 'svn:ignore' set on 'configs'Updating '.':Restored 'configs/192.168.220.1'Restored 'configs/10.150.1.180'svn: E155009: Failed to run the WC DB work queue associated with '/usr/local/var/rancid/NetworkDevices/configs/10.150.1.1', work item 233 (file-install configs/10.150.1.1 1 0 1 1)svn: E000002: Can't open file '/usr/local/var/rancid/NetworkDevices/.svn/pristine/60/6090119d75f579cc9febd2435980a56f0e790e9b.svn-base': No such file or directorysvn: E155037: Commit failed (details follow):svn: E155037: Previous operation has not finished; run 'cleanup' if it was interruptedsvn: E155037: Previous operation has not finished; run 'cleanup' if it was interruptedsvn: E155037: Commit failed (details follow):svn: E155037: Previous operation has not finished; run 'cleanup' if it was interruptedsvn added missing router 10.150.1.124svn: E155037: Previous operation has not finished; run 'cleanup' if it was interruptedsvn: E155037: Commit failed (details follow):svn: E155037: Previous operation has not finished; run 'cleanup' if it was interruptedsvn added missing router asm-asa.borg.localsvn: E155037: Previous operation has not finished; run 'cleanup' if it was interruptedsvn: E155037: Commit failed (details follow):svn: E155037: Previous operation has not finished; run 'cleanup' if it was interruptedsvn added missing router pss.borg.localsvn: E155037: Previous operation has not finished; run 'cleanup' if it was interruptedsvn: E155037: Commit failed (details follow):svn: E155037: Previous operation has not finished; run 'cleanup' if it was interruptedsvn added missing router tsg-asa.borg.local svn: E155037: Previous operation has not finished; run 'cleanup' if it was interruptedsvn: E155037: Commit failed (details follow):svn: E155037: Previous operation has not finished; run 'cleanup' if it was interruptedDeleted 192.168.220.1 So I tried running a clean up on svn as that is what is said to do but i'm getting this: [rancid at rancid3svn ~]$ svn cleanup /usr/local/var/rancid/NetworkDevices/svn: E155009: Failed to run the WC DB work queue associated with '/usr/local/var/rancid/NetworkDevices', work item 233 (file-install configs/10.150.1.1 1 0 1 1)svn: E000002: Can't open file '/usr/local/var/rancid/NetworkDevices/.svn/pristine/60/6090119d75f579cc9febd2435980a56f0e790e9b.svn-base': No such file or directory[rancid at rancid3svn ~]$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Charles.Brooks at hbcs.org Thu Jun 30 16:48:25 2016 From: Charles.Brooks at hbcs.org (Charles T. Brooks) Date: Thu, 30 Jun 2016 16:48:25 +0000 Subject: [rancid] Nexus 1000v switch-router In-Reply-To: <20160630154356.GB4669@shrubbery.net> References: , <20160630154356.GB4669@shrubbery.net> Message-ID: I'm using rancid v3.4.1, which I think is the latest? Anyway, I had to add /usr/libexec/rancid to my PATH, but then I got this: -bash-4.2$ rancid -t cisco-nx -d nx1k-03.hbcs.org loadtype: device type cisco-nx loadtype: found device type cisco-nx in /etc/rancid/rancid.types.base 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 module fex;show fex;show running-config" nx1k-03.hbcs.org PROMPT MATCH: nx1k-03# HIT COMMAND:nx1k-03# term no monitor-force In RunCommand: nx1k-03# term no monitor-force HIT COMMAND:nx1k-03# show version In ShowVersion: nx1k-03# show version TYPE = NXOS HIT COMMAND:nx1k-03# show version build-info all In ShowVersionBuild: nx1k-03# show version build-info all HIT COMMAND:nx1k-03# show license In ShowLicense: nx1k-03# show license HIT COMMAND:nx1k-03# show license usage In ShowLicense: nx1k-03# show license usage HIT COMMAND:nx1k-03# show license host-id In ShowLicense: nx1k-03# show license host-id HIT COMMAND:nx1k-03# show system redundancy status In ShowRedundancy: nx1k-03# show system redundancy status HIT COMMAND:nx1k-03# show environment clock In ShowEnv: nx1k-03# show environment clock HIT COMMAND:nx1k-03# show environment fan In ShowEnv: nx1k-03# show environment fan HIT COMMAND:nx1k-03# show environment fex all fan In ShowEnv: nx1k-03# show environment fex all fan HIT COMMAND:nx1k-03# show environment temperature In ShowEnvTemp: nx1k-03# show environment temperature nx1k-03.hbcs.org: show environment temperature failed: -1 nx1k-03.hbcs.org: missed cmd(s): show module,dir usb1:,dir debug:,show debug,show cores vdc-all,show vtp status,show module xbar,show environment power,show inventory,dir usb2:,show vlan,dir volatile:,dir bootflash:,dir slot0:,show module fex,show processes log vdc-all,dir logflash:,show fex,show running-config,show boot nx1k-03.hbcs.org: missed cmd(s): show module,dir usb1:,dir debug:,show debug,show cores vdc-all,show vtp status,show module xbar,show environment power,show inventory,dir usb2:,show vlan,dir volatile:,dir bootflash:,dir slot0:,show module fex,show processes log vdc-all,dir logflash:,show fex,show running-config,show boot nx1k-03.hbcs.org: End of run not found nx1k-03.hbcs.org: End of run not found !Env: ^ -bash-4.2$ If the craptacular mail agent my employers force me to use has garbaged this up, I can send you a text file. As I mentioned earlier, the 1000V runs NX-OS, but it's running inside a virtual environment provided by Cisco UCS. --Charlie ________________________________________ From: heasley [heas at shrubbery.net] Sent: Thursday, June 30, 2016 11:43 AM To: Charles T. Brooks Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Nexus 1000v switch-router Thu, Jun 30, 2016 at 02:34:05PM +0000, Charles T. Brooks: > Hullo all > > I've poked around the list archives and haven't found any information about using RANCiD with the Cisco 1000V virtualized switch/router. (Information on that product here - http://www.cisco.com/c/en/us/products/collateral/switches/nexus-1000v-switch-vmware-vsphere/data_sheet_c78-492971.html) > > If I use a device type of "cisco" it works, but has the same minor but annoying problems that you get when monitoring a Nexus 5K with device type cisco. If I use device type "cisco-nx" it simply does not work at all - after 24 hours I start getting the "unable to connect to device" emails every hour. Has anyone else run into this yet, or am I the first? which are what? I do not know what would be particular about the 1000v over other nexus, besides perhaps environmentals, which was fixed in rancid 3.3. Assuming you have rancid 3.3 or newer, would you send the output of rancid -t cisco-nx -d hostname ------------------ 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 --------------- From Charles.Brooks at hbcs.org Thu Jun 30 16:59:05 2016 From: Charles.Brooks at hbcs.org (Charles T. Brooks) Date: Thu, 30 Jun 2016 16:59:05 +0000 Subject: [rancid] Nexus 1000v switch-router In-Reply-To: <89352296B2077B4FACCBD13133C3B1140203F37A0D@EXMAIL2.corpdom1.com> References: , <89352296B2077B4FACCBD13133C3B1140203F37A0D@EXMAIL2.corpdom1.com> Message-ID: Well, it works with device-type cisco, but not with device-type cisco-nx, so I'm pretty sure the transport layer is fine. When you use device-type cisco with an NX-os device like a Nexus switch, each time a port is assigned you will get a great deal of spurious output. This is because the NX-os devices report VLAN configurations like this: VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active 100 VLAN0100 active Po3, Po4, Po5, Po6, Po7, Po8 Veth1, Veth2, Veth4, Veth7 Veth9, Veth10, Veth13, Veth14 Veth15, Veth16, Veth17, Veth18 Veth21, Veth22, Veth23, Veth24 Veth25, Veth26, Veth29, Veth30 (etc. to arbitrary number of ports) If, in the example above, I delete virtual ethernet port #2 (Veth2) it will cause changes in roughly 24 lines, because NX-os will rejigger every single line for this vlan by "bumping up" the ports into the four-ports per line form. Does that make sense? Anyway, somebody moves one or two ports, and instead of getting the actual one or two line config change I get 40 or fifty lines of noise emailed to all the netadmins. The cisco-nx device type addresses this problem (although frankly I don't know how; I suspect it just doesn't do a "show vlan" command). --Charlie ________________________________________ From: Josh Hildebrand [JHildebrand at newgistics.com] Sent: Thursday, June 30, 2016 10:57 AM To: Charles T. Brooks Subject: RE: Nexus 1000v switch-router Sounds like an SSH or vty access-list issue, honestly.. Test with "clogin " on the command line.. if it doesn't work, then RANCID has no chance of working.. -----Original Message----- From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Charles T. Brooks Sent: Thursday, June 30, 2016 9:34 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Nexus 1000v switch-router Hullo all I've poked around the list archives and haven't found any information about using RANCiD with the Cisco 1000V virtualized switch/router. (Information on that product here - http://www.cisco.com/c/en/us/products/collateral/switches/nexus-1000v-switch-vmware-vsphere/data_sheet_c78-492971.html) If I use a device type of "cisco" it works, but has the same minor but annoying problems that you get when monitoring a Nexus 5K with device type cisco. If I use device type "cisco-nx" it simply does not work at all - after 24 hours I start getting the "unable to connect to device" emails every hour. Has anyone else run into this yet, or am I the first? --Charlie PS: I implemented rancid with git and gitweb a month ago and set up monitoring and automatic remote git a month or so ago and it's FANTASTIC... saves me a lot of work and the price is right. Thank you Mr. Heasley and co-conspirators! --C ------------------ 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 --------------- _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss Confidentiality Notice: This email and any attachments accompanying this electronic transmission may contain confidential and privileged information. The information is intended for the sole use of the intended recipient(s) and entity named above. If you are not the intended recipient, you are hereby notified that any further distribution, disclosure, copying, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this transmission in error, please notify the sender immediately and destroy all copies of the original message. ------------------ 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 --------------- From heas at shrubbery.net Thu Jun 30 17:21:29 2016 From: heas at shrubbery.net (heasley) Date: Thu, 30 Jun 2016 17:21:29 +0000 Subject: [rancid] Nexus 1000v switch-router In-Reply-To: References: <20160630154356.GB4669@shrubbery.net> Message-ID: <20160630172129.GH4669@shrubbery.net> Thu, Jun 30, 2016 at 04:48:25PM +0000, Charles T. Brooks: > I'm using rancid v3.4.1, which I think is the latest? Anyway, I had to add /usr/libexec/rancid to my PATH, but then I got this: or ". rancid.conf" will set the PERL5LIB for you. > HIT COMMAND:nx1k-03# show environment temperature > In ShowEnvTemp: nx1k-03# show environment temperature > nx1k-03.hbcs.org: show environment temperature failed: -1 would you show me the error that the cli produces for this command? From heas at shrubbery.net Thu Jun 30 17:25:49 2016 From: heas at shrubbery.net (heasley) Date: Thu, 30 Jun 2016 17:25:49 +0000 Subject: [rancid] Nexus 1000v switch-router In-Reply-To: References: <89352296B2077B4FACCBD13133C3B1140203F37A0D@EXMAIL2.corpdom1.com> Message-ID: <20160630172549.GI4669@shrubbery.net> Thu, Jun 30, 2016 at 04:59:05PM +0000, Charles T. Brooks: > When you use device-type cisco with an NX-os device like a Nexus switch, each time a port is assigned you will get a great deal of spurious output. This is because the NX-os devices report VLAN configurations like this: > > > VLAN Name Status Ports > ---- -------------------------------- --------- ------------------------------- > 1 default active > 100 VLAN0100 active Po3, Po4, Po5, Po6, Po7, Po8 > Veth1, Veth2, Veth4, Veth7 > Veth9, Veth10, Veth13, Veth14 > Veth15, Veth16, Veth17, Veth18 > Veth21, Veth22, Veth23, Veth24 > Veth25, Veth26, Veth29, Veth30 > (etc. to arbitrary number of ports) > > If, in the example above, I delete virtual ethernet port #2 (Veth2) it will cause changes in roughly 24 lines, because NX-os will rejigger every single line for this vlan by "bumping up" the ports into the four-ports per line form. Does that make sense? Anyway, somebody moves one or two ports, and instead of getting the actual one or two line config change I get 40 or fifty lines of noise emailed to all the netadmins. ios does the same thing and the same format on 6500/etc. rancid mostly just takes the output of the commands as-is. > The cisco-nx device type addresses this problem (although frankly I don't know how; I suspect it just doesn't do a "show vlan" command). the command is there; see etc/rancid.types.base or rancid -t cisco-nx -C but it is not reformatting or filtering in any special manner, so the behavior should be the same. From Charles.Brooks at hbcs.org Thu Jun 30 19:08:47 2016 From: Charles.Brooks at hbcs.org (Charles T. Brooks) Date: Thu, 30 Jun 2016 19:08:47 +0000 Subject: [rancid] Nexus 1000v switch-router In-Reply-To: <20160630172129.GH4669@shrubbery.net> References: <20160630154356.GB4669@shrubbery.net> , <20160630172129.GH4669@shrubbery.net> Message-ID: Thanks for the . /etc/rancid/rancid.conf trick! I should have thought of that. I'm new to RANCiD and to Cisco UCS and this particular switch, but I know Cisco's other routers and switches pretty well, and I can code. >would you show me the error that the cli produces for this command? nx1k-03# show environment temperature ^ % Invalid command at '^' marker. nx1k-03# The Nexus 1000V switch is virtual, so it lives in a cloudy spoogeball of UCS virtuosity, and sort of floats around the redundant UCS chassis without having any specific environment or hardware. I think Cisco ripped out all the "show environment" commands completely; they don't show up in the help if I do "show ?" despite using the admin account/network-admin role. BTW, you're absolutely right that the commands listed /etc/rancid/rancid.types.base include "show vlan" for both the cisco and cisco-nx device types. However, in practice, I can look at the configs stored in git and when I use the cisco device type the output of show vlan is present (prefixed with !VLAN) and when I use the cisco-nx device type that output is entirely missing, and there is no !VLAN prefix to be found. Hold on, I'll grep it to be sure I'm not blind - nope, there is no !VLAN prefix in the config retrieved by rancid 3.4.1 using device type cisco-nx. And that's a good thing, a desirable behavior in my opinion. --Charlie ________________________________________ From: heasley [heas at shrubbery.net] Sent: Thursday, June 30, 2016 1:21 PM To: Charles T. Brooks Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Nexus 1000v switch-router Thu, Jun 30, 2016 at 04:48:25PM +0000, Charles T. Brooks: > I'm using rancid v3.4.1, which I think is the latest? Anyway, I had to add /usr/libexec/rancid to my PATH, but then I got this: or ". rancid.conf" will set the PERL5LIB for you. > HIT COMMAND:nx1k-03# show environment temperature > In ShowEnvTemp: nx1k-03# show environment temperature > nx1k-03.hbcs.org: show environment temperature failed: -1 would you show me the error that the cli produces for this command? ------------------ 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 --------------- From heas at shrubbery.net Thu Jun 30 19:26:40 2016 From: heas at shrubbery.net (heasley) Date: Thu, 30 Jun 2016 19:26:40 +0000 Subject: [rancid] RANCID with SVN not committing In-Reply-To: <1681425224.1483540.1467304307951.JavaMail.yahoo@mail.yahoo.com> References: <1681425224.1483540.1467304307951.JavaMail.yahoo.ref@mail.yahoo.com> <1681425224.1483540.1467304307951.JavaMail.yahoo@mail.yahoo.com> Message-ID: <20160630192640.GA9548@shrubbery.net> Thu, Jun 30, 2016 at 04:31:47PM +0000, Andrew Meyer: > [rancid at rancid3svn ~]$ svn cleanup /usr/local/var/rancid/NetworkDevices/svn: E155009: Failed to run the WC DB work queue associated with '/usr/local/var/rancid/NetworkDevices', work item 233 (file-install configs/10.150.1.1 1 0 1 1)svn: E000002: Can't open file '/usr/local/var/rancid/NetworkDevices/.svn/pristine/60/6090119d75f579cc9febd2435980a56f0e790e9b.svn-base': No such file or directory[rancid at rancid3svn ~]$ looks like something was mangled badly. I suggest that you re-checkout the group, as user rancid: cd /usr/local/var/rancid mv NetworkDevices NetworkDevices.junk svn co file:///usr/local/var/rancid/CVS/NetworkDevices From heas at shrubbery.net Thu Jun 30 19:46:39 2016 From: heas at shrubbery.net (heasley) Date: Thu, 30 Jun 2016 19:46:39 +0000 Subject: [rancid] Nexus 1000v switch-router In-Reply-To: <20160630194203.B38B082EC1@sea.shrubbery.net> Message-ID: <20160630194639.GL4669@shrubbery.net> Thu, Jun 30, 2016 at 07:08:47PM +0000, Charles T. Brooks: > Thanks for the . /etc/rancid/rancid.conf trick! I should have thought of that. I'm new to RANCiD and to Cisco UCS and this particular switch, but I know Cisco's other routers and switches pretty well, and I can code. > > >would you show me the error that the cli produces for this command? > > nx1k-03# show environment temperature > ^ > % Invalid command at '^' marker. > nx1k-03# > > The Nexus 1000V switch is virtual, so it lives in a cloudy spoogeball of UCS virtuosity, and sort of floats around the redundant UCS chassis without having any specific environment or hardware. I think Cisco ripped out all the "show environment" commands completely; they don't show up in the help if I do "show ?" despite using the admin account/network-admin role. 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); > > BTW, you're absolutely right that the commands listed /etc/rancid/rancid.types.base include "show vlan" for both the cisco and cisco-nx device types. However, in practice, I can look at the configs stored in git and when I use the cisco device type the output of show vlan is present (prefixed with !VLAN) and when I use the cisco-nx device type that output is entirely missing, and there is no !VLAN prefix to be found. Hold on, I'll grep it to be sure I'm not blind - nope, there is no !VLAN prefix in the config retrieved by rancid 3.4.1 using device type cisco-nx. And that's a good thing, a desirable behavior in my opinion. 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) From andrewm659 at yahoo.com Thu Jun 30 20:11:10 2016 From: andrewm659 at yahoo.com (Andrew Meyer) Date: Thu, 30 Jun 2016 20:11:10 +0000 (UTC) Subject: [rancid] RANCID with SVN not committing In-Reply-To: <20160630192640.GA9548@shrubbery.net> References: <1681425224.1483540.1467304307951.JavaMail.yahoo.ref@mail.yahoo.com> <1681425224.1483540.1467304307951.JavaMail.yahoo@mail.yahoo.com> <20160630192640.GA9548@shrubbery.net> Message-ID: <1163039387.1562736.1467317470776.JavaMail.yahoo@mail.yahoo.com> Do I need re-run rancid-cvs? On Thursday, June 30, 2016 2:26 PM, heasley wrote: Thu, Jun 30, 2016 at 04:31:47PM +0000, Andrew Meyer: > [rancid at rancid3svn ~]$ svn cleanup /usr/local/var/rancid/NetworkDevices/svn: E155009: Failed to run the WC DB work queue associated with '/usr/local/var/rancid/NetworkDevices', work item 233 (file-install configs/10.150.1.1 1 0 1 1)svn: E000002: Can't open file '/usr/local/var/rancid/NetworkDevices/.svn/pristine/60/6090119d75f579cc9febd2435980a56f0e790e9b.svn-base': No such file or directory[rancid at rancid3svn ~]$ looks like something was mangled badly.? I suggest that you re-checkout the group, as user rancid: cd /usr/local/var/rancid mv NetworkDevices NetworkDevices.junk svn co file:///usr/local/var/rancid/CVS/NetworkDevices -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewm659 at yahoo.com Thu Jun 30 20:21:20 2016 From: andrewm659 at yahoo.com (Andrew Meyer) Date: Thu, 30 Jun 2016 20:21:20 +0000 (UTC) Subject: [rancid] RANCID with SVN not committing In-Reply-To: <1163039387.1562736.1467317470776.JavaMail.yahoo@mail.yahoo.com> References: <1681425224.1483540.1467304307951.JavaMail.yahoo.ref@mail.yahoo.com> <1681425224.1483540.1467304307951.JavaMail.yahoo@mail.yahoo.com> <20160630192640.GA9548@shrubbery.net> <1163039387.1562736.1467317470776.JavaMail.yahoo@mail.yahoo.com> Message-ID: <871462430.1620981.1467318080118.JavaMail.yahoo@mail.yahoo.com> ok so now i'm getting this: [rancid at rancid3svn ~/logs]$ cat NetworkDevices.20160630.152000starting: Thu Jun 30 15:20:00 CDT 2016 property 'svn:ignore' set on '.'property 'svn:ignore' set on 'configs'Updating '.':At revision 226. Trying to get all of the configs.10.150.1.180: missed cmd(s): all commands10.150.1.180 clogin error: Error: no enable password for 10.150.1.180 in /usr/local/var/rancid/.cloginrc.10.150.1.180: End of run not found10.150.1.3: missed cmd(s): all commands10.150.1.3 clogin error: Error: no enable password for 10.150.1.3 in /usr/local/var/rancid/.cloginrc.10.150.1.3: End of run not found!!10.150.1.1: missed cmd(s): all commands10.150.1.1 clogin error: Error: Couldn't login: 10.150.1.110.150.1.1: End of run not found192.168.220.1: missed cmd(s): all commands192.168.220.1 clogin error: Error: Couldn't login: 192.168.220.1192.168.220.1: End of run not found!!24.240.197.150: missed cmd(s): all commands24.240.197.150 clogin error: Error: Couldn't login: 24.240.197.15024.240.197.150: End of run not found! On Thursday, June 30, 2016 3:11 PM, Andrew Meyer wrote: Do I need re-run rancid-cvs? On Thursday, June 30, 2016 2:26 PM, heasley wrote: Thu, Jun 30, 2016 at 04:31:47PM +0000, Andrew Meyer: > [rancid at rancid3svn ~]$ svn cleanup /usr/local/var/rancid/NetworkDevices/svn: E155009: Failed to run the WC DB work queue associated with '/usr/local/var/rancid/NetworkDevices', work item 233 (file-install configs/10.150.1.1 1 0 1 1)svn: E000002: Can't open file '/usr/local/var/rancid/NetworkDevices/.svn/pristine/60/6090119d75f579cc9febd2435980a56f0e790e9b.svn-base': No such file or directory[rancid at rancid3svn ~]$ looks like something was mangled badly.? I suggest that you re-checkout the group, as user rancid: cd /usr/local/var/rancid mv NetworkDevices NetworkDevices.junk svn co file:///usr/local/var/rancid/CVS/NetworkDevices -------------- next part -------------- An HTML attachment was scrubbed... URL: From Charles.Brooks at hbcs.org Thu Jun 30 22:46:52 2016 From: Charles.Brooks at hbcs.org (Charles T. Brooks) Date: Thu, 30 Jun 2016 22:46:52 +0000 Subject: [rancid] Nexus 1000v switch-router In-Reply-To: <20160630194639.GL4669@shrubbery.net> References: <20160630194203.B38B082EC1@sea.shrubbery.net> , <20160630194639.GL4669@shrubbery.net> Message-ID: 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 ---------------