Skip to content
Guides & References

Moving from RANCID

Bring your RANCID router.db inventory and .cloginrc credentials into rConfig: what comes across, what stays in RANCID, and the conditions a device must meet.

Inventory & MigrationUpdated
On this page

Moving from RANCID

If this is you: RANCID collects your configs on a cron schedule, from router.db files per group, with logins in .cloginrc and history in CVS, Subversion or Git. You want rConfig to take over collection without retyping the inventory.

The recommended route: run rConfig’s RANCID importer once to bring the inventory and credentials across, keep RANCID and its repository readable while rConfig proves itself, then stop RANCID’s cron jobs. The importer is a one-off migration tool. It never changes your RANCID installation. The concept map in Moving from Oxidized (Figure MIG-9) applies here too.


What comes across, and what doesn’t

The importer reads each group’s router.db (lines of hostname:device_type:status), matches each device against .cloginrc, and creates one rConfig device per line that passes its checks.

Comes across How
Device name and address The hostname from router.db, resolved to an IP address through DNS
Template, vendor, command group, prompts, tags From the device type mapping you create for each RANCID device type
Model Read from the device’s saved config in RANCID where it can be (a Cisco processor line); otherwise the mapping’s device type
Credentials Username, password and enable password from a matching .cloginrc entry (glob patterns work), or the credential set you pick for devices with no match
Doesn’t come across What to do
Configuration history Stays in RANCID’s CVS, Subversion or Git repository, readable with that tool
Backup schedules None are created. Set up scheduled tasks in rConfig after the import
RANCID’s cron and email settings Not carried over. Recreate alerting with rConfig notifications
Devices that already exist A device whose name or IP address already matches an rConfig device is skipped, not updated

Conditions a device must meet

A router.db line only becomes a device when all of these hold. Anything else goes to the failures log for its group:

  • The status field is up. Lines marked down (or anything else) are skipped on purpose.
  • Its RANCID device type has a mapping.
  • The hostname resolves to an IP address from the rConfig server.
  • RANCID has a saved config for it in the group’s configs/ folder. A device RANCID has never collected fails, even if the line is fine. The file is read only to pick up the model, never imported.

Decisions to make first

  • Map every RANCID device type (for example cisco, juniper, force10) to an rConfig template, vendor, command group and prompts. The templates, vendors and command groups must exist first. The connection template platform pages help pick a template.
  • Decide what to do with .cloginrc passwords. Matched credentials are stored on each device record. If you’d rather manage them as credential sets, plan to move them after the import, or leave .cloginrc out and assign one set.
  • Decide whether down devices should come across. If they should, mark them up in a copy of router.db before the load, or add them afterwards.

How the import runs

Three commands, run on the rConfig server, in order: create the device type mappings, load from RANCID (it finds the RANCID base directory and works through its groups) into an import file under storage/app/rconfig/, then import that file. The import validates every device, has a dry-run option, and writes all devices in one transaction.

rConfig docsRANCID Import ToolImport devices from RANCID to rConfig V8 using the automated CLI import tool.Read the docs

How to know it worked

  • The device count matches the up lines across the groups you loaded, less the failures logs and any skipped duplicates. Read each group’s failures log: it says why every line was left out.
  • The imported devices appear in the device list for the people who need them. The RANCID import adds no role to a device, and rConfig shows a device only to users whose roles are on the device or on one of its tags. Map the import to at least one tag that has your roles assigned (see roles and scope), and check the device list after the import.
  • A manual download succeeds on a sample from each device type, then schedules run cleanly for a full cycle alongside RANCID. See the cutover plan.

Type to search.