Re: [rancid] RANCID 3.8 and Git - sync to remote repo instead of or in addition to local repo?
Wed, Aug 21, 2019 at 09:10:04PM +, Ni Ne: > Running rancid 3.8 and I would like to (re-)publish the rancid config files > (for devices themselves) to a gitlab server we have internally. > > I am still learning about Git and not very familiar with rancid's interaction > with it. > > Is it feasible to have rancid update both repo's simultaneously? The local > one on the server, and a remote repo? this is covered in the rancid FAQ. ___ Rancid-discuss mailing list Rancid-discuss@shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: [rancid] Rancid issues
Hi all, We used an AWS Linux image to run rancid on - expect there is an issue with either TCL and/or expect. Trashed the box and went to an ubuntu image instead, and everything is working fine. Thanks. On Wed, Aug 21, 2019 at 4:44 PM john heasley wrote: > Wed, Aug 21, 2019 at 12:10:35PM +0200, Chris Knipe: > > 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... > > bin/rancid does not work this way with scripts that have not been converted > to modules. It could be made to work, I just had not anticipated it. you > must run the script itself. > > mtrancid [opts] hostname > -- Regards, Chris Knipe ___ Rancid-discuss mailing list Rancid-discuss@shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: [rancid] Rancid issues
Wed, Aug 21, 2019 at 12:10:35PM +0200, Chris Knipe: > 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... bin/rancid does not work this way with scripts that have not been converted to modules. It could be made to work, I just had not anticipated it. you must run the script itself. mtrancid [opts] hostname ___ Rancid-discuss mailing list Rancid-discuss@shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: [rancid] Rancid issues
Hi, The issue seems to be the -c"" (no /export command) Not sure why rancid isn't passing the command to mtlogin On Wed, Aug 21, 2019 at 12:16 PM Chris Knipe wrote: > My apologies :) > > bash-4.2$ ./bin/rancid -V > rancid 3.9 > > > > On Wed, Aug 21, 2019 at 12:13 PM Vacheslav wrote: > >> 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 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 >> > > > -- > > Regards, > Chris Knipe > -- Regards, Chris Knipe ___ Rancid-discuss mailing list Rancid-discuss@shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: [rancid] Rancid issues
My apologies :) bash-4.2$ ./bin/rancid -V rancid 3.9 On Wed, Aug 21, 2019 at 12:13 PM Vacheslav wrote: > 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 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 > -- Regards, Chris Knipe ___ Rancid-discuss mailing list Rancid-discuss@shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: [rancid] Rancid issues
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
[rancid] Rancid issues
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 list Rancid-discuss@shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss