Useful RANCID Debugging Tips

I always find it difficult to find a good reference for RANCID debugging strategies and, after spending the afternoon on doing same on one installation, put together my own list.

Note that in the following, I use clogin and rancid which assumes a Cisco device. Change to the appropriate variations if you’re not trying to work with a Cisco.

  1. Test logging into a device:
    > clogin
  2. Test logging into a device and a single command:
    > clogin -t 90 -c"show version"
  3. Test logging into a device and run a sequence of commands:
    > clogin -t 90 -c"show version;show calendar"
  4. Show what RANCID does with debugging output:
    > rancid -d

    If the above throws some errors (especially a list of missed commands, and if you’re using TACACS, ensure you have authorisation to run all the commands RANCID tries but logging into the router as the RANCID user and executing them one at a time.

  5. Same as (4) but record all router / switch output for analysis:
    > setenv NOPIPE YES
    > rancid -d

    and then complete output can be found in the file: (in this example).

  6. Run RANCID on a single switch / router tree rather than all:
    > /usr/local/bin/rancid-run [tree]
  7. Run RANCID normally:
> /usr/local/bin/rancid-run
  1. Don’t forget that logs are available in RANCID’s logs/ directory.
This entry was posted in How-tos, Linux, OSS, Recipes, Software, Work and tagged , , . Bookmark the permalink.

One Response to Useful RANCID Debugging Tips

  1. Pingback: Useful RANCID Debugging Tips |

Comments are closed.