First I created a file in this case filename with the commands I wanted to run inside it. I changed to the rancid user first and then created the file and ran the commands as rancid.
su rancid -s /bin/bash
access-list 01 permit host xxx.xxx.xxx.xxx
snmp-server community STRING rw 01
Save the file as filename.
Then run clogin using this file and a hostname.
clogin -x filename hostname
Give the full path to clogin if needed, and if there is more than one host being changed use a space between each hostname.
Best Tools for Monitoring and Administering your LAN/WAN network better!!!: How to setup and configure Rancid integrated with …:
They covered almost everything there correctly for me but I did run into a few things I had to change..
apt-get install rancid cvsweb cvs
I’m using MS RADIUS for AD user integration and privilege level 15 on login and SSH so I needed to set:
add autoenable * 1
add user * username
add password * userpassword
add method * ssh
I also used “su -s /bin/bash rancid” to change to the rancid user and run all the needed commands from there.
“1 10 * * * /usr/local/rancid/bin/rancid-run”
Edit that time in crontab to run at whatever interval you like.
I used exim4 for mail and it was installed by default. Edit /etc/aliases and restart mail “service exim4 restart”.
Everything pretty much worked out of the box.
More MS RADIUS setup information.