Loading...
 
Skip to main content

SysAdmin Blog

more RANCID... wraprancid

bochmann Saturday 10 of January, 2009
Been playing with warprancid (cache) recently.

It's a RANCID plugin that can run anything as long as it creates a RANCID output file.

I somewhat extended the concept by adding a second parameter to the wraprancid script call, so I can now pass ssh user names in addition to the wraprancid script name. Then wrote a few lines that log in to a system via ssh and dump any output into a rancid temp file.

On the remote host I have another script that just goes through a couple of files and types them out with a small header. I'm now using this to capture various config files on our hosts into RANCID. It's certainly not the best way to do something like that, but it reuses existing infrastructure and it's definitely better than no version control.