[rancid] cisco switches

2019-10-31 Thread Vacheslav
i upgraded to rancid 3.10 in hopes of getting rid of the following
message coming everymorning when the switch starts..
===
retrieving revision 1.9
diff -u -4 -r1.9 cisco2960x-24vitebsk.rup
@@ -48,16 +48,16 @@
  ! License Priority: Medium
  ! License Count: Non-Counted
  !
  !Flash: Directory of flash:/
- !Flash: 5  -rwx 831   Oct 1 2019 12:26:24 +03:00  Banga
- !Flash: 4  -rwx8099  Jan 20 2016 14:01:15
+03:00  config.text.renamed
+ !Flash: 6  -rwx 831   Oct 1 2019 12:26:24 +03:00  Banga
+ !Flash: 5  -rwx8099  Jan 20 2016 14:01:15
+03:00  config.text.renamed
  !Flash: 3  -rwx 260  Sep 22 2015 16:16:59
+03:00  express_setup.debug
  !Flash: 2  -rwx5473  Jan 20 2016 14:01:15
+03:00  private-config.text.renamed
- !Flash: 6  drwx 512  Jul 25 2015 03:00:54 +03:00  c2960x-
universalk9.EX5
- !Flash:   645  drwx 512  Jul 25 2015 03:00:56
+03:00  dc_profile_dir
- !Flash:   649  -rwx   12934  Sep 16 2019 17:21:04
+03:00  config.text
- !Flash:   647  -rwx2076  Sep 16 2019 17:21:04
+03:00  private-config.text
+ !Flash: 7  drwx 512  Jul 25 2015 03:00:54 +03:00  c2960x-
universalk9.EX5
+ !Flash:   646  drwx 512  Jul 25 2015 03:00:56
+03:00  dc_profile_dir
+ !Flash:   650  -rwx   12934  Sep 16 2019 17:21:04
+03:00  config.text
+ !Flash:   648  -rwx2076

any idea how to get rid of it?


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] Fwd: Rancid - cmwlogin - HPE switches

2019-10-25 Thread Vacheslav
so i decided to upgrade rancid in hopes of getting rid of the message i
n the morning which one cisco switch produces on fresh boot. and so i
install from rancid-master which turned out to be rancid 3.9
and here is what i get

Trying to get all of the configs.
cisco-isr: missed cmd(s): dir /all bootflash:, show controllers, show
controllers cbus, show diagbus, show diag, show capture, show module
switch, show module, show spe version, show c7200, show cellular 0
profile, show inventory raw, show inventory, show vtp status, show
vlan, show vlan-switch, show switch detail, show sdm prefer, show
system mtu, show debug, show shun, more system:running-config, show
running-config view full, show running-config
cisco-isr: End of run not found
!Flash: bootflash: drwx 4096  Feb 27 2018 13:59:45
+03:00  vman_fdb

there is a folder vman_fdb which shows using the dir /all bootflash:

similar messages on other devices are:

cisconexus-1: missed cmd(s): dir logflash:, dir slot0:, dir usb1:, dir
usb2:, dir volatile:, show module, show inventory, show interface
transceiver, show vlan, show debug, show cores vdc-all, show processes
log vdc-all, show module fex, show fex
cisconexus-1: End of run not found
!Flash: logflash: Usage for logflash://sup-local

and from searching, the solution is to comment out the following
commands:

#cisco;command;ios::DirSlotN;dir /all nvram:
#cisco;command;ios::DirSlotN;dir /all bootflash:
#cisco;command;ios::DirSlotN;dir /all slot0:
#cisco;command;ios::DirSlotN;dir /all disk0:
#cisco;command;ios::DirSlotN;dir /all slot1:
#cisco;command;ios::DirSlotN;dir /all disk1:
#cisco;command;ios::DirSlotN;dir /all slot2:
#cisco;command;ios::DirSlotN;dir /all disk2:
#cisco;command;ios::DirSlotN;dir /all harddisk:
#cisco;command;ios::DirSlotN;dir /all harddiska:
#cisco;command;ios::DirSlotN;dir /all harddiskb:
#cisco;command;ios::DirSlotN;dir /all sup-bootdisk:;c6500 sup32
#cisco;command;ios::DirSlotN;dir /all sup-bootflash:;c6500 ios
#cisco;command;ios::DirSlotN;dir /all sup-microcode:;c6500 ios
#cisco;command;ios::DirSlotN;dir /all slavenvram:
#cisco;command;ios::DirSlotN;dir /all slavebootflash:
#cisco;command;ios::DirSlotN;dir /all slaveslot0:
#cisco;command;ios::DirSlotN;dir /all slavedisk0:
#cisco;command;ios::DirSlotN;dir /all slaveslot1:
#cisco;command;ios::DirSlotN;dir /all slavedisk1:
#cisco;command;ios::DirSlotN;dir /all slaveslot2:
#cisco;command;ios::DirSlotN;dir /all slavedisk2:
#cisco;command;ios::DirSlotN;dir /all slavesup-bootflash:;c7600
#cisco;command;ios::DirSlotN;dir /all sec-nvram:
#cisco;command;ios::DirSlotN;dir /all sec-bootflash:
#cisco;command;ios::DirSlotN;dir /all sec-slot0:
#cisco;command;ios::DirSlotN;dir /all sec-disk0:
#cisco;command;ios::DirSlotN;dir /all sec-slot1:
#cisco;command;ios::DirSlotN;dir /all sec-disk1:
#cisco;command;ios::DirSlotN;dir /all sec-slot2:
#cisco;command;ios::DirSlotN;dir /all sec-disk2:

and 

#cisco-nx;command;nxos::DirSlotN;dir bootflash:
#cisco-nx;command;nxos::DirSlotN;dir debug:
#cisco-nx;command;nxos::DirSlotN;dir logflash:
cisco-nx;command;nxos::DirSlotN;dir slot0:
cisco-nx;command;nxos::DirSlotN;dir usb1:
cisco-nx;command;nxos::DirSlotN;dir usb2:
#cisco-nx;command;nxos::DirSlotN;dir volatile:
cisco-nx;command;nxos::ShowModule;show module
#cisco-nx;command;nxos::ShowModule;show module xbar
#cisco-nx;command;nxos::ShowModule;show module X;add, but wait for show
all
#cisco-nx;command;nxos::ShowModule;show module X epld;add, but wait for
show all

this all sounds abnormal because in the previous version there were
just 2 commands commented out for nexus ..


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] Rancid issues

2019-08-21 Thread Vacheslav
rancid version would help in troubleshooting...

On Wed, 2019-08-21 at 12:10 +0200, Chris Knipe wrote:
> Hi All,
> Rancid setup and everything's fine form what I can tell.  I'm getting
> a strange error I haven't seen before:
> 
> router.db:
> za-ctn-pe01;mikrotik;up
> 
> bash-4.2$ ./bin/rancid -d -t mikrotik za-ctn-pe01
> loadtype: device type mikrotik
> loadtype: found device type mikrotik in
> /srv/rancid/etc/rancid.types.base
> executing mtlogin -t 90 -c"" za-ctn-pe01
> inloop is not configured for device type mikrotik at ./bin/rancid
> line 130.
> 
> Not quite sure what is happening at this stage... 
> 
> -- 
> 
> Regards,
> Chris Knipe
> 
> 
> ___Rancid-discuss mailing
> listrancid-disc...@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> 
___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] Getting a lot of noise related to ce_switch.log and ce_switch.log.bak

2019-07-10 Thread Vacheslav Zouhairy


and this device is not being restarted daily?

On Wed, 2019-07-10 at 01:39 -0700, Dan Mahoney (Gushi) wrote:
> On Tue, 11 Sep 2018, heasley wrote:
> 
> > Mon, Sep 10, 2018 at 01:45:42AM -0700, Dan Mahoney (Gushi):
> > > Hey all,
> > > 
> > > I'm running Rancid built from freebsd packages, rancid3-3.7
> > > 
> > > Periodically, my ASR9K's log something like this:
> > > 
> > >   !Flash: harddisk: 24753   -rwx  800470016   Wed Sep 10
> > > 20:00:00 2014
> > > VM-ASR9K-px-4.3.4.tar
> > > - !Flash: harddisk: 24623   -rw-
> > > ce_switch.log
> > > + !Flash: harddisk: 24781   -rw-  8192017 Mon Sep 10
> > > 05:10:03 2018
> > > ce_switch.log.bak
> > >   !Flash: harddisk: 24688   -rw-  1048576 Thu Sep 11
> > > 02:08:46 2014
> > > kd.bin_0_RSP0_CPU0
> > >   !Flash: harddisk: 24625   drwx  4096Thu Sep 11
> > > 01:38:55 2014
> > > idiags
> > >   !Flash: harddisk: 24626   -rw-  0   Thu Sep 11
> > > 01:40:24 2014
> > > ahci.log
> > >   !Flash: harddisk: 24627   drwx  4096Thu Sep 11
> > > 02:20:32 2014
> > > np
> > > - !Flash: harddisk: 24783   -rw-  8192017 Fri Sep  7
> > > 08:18:57 2018
> > > ce_switch.log.bak
> > > + !Flash: harddisk: 24628   -rw-
> > > ce_switch.log
> > >   !Flash: harddisk: 6442434560 bytes total (4 GB free)
> > > 
> > > I thought I saw something on the mailing lists that this was
> > > fixed in a
> > > prior version, but I guess not.  How would I go about tweaking
> > > rancid so
> > > these bits are ignored?
> > 
> > add a filter to DirSlotN().  i see that your device is renaming
> > files,
> > causing the fileno to change.  I'll add that filter for 3.9.
> 
> Sorry to revive an old thread.
> 
> I've upgraded to 3.9, but this doesn't seem to have been fixed:
> 
> @@ -382,14 +382,14 @@ 
> !Flash: harddisk: 25131   drwx  4096Mon Jun 25 21:00:51
> 2012 
> showtech-temp
>!Flash: harddisk: 25248   -rwx  420587520   Thu Sep 11
> 15:23:40 2014 
> custom-smus-jtl-2014-sept.tar 
> !Flash: harddisk: 25249   -rwx  452402176   Thu Sep 11 15:28:01
> 2014 
> ASR9K-px-4.3.4.tar
>!Flash: harddisk: 25250   -rwx  800470016   Thu Sep 11
> 15:36:25 2014 
> VM-ASR9K-px-4.3.4.tar 
> - !Flash: harddisk: 25268   -rw-  8192017 Sat Jul  6 08:07:41
> 2019 
> ce_switch.log.bak
> + !Flash: harddisk: 25135   -rw- 
> ce_switch.log 
> !Flash: harddisk: 25252   -rw-  1048576 Tue Mar  5 00:26:44
> 2019 
> kd.bin_0_RSP0_CPU0
>!Flash: harddisk: 25137   drwx  4096Fri Sep 12
> 01:33:47 2014 
> idiags 
> !Flash: harddisk: 25138   -rw-  0   Fri Sep 12 01:35:16
> 2014 
> ahci.log
>!Flash: harddisk: 25139   drwx  4096Thu Feb 28
> 20:12:29 2019 
> np 
> - !Flash: harddisk: 25140   -rw- 
> ce_switch.log
> + !Flash: harddisk: 25269   -rw-  8192017 Tue Jul  9 04:57:56
> 2019 
> ce_switch.log.bak
>!Flash: harddisk: 25141   -rwx  63  Sun Feb 24
> 22:37:37 2019 
> chkfs_repair.log
>!Flash: harddisk: 25266   -rw-  40  Mon Feb 25
> 05:39:35 2019 
> uptime_static_data
>!Flash: harddisk: 25143   -rw-
> 
> -Dan
> 


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] [SPAM?] Cisco NX "chatty" with Power info

2019-06-27 Thread Vacheslav Zouhairy
hmm i have almost the same hardware but your software is a bit newer,
but i do not get that in the output. it seems you will have to see what
command produces the offending output and tweak the nxos template not
to run that command
On Thu, 2019-06-27 at 11:14 -0400, FF wrote:
> Hi, 
> 
> Thanks for responding..
> 
> This is:
> 
> Software
>   BIOS: version 07.59
>   NXOS: version 7.0(3)I7(3)
>   BIOS compile time:  08/26/2016
>   NXOS image file is: bootflash:///nxos.7.0.3.I7.3.bin
>   NXOS compile time:  2/12/2018 13:00:00 [02/12/2018 19:13:48]
> 
> 
> Hardware
>   cisco Nexus9000 C93120TX Chassis
>   Intel(R) Core(TM) i3- CPU @ 2.50GHz with 16400992 kB of memory.
> 
> Thanks for your help!
> 
> 
> 
> On Thu, Jun 27, 2019 at 5:01 AM Vacheslav Zouhairy <
> m_zouha...@skno.by> wrote:
> > what model of nexus is this?
> > On Thu, 2019-06-27 at 00:07 -0400, FF wrote:
> > > ok, 
> > > 
> > > So upgraded to 3.9 with the same behavior.
> > > 
> > > Built a cisco-nxp personality that had an | exclude OK line on it
> > > to remove the wattage line... but suddenly rancid couldn't log in
> > > to those units.
> > > Even though clogin would work fine. Went and modified the cisco-
> > > nx definition... but the exclude is ignored.
> > > 
> > > So now 2.3 and 3.9 behave identically in this situation...
> > > 
> > > This is the whole output for the section in question:
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Index: configs/10.10.10.114
> > > 
> > > =
> > > ==
> > > 
> > > retrieving revision 1.1157
> > > 
> > > diff -u -4 -r1.1157 10.10.10.114
> > > 
> > > @@ -80,10 +80,10 @@
> > > 
> > >   !Env: Power  ActualTotal
> > > 
> > >   !Env: SupplyModelInput 
> > > Capacity   Status
> > > 
> > >   !Env:(Watts
> > > ) (Watts )
> > > 
> > >   !Env:
> > > ---  --  ---  -- 
> > > --  
> > > 
> > > - !Env: 1   
> > > N9K-PAC-1200W-B
> > > 192 W  1200 W  Ok
> > > 
> > > - !Env: 2   
> > > N9K-PAC-1200W-B
> > > 174 W  1200 W  Ok
> > > 
> > > + !Env: 1   
> > > N9K-PAC-1200W-B
> > > 190 W  1200 W  Ok
> > > 
> > > + !Env: 2   
> > > N9K-PAC-1200W-B
> > > 176 W  1200 W  Ok
> > > 
> > >   !Env: Power Usage
> > > Summary:
> > > 
> > >   !Env:
> > > 
> > > 
> > >   !Env: Power
> > > Supply redundancy mode (configured)PS-Redundant
> > > 
> > >   !Env: Power
> > > Supply redundancy mode (operational)   PS-Redundant
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  
> > > Any suggestions?
> > > 
> > > Thanks in advance!
> > > 
> > > 
> > > 
> > > On Mon, Mar 11, 2019 at 5:02 PM FF  wrote:
> > > > Apparently I'm running a massively old version (2.3.8). I'll
> > > > try upgrading to 3.9 first.
> > > > 
> > > > thanks in advance
> > > > 
> > > > On Mon, Mar 11, 2019 at 4:47 PM heasley 
> > > > wrote:
> > > > > Fri, Mar 08, 2019 at 07:06:45PM +, Nick Nauwelaerts:
> > > > > 
> > > > > > what version of rancid & nx-os are you running?
> > > > > 
> > > > > 
> > > > > 
> > > > > good question.
> > > > > 
> > > > > 
> > > > > 
> > > > > if the answer is 3.9, please show us the complete output of
> > > > > show environment power
> > > > > 
> > > > > 
> > > > > 
> > > > > > i notice you only have 1 column less as me, you seem to
> > &g

Re: [rancid] [SPAM?] Cisco NX "chatty" with Power info

2019-06-27 Thread Vacheslav Zouhairy
what model of nexus is this?
On Thu, 2019-06-27 at 00:07 -0400, FF wrote:
> ok, 
> 
> So upgraded to 3.9 with the same behavior.
> 
> Built a cisco-nxp personality that had an | exclude OK line on it to
> remove the wattage line... but suddenly rancid couldn't log in to
> those units.
> Even though clogin would work fine. Went and modified the cisco-nx
> definition... but the exclude is ignored.
> 
> So now 2.3 and 3.9 behave identically in this situation...
> 
> This is the whole output for the section in question:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Index: configs/10.10.10.114
> 
> ===
> 
> retrieving revision 1.1157
> 
> diff -u -4 -r1.1157 10.10.10.114
> 
> @@ -80,10 +80,10 @@
> 
>   !Env: Power  ActualTotal
> 
>   !Env: SupplyModelInput 
> Capacity   Status
> 
>   !Env:(Watts
> ) (Watts )
> 
>   !Env:
> ---  --  ---  -- 
> --  
> 
> - !Env: 1   
> N9K-PAC-1200W-B
> 192 W  1200 W  Ok
> 
> - !Env: 2   
> N9K-PAC-1200W-B
> 174 W  1200 W  Ok
> 
> + !Env: 1   
> N9K-PAC-1200W-B
> 190 W  1200 W  Ok
> 
> + !Env: 2   
> N9K-PAC-1200W-B
> 176 W  1200 W  Ok
> 
>   !Env: Power Usage
> Summary:
> 
>   !Env:
> 
> 
>   !Env: Power
> Supply redundancy mode (configured)PS-Redundant
> 
>   !Env: Power
> Supply redundancy mode (operational)   PS-Redundant
> 
> 
> 
> 
> 
> 
>  
> Any suggestions?
> 
> Thanks in advance!
> 
> 
> 
> 
> On Mon, Mar 11, 2019 at 5:02 PM FF  wrote:
> > Apparently I'm running a massively old version (2.3.8). I'll try
> > upgrading to 3.9 first.
> > 
> > thanks in advance
> > 
> > On Mon, Mar 11, 2019 at 4:47 PM heasley  wrote:
> > > Fri, Mar 08, 2019 at 07:06:45PM +, Nick Nauwelaerts:
> > > 
> > > > what version of rancid & nx-os are you running?
> > > 
> > > 
> > > 
> > > good question.
> > > 
> > > 
> > > 
> > > if the answer is 3.9, please show us the complete output of show
> > > environment power
> > > 
> > > 
> > > 
> > > > i notice you only have 1 column less as me, you seem to miss
> > > "actual output".
> > > 
> > > > 
> > > 
> > > > 
> > > 
> > > > // nick
> > > 
> > > > 
> > > 
> > > > 
> > > 
> > > > 
> > > 
> > > > 
> > > 
> > > > From: Rancid-discuss [mailto:
> > > rancid-discuss-boun...@shrubbery.net] On Behalf Of FF
> > > 
> > > > Sent: Friday, March 8, 2019 18:05
> > > 
> > > > To: rancid-discuss@shrubbery.net
> > > 
> > > > Subject: [SPAM?] [rancid] Cisco NX "chatty" with Power info
> > > 
> > > > 
> > > 
> > > > 
> > > 
> > > > !Env: Power  ActualTotal
> > > 
> > > > 
> > > 
> > > >   !Env: SupplyModelInput  Capacity 
> > >  Status
> > > 
> > > > 
> > > 
> > > >   !Env:(Watts ) (Watts
> > > )
> > > 
> > > > 
> > > 
> > > >   !Env: ---  --  ---  --  ---
> > > ---  
> > > 
> > > > 
> > > 
> > > > - !Env: 1N9K-PAC-1200W-B 180 W 
> > > 1200 W  Ok
> > > 
> > > > 
> > > 
> > > > + !Env: 1N9K-PAC-1200W-B 182 W 
> > > 1200 W  Ok
> > > 
> > > > 
> > > 
> > > >   !Env: 2N9K-PAC-1200W-B 162 W 
> > > 1200 W  Ok
> > > 
> > > > 
> > > 
> > > >   !Env: Power Usage Summary:
> > > 
> > > > 
> > > 
> > > > Every time Rancid runs, we get erroneous reports because the
> > > power usage fluctuates by 1-2 watts per run. Any suggestions on
> > > how to keep the good information (availability, etc) without
> > > getting this level of detail?
> > > 
> > > > 
> > > 
> > > > thanks in advance!
> > > 
> > > > 
> > > 
> > > > 
> > > 
> > > > --
> > > 
> > > > FF
> > > 
> > > > 
> > > 
> > > > 
> > > 
> > > > 
> > > 
> > > > Volg Aquafin op Facebook |
> > > Twitter | YouTube<
> > > http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee
> > > > | LinkedIN |
> > > Instagram
> > > 
> > > > 
> > > 
> > > > In het kader van de uitoefening van onze taken verzamelen we
> > > bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en
> > > wat de rechten van de betrokkenen zijn, kan je nalezen in onze
> > > privacy policy;.
> > > 
> > > > 
> > > 
> > > >   P Denk aan het milieu. Druk deze mail niet onnodig af.
> > > 
> > > 
> > > 
> > > > ___
> > > 
> > > > Rancid-discuss mailing list
> > > 
> > > > Rancid-discuss@shrubbery.net
>

Re: [rancid] Unable to figure out "end of run not found"

2019-06-09 Thread Vacheslav Zouhairy
Is there any bandwidth hog on those switches by any chance?

On Fri, 2019-06-07 at 18:16 -0600, Michael Newton wrote:
> Hi all, we manage about 200-300 Brocade ICX switches across a number
> of locations. All but two are being successfully polled. The two in
> question (same firmware and a similar config to the others)
> consistently show "end of run not found" when run as part of the cron
> job. But, when run manually for troubleshooting, everything seems to
> work.
> 
> `sudo -u rancid flogin switchname` works fine and logs me into the
> switch.
> 
> `sudo -u rancid flogin -c 'show version;show clock' switchname`
> likewise works fine. Logs in, runs the commands, and logs out.
> 
> `sudo -u rancid rancid -t foundry -d switchname` runs through
> everything perfectly. The switchname.new file has the expected
> output.
> 
> Yet the log for the automated process consistently shows this:
> 
> switchname: End of run not found
> end
> 
> Is there anything else I can do to troubleshoot this? Thanks in
> advance!
> 
> Mike
> ___
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] Entries disappear and re appear.

2019-04-15 Thread Vacheslav Zouhairy
are you using dns, ptr, or hosts file?


>On Fri, 2019-04-12 at 08:40 -0700, Troy Beisigl wrote:
> A strange thing has happened after removing the ASA host from rancid
> and adding it under the name it should have been identified as, the
> issue has stopped. It has been 24 hours with 12 rancid runs and no
> issues on the ASA. So I am not sure how changing the name of the
> device would impact that, but it would see that this might be
> resolved for now. 
> 
> Still the random issue with the Mikrotiks though. 
> 
> -Troy
> 
> > On Apr 11, 2019, at 9:47 AM, heasley  wrote:
> > 
> > Thu, Apr 11, 2019 at 09:31:05AM -0700, Troy Beisigl:
> > > Hello everyone,
> > > 
> > > We have an issue whereby rancid is pulling configs and showing
> > > that an entry has disappeared and then the next config check the
> > > entry is back. This is happening on a Cisco ASA and also on a
> > > Mikrotik. 
> > > 
> > > For the Mikrotik, it shows that the console port name changed to
> > > nothing and then the next time shows that it came back as
> > > serial0. The name is not actually changing. 
> > > 
> > > For the ASA, the entry !BootFlash: BOOT variable = disk0:/asa917-
> > > 19-k8.bin will show in one config and the next time it shows
> > > !BootFlash: BOOT variable = 
> > > 
> > > The boot variable is not actually changing, so I have to wonder
> > > if this is a bug.
> > > 
> > > We are running rancid version 3.8.
> > > 
> > > Has anyone run into these issues and is there a fix for them?
> > 
> > the ASA is probably a bug in the ASA.  I've seen it on IOSXE.
> > 
> > no idea about the microtik; possibly rancid isnt able to disable
> > the
> > pager and thats causing some problem?
> > 
> > I'd manually collect the raw output repeatedly in an attempt to
> > catch it
> > occuring.  See FAQ S3Q2.
> 
> ___
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] rancid 3.8

2018-08-30 Thread Vacheslav
So I removed: cisco-nx-5k;command;nxos::ShowIntTransceiver;show interface
transceiver
And no more stupid emails :)

-Original Message-
From: Rancid-discuss  On Behalf Of
Vacheslav
Sent: Tuesday, August 28, 2018 8:47 AM
Cc: rancid-discuss@shrubbery.net
Subject: [rancid] rancid 3.8

Health be upon you,
So I upgraded to the latest version, and in it nexus 9k is fixed, however in
the 5k:
- !Temperature   :  39.70 C
+ !Temperature   :  39.92 C
  !Voltage   :   3.24 V   
- !Current   :   7.20 mA   + 
- !Optical Tx Power  :  -3.33 dBm  - 
- !Optical Rx Power  :  -2.25 dBm  + 
+ !Current   :   7.26 mA   + 
+ !Optical Tx Power  :  -3.29 dBm  - 
+ !Optical Rx Power  :  -2.26 dBm  + 
  

- !Temperature   :  33.08 C
+ !Temperature   :  33.34 C
  !Voltage   :   3.24 V   
- !Current   :   7.42 mA   + 
- !Optical Tx Power  :  -3.24 dBm  - 
+ !Current   :   7.49 mA   + 
+ !Optical Tx Power  :  -3.23 dBm  -

So how to get rid of that?


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


[rancid] rancid 3.8

2018-08-27 Thread Vacheslav
Health be upon you,
So I upgraded to the latest version, and in it nexus 9k is fixed, however in 
the 5k:
- !Temperature   :  39.70 C
+ !Temperature   :  39.92 C
  !Voltage   :   3.24 V   
- !Current   :   7.20 mA   + 
- !Optical Tx Power  :  -3.33 dBm  - 
- !Optical Rx Power  :  -2.25 dBm  + 
+ !Current   :   7.26 mA   + 
+ !Optical Tx Power  :  -3.29 dBm  - 
+ !Optical Rx Power  :  -2.26 dBm  + 
  

- !Temperature   :  33.08 C
+ !Temperature   :  33.34 C
  !Voltage   :   3.24 V   
- !Current   :   7.42 mA   + 
- !Optical Tx Power  :  -3.24 dBm  - 
+ !Current   :   7.49 mA   + 
+ !Optical Tx Power  :  -3.23 dBm  -

So how to get rid of that?


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] Help Using git with RANCID

2018-08-23 Thread Vacheslav
So not a native english speaker? Was means not working anymore, wonder how you 
can manage a network if the basics are scewed!

 

From: Ryan Melville  
Sent: Thursday, August 23, 2018 2:38 PM
To: Vacheslav ; 'heasley' 
Cc: rancid-discuss@shrubbery.net
Subject: Re: [rancid] Help Using git with RANCID

 

> Was or is? Big difference!

"is", from my perspective. 

"was", from your perspective, due to email transit time. :) 

 

Regards,

 

Ryan Melville

 

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] Help Using git with RANCID

2018-08-22 Thread Vacheslav
 

 

From: Rancid-discuss  On Behalf Of
Ryan Melville
Sent: Wednesday, August 22, 2018 5:41 PM
To: heasley 
Cc: rancid-discuss@shrubbery.net
Subject: Re: [rancid] Help Using git with RANCID

 

>Thank you for the advice, which got me on the right track.  I think those
commands probably would have worked as-is, but my ideal state was having
RANCID's local git workspace wire directly back to my git server *only* and
not also push to the local ($CVSROOT) git repo.

 

>So my steps were the following, picking up after the "sudo -H -u rancid
/mnt/rancid/rancid/bin/rancid-cvs" command:

 

>1) Create new empty 'rancid-' repository on my (external) master git
server (Atlassian Bitbucket, in my case).

 

>2) Create 'rancid' user on my master git server, and give it read/write
permission to the new repo.

 

>3) Store 'rancid' user git credentials on my RANCID server, which requires
a temporary clone that is then immediately deleted.

 

sudo -H -u rancid git config --global user.name "rancid"

sudo -H -u rancid git config --global user.email "rancid@"

sudo -H -u rancid git config --global credential.helper store

sudo -H -u rancid git clone https://rancid@

/scm/rancid-.git

(enter 'rancid' user passwords when prompted)

sudo -H -u rancid rm -rf rancid-all

 

>4) Re-wire RANCID's git workspace to the master git server, instead of its
local git server/repo.  Uses my particular RANCID installation path and
group name ("all").

 

>cd /mnt/rancid/rancid/var/all

sudo -H -u rancid git remote set-url origin https://rancid@

/scm/rancid-all.git

sudo -H -u rancid git push -u origin --all

sudo -H -u rancid git push origin --tags

 

 

>At this point, I made a change to a network device, waited for my next cron
execution of rancid-run, and then observed the changes in my master git
repo, so I believe it was all working well.

 

Was or is? Big difference!

 

>Regards,

 

>Ryan Melville

 

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] stopping command from being run

2018-06-27 Thread Vacheslav
Well I didn't figure out how to edit the .conf, so I'll just reedit IT on
upgrade :)

-Original Message-
From: heasley  
Sent: Wednesday, June 27, 2018 5:33 PM
To: Vacheslav 
Cc: 'Charles T. Brooks' ; 'Michael T. Voity'
; rancid-discuss@shrubbery.net
Subject: Re: [rancid] stopping command from being run

Wed, Jun 27, 2018 at 03:35:59PM +0300, Vacheslav:
> Thank you very much for your insight. The 9ks have been bugging me for 
> a long time with the little of use flash log and now it's gone thanks to
you.
> But I added the cisco-nx9k to rancid.types.base and did not modify 
> rancid.types.conf and just changed the type in the db file and the 
> miracle happened!

Charles suggested that you edit the .conf, because the next upgrade/install
will overwrite the .base but not the .conf.


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] stopping command from being run

2018-06-27 Thread Vacheslav
Thank you very much for your insight. The 9ks have been bugging me for a
long time with the little of use flash log and now it's gone thanks to you.
But I added the cisco-nx9k to rancid.types.base and did not modify
rancid.types.conf and just changed the type in the db file and the miracle
happened!

-Original Message-
From: Rancid-discuss  On Behalf Of
Charles T. Brooks
Sent: Monday, June 25, 2018 5:46 PM
To: Michael T. Voity ; rancid-discuss@shrubbery.net
Subject: Re: [rancid] stopping command from being run

Hi Mike.  I am running 3.7 also, in my case on RHEL7 with git.  I am very
happy with it.

As I understand it, editing the perl modules to try to change commands
issued to devices is a very wrong approach; it means you can't easily
upgrade and your installation will be weird and difficult to get advice for
online.  so I strongly recommend you carefully revert any such changes you
made.

The files rancid.types.base (base types, do not edit) and rancid.types.conf
(site custom device types) determine what commands are run for specific
devices.

So for example: on my Cisco Nexus 9Ks, I did not want to run the "show
logflash" command, so I copied the "cisco-nx" device type from
/etc/rancid/rancid.types.base to /etc/rancid/rancid.types.conf under the new
device type name "cisco-nx9k" and removed the command I did not want.

This is how I did it, if you are OK with old-school unixisms...

cd /etc/rancid
gawk 'BEGIN{FS=";";OFS=FS;printf "\n# Same as cisco-nx from
/etc/rancid/rancid.types.base but\n# removing troublesome dir logflash
command\n\n"};/dir
logflash:$/{next};/^cisco-nx/{gsub(/cisco-nx/,"cisco-nx9k");print}'
rancid.types.base >>rancid.types.conf

If you're not gawky :) I recommend you do it by hand instead of the way I
did it.  (Mad props to the maintainer of the FSF's GNU awk, Aharon Robbins!)

Once you've defined the new device type, in your router.db file you use the
newly defined name instead of cisco-nx and you're all set.

--Charlie


From: Rancid-discuss [rancid-discuss-boun...@shrubbery.net] on behalf of
Michael T. Voity [mvo...@uvm.edu]
Sent: Monday, June 25, 2018 10:10 AM
To: rancid-discuss@shrubbery.net
Subject: Re: [rancid] stopping command from being run

Hello,

Anyone have an idea that they can point me in a direction?

Thanks,

-Mike


--
Michael T. Voity
Network Engineer
University of Vermont


From: Rancid-discuss  On Behalf Of
Michael T. Voity
Sent: Friday, June 22, 2018 12:05 PM
To: rancid-discuss@shrubbery.net
Subject: [rancid] stopping command from being run

Hello,

We are running 3.7

I seem to be having difficulty in getting the command "show dir /all" to
stop be executed with my nexus switches.

I have edited the  'nxrancid'  and the 'nxos.pm'  without success.

Ideas?

-Mike

--
--  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@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] Show tech on latest Procurve software

2018-02-20 Thread Vacheslav
Thank you for sharing!

Sincerely,

Vacheslav

 

From: Rancid-discuss [mailto:rancid-discuss-boun...@shrubbery.net] On Behalf Of 
Aleksander Vines
Sent: Tuesday, February 20, 2018 11:46 AM
To: rancid-discuss@shrubbery.net
Subject: Re: [rancid] Show tech on latest Procurve software

 

>That worked perfectly. Thanks for the fast reply.

 

>For reference, if anyone else have issues with new procurve software, this is 
>what I added:

 

># This routine parses "show tech transceivers"

) {

...

# These next two lines are new

next if (/[A-Z][a-z][a-z] [A-Z][a-z][a-z] [0-9]+ 
[0-2][0-9]:[0-5][0-9]:[0-5][0-9] 20[0-9][0-9]/);

next if (/show time/);

next if (/^(\s*|\s*$cmd\s*)$/);

...

}

 

>Thanks,

Aleksander Vines




From: Doug Hughes mailto:doug.hug...@keystonenap.com> > 
To: mailto:rancid-discuss@shrubbery.net> > 
Sent: 2018-02-19 18:06 
Subject: Re: [rancid] Show tech on latest Procurve software 

Yes, it's fairly easy to filter out individual lines by editing the filter 
inside the perl scripts to make them go away. I have done this many, many 
times. The only trick is that when you upgrade you might lose your change, so 
save a copy or diff that you can re-apply later.

In this case, the place where you'd put the filter is in ~rancid/bin/hrancid in 
the routine "ShowTechTransceivers"

Right at the top where it has 'next if (...)'

either above or below that you can add a line that says something like next if 
(/thing I want to match here/) which will skip that line.

 

On 2/19/2018 9:12 AM, Aleksander Vines wrote:

Hi all, 

 

Is there a way of altering the output of rancid, or which commands it runs, or 
how the 'diff'ing' works?

 

We seem to have a problem with the latest hp software, where 'show tech 
transceivers' seems to include a call to 'show time'. Hence it notices a diff 
in the output timestamp and and it's fairly annoying if you actually want to 
keep track of changes. 

 

Ref. 
https://community.hpe.com/t5/ProCurve-ProVision-Based/Command-behavior-change-in-KB-16-05-0003-5406R-firmware/td-p/6992013

 

Regards,

Aleksander Vines





___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net <mailto:Rancid-discuss@shrubbery.net> 
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

 

-- 


Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (539.2562)





___ 
Rancid-discuss mailing list 
Rancid-discuss@shrubbery.net <mailto:Rancid-discuss@shrubbery.net>  
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Re: [rancid] does dancid support chinese switches?

2018-01-26 Thread Vacheslav
Wow it works, much thanks !

-Original Message-
From: heasley [mailto:h...@shrubbery.net] 
Sent: Friday, January 26, 2018 3:05 PM
To: Vacheslav 
Cc: Rancid-discuss@shrubbery.net
Subject: Re: [rancid] does dancid support chinese switches?

Fri, Jan 26, 2018 at 11:03:05AM +0300, Vacheslav:
> Health be upon you,
> model name: DCS-3650-8C

I've never seen one and it is not clear who the manufacturer is.  But, it
might; try it.  Based on the behavior of the CLI, try the device type that
most closely resembles the device.


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


[rancid] does dancid support chinese switches?

2018-01-26 Thread Vacheslav
Health be upon you,
model name: DCS-3650-8C

 

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Re: [rancid] Nexus 9K support in RANCiD 3.7

2018-01-03 Thread Vacheslav
I have been suffering this for a long time, and since it came up, I decided
to use it.
To expand it, I have 2960 cisco switches which produce similar unneeded
output:

diff -u -4 -r1.61 cisco2960x-24
@@ -48,9 +48,9 @@
  ! License Priority: Medium
  ! License Count: Non-Counted
  !
  !Flash: Directory of flash:/
- !Flash: 2  -rwx 208  Jan 21 2016 14:22:15 +03:00
express_setup.debug
+ !Flash: 3  -rwx 208  Jan 21 2016 14:22:15 +03:00
express_setup.debug

May you fix that?

-Original Message-
From: Rancid-discuss [mailto:rancid-discuss-boun...@shrubbery.net] On Behalf
Of heasley
Sent: Saturday, December 30, 2017 3:33 AM
To: Charles T. Brooks 
Cc: rancid-discuss@shrubbery.net
Subject: Re: [rancid] Nexus 9K support in RANCiD 3.7

Fri, Dec 29, 2017 at 11:00:36PM +, Charles T. Brooks:
> I like your patch better!  You might want to normalize the style in the
previous line while you're in there - "&& next" instead of "next if".  I'm
not a perl guru, though.

It is not the same as the other lines.  this code block filters the size and
timestamp, but leaves the name.  I suppose all of those filters could be
changed to this type of filter.  open to opinion.

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] Rancid help

2017-12-07 Thread Vacheslav
Well paste the result

-Original Message-
From: Rancid-discuss [mailto:rancid-discuss-boun...@shrubbery.net] On Behalf Of 
Lingam, Anusha
Sent: Thursday, December 7, 2017 12:28 AM
To: heasley 
Cc: rancid-discuss@shrubbery.net
Subject: Re: [rancid] Rancid help

I just did that. 
The rancid-run doesn’t update the configs now. 

Your suggestions would be a great help.

Thanks
Anusha

On 12/6/17, 4:18 PM, "heasley"  wrote:

Wed, Dec 06, 2017 at 09:00:45PM +, Lingam, Anusha:
> I tried to tar/untar of old CVS. Then, rancid-run is not updating the 
configs everytime.

this ought to work if you 'cvs update' each group after untarring the
cvs repo.


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss