I'm trying to use RANCID to backup the configs of a few catalyst switches. I'm currently using RANCID successfully for PIX firewalls by using:
bin/clogin -c "write net" ip.address.of.firewall
However, in IOS land as you know, we have "copy running-config tftp://220.127.116.11/configname.config" When I run this as:
bin/clogin -c "copy running-config tftp://18.104.22.168/configname.config" ip.address.of.switch
RANCID is able to login to the unit, issue the command and then it times out and exits. If I telnet and do it manually from the same box, it works, but I have to confirm the host and filenames (network is configed properly, this should work). I can't figure out how to get RANCID to confirm these entries and according to all the docs I've read through we can't do a single line copy to tftp.
I've also tried unsuccessfully:
bin/clogin -c "copy running-config tftp:;22.214.171.124;configname.confg" ip.address.of.switch
Been looking through docs and so forth, only thing I've come close to is the man page of clogin which acknowledges that copy run tftp on IOS requires more input characters but I have not found how to get this going. Any help would be greatly appreciated.