<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div style="font-family: Aptos, -apple-system, HelveticaNeue, sans-serif;font-size: 12pt">
<div dir="ltr" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hmm I wonder if the wrapper script could concatenate the file?</div>
<div dir="ltr" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos; font-size: 15.4px; color: rgb(33, 33, 33);">
<span style="text-transform: none;">cat /etc/nftables.conf && sudo vtysh</span></div>
<div dir="ltr" style="font-family: Aptos; font-size: 15.4px; color: rgb(33, 33, 33);">
<span style="text-transform: none;"><br>
</span></div>
<div dir="ltr" style="font-family: Aptos; font-size: 15.4px; color: rgb(33, 33, 33);">
<span style="text-transform: none;">Or something along these lines. You’re using a wrapper script as your login shell already, can’t you just extend it?</span></div>
</div>
<div id="ms-outlook-mobile-body-separator-line" style="font-family: Aptos, -apple-system, HelveticaNeue, sans-serif;font-size: 12pt" dir="auto">
<br>
</div>
<div id="ms-outlook-mobile-signature" style="font-family: Aptos, -apple-system, HelveticaNeue, sans-serif;font-size: 12pt">
<div></div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Randy Bush <randy@psg.com><br>
<b>Sent:</b> Thursday, March 12, 2026 11:09:15 AM<br>
<b>To:</b> Dan Kerse <daniel.kerse@gmail.com><br>
<b>Cc:</b> heasley <heas@shrubbery.net>; RANCID Discuss <rancid-discuss@www.shrubbery.net><br>
<b>Subject:</b> Re: [rancid] frr/zebra more info</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">> I think you need to add an x to the end of this line:<br>
> frrx;script;rancid -t frr<br>
>  Should read:<br>
> frrx;script;rancid -t frrx<br>
<br>
ok.  makes sense.  but, as i said in a private email<br>
<br>
> made a new type in `/etc/raancid/rancid.types.conf`<br>
> ```<br>
> frrx;script;rancid -t frr<br>
> frrx;login;clogin<br>
> frrx;module;frr<br>
> frrx;inloop;frr::inloop<br>
> frrx;command;frr::ShowVersion;show version<br>
> frrx;command;frr::WriteTerm;write term<br>
> frrx;command;rancid::WriteTerm;start-shell cat /etc/network/interfaces<br>
> frrx;command;rancid::WriteTerm;start-shell cat /etc/nftables.conf<br>
> ```<br>
> <br>
> and changed the `router.db` entry to that type<br>
<br>
on the target, the user rancid has a special shell, not bash/csh<br>
<br>
rancid:x:1003:1003:Rancid User,,,:/home/rancid:/home/rancid/do-vtysh<br>
<br>
which simply does `sudo vtysh` so rancid can issue vtysh commands<br>
<br>
but, despite rumors, vtysh does not support `start-shell` or any<br>
other way to `cat` a file<br>
<br>
randy<br>
</div>
</span></font></div>
</body>
</html>