It's actually pretty easy:
- Find your switch type (in this case "juniper") in /etc/rancid/rancid.types.base and copy those lines into /etc/rancid/rancid.types.conf:
juniper;script;rancid -t juniper
juniper;login;jlogin
[...]
juniper;command;junos::ShowConfiguration;show configuration
- Now change "juniper" to some unique string that doesn't exist in rancid.types.base, e.g. "juniper-dset"
- Modify all the "juniper" strings in rancid.types.conf to be "juniper-dset"
juniper-dset;script;rancid -t juniper-dset
juniper-dset;login;jlogin
[...]
juniper-dset;command;junos::ShowConfiguration;show configuration
- Add a new line to do the display set:
juniper-dset;command;junos::ShowConfiguration;show configuration | display set | no-more
It's up to you whether you want that before or after the normal multi-line "show configuration". - Also, change /var/rancid/router.db to change the "juniper" switch type to "juniper-dset"