[rancid] frr/zebra more info
Dan Kerse
daniel.kerse at gmail.com
Thu Mar 12 05:19:38 UTC 2026
Hmm I wonder if the wrapper script could concatenate the file?
cat /etc/nftables.conf && sudo vtysh
Or something along these lines. You’re using a wrapper script as your login shell already, can’t you just extend it?
________________________________
From: Randy Bush <randy at psg.com>
Sent: Thursday, March 12, 2026 11:09:15 AM
To: Dan Kerse <daniel.kerse at gmail.com>
Cc: heasley <heas at shrubbery.net>; RANCID Discuss <rancid-discuss at www.shrubbery.net>
Subject: Re: [rancid] frr/zebra more info
> I think you need to add an x to the end of this line:
> frrx;script;rancid -t frr
> Should read:
> frrx;script;rancid -t frrx
ok. makes sense. but, as i said in a private email
> made a new type in `/etc/raancid/rancid.types.conf`
> ```
> frrx;script;rancid -t frr
> frrx;login;clogin
> frrx;module;frr
> frrx;inloop;frr::inloop
> frrx;command;frr::ShowVersion;show version
> frrx;command;frr::WriteTerm;write term
> frrx;command;rancid::WriteTerm;start-shell cat /etc/network/interfaces
> frrx;command;rancid::WriteTerm;start-shell cat /etc/nftables.conf
> ```
>
> and changed the `router.db` entry to that type
on the target, the user rancid has a special shell, not bash/csh
rancid:x:1003:1003:Rancid User,,,:/home/rancid:/home/rancid/do-vtysh
which simply does `sudo vtysh` so rancid can issue vtysh commands
but, despite rumors, vtysh does not support `start-shell` or any
other way to `cat` a file
randy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20260312/cafe2545/attachment.htm>
More information about the Rancid-discuss
mailing list