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


ie the type that you pass to the rancid command needs to match the type defined 
in the configuration file.

________________________________
From: Rancid-discuss <[email protected]> on behalf of 
Randy Bush <[email protected]>
Sent: Wednesday, March 11, 2026 9:12:31 AM
To: heasley <[email protected]>
Cc: RANCID Discuss <[email protected]>
Subject: Re: [rancid] frr/zebra more info

> Maybe adding to the command list like:
>        <name>;command;rancid::<writefunc>;start-shell cat 
> /etc/network/interfaces
> does that command actually work?  docs imply that it does.

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 changer the `router.db` entry to that type

did not record that last two commands

log uninteresting except maybe for second line here
```
no changes added to commit (use "git add" and/or "git commit -a")
Added r42.foo.blarg.net
```

randy

_______________________________________________
Rancid-discuss mailing list
[email protected]
https://www.shrubbery.net/mailman/listinfo/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
[email protected]
https://www.shrubbery.net/mailman/listinfo/rancid-discuss

Reply via email to