Actions

RANCID with Juniper logical-systems

From falz.net

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


RANCID 3.x is nice in that it made some usable configuration files to define your own device types. If you happen to be in a scenario where you only have admin access to a logical-system in a Juniper device, you can't get "show chassis" or "show system" as that user. Workaround would be to define a new device type without those commands.

  • Added to rancid.types.conf:
# juniper logical system (cant show chassis stuff)
juniper-ls;script;rancid -t juniper-ls
juniper-ls;login;jlogin
juniper-ls;module;junos  
juniper-ls;inloop;junos::inloop
juniper-ls;command;junos::ShowVersion;show version detail
juniper-ls;command;junos::ShowConfiguration;show configuration
  • edit router.db to set the type from juniper to juniper-ls on that device.