Rancid
Commands
/usr/libexec/rancid/rancid-run -r [$devicename]: backup all devices or [$devicename]
tail -f /var/log/rancid/$file: check log of jobs
clogin $devicename: log in manually
clogin -c "Commands" $devicename: run command on device
clogin -x commands.txt $devicename: change configuration with rancid
# commands.txt file
conf term
ip access-list extended PREAUTH
permit udp any any eq bootps
permit udp any any eq domain
permit icmp any any
end
write memclogin -x commands.txt
cat switches.txt: apply to many switches
# switches.txt
device1
device2
device3Custom Modules
/usr/share/perl5/vendor_perl/rancid/ios.pm: ios module
Reference
https://networklore.com/rancid-getting-started/
Last updated