[rancid] Prevent commit when device cannot be reached

jm+rancid at roth.lu jm+rancid at roth.lu
Fri Dec 5 10:19:22 UTC 2025


Hello,

When switches cannot be reached, an empty file only containing the 
"RANCID-CONTENT-TYPE:" header is committed.

What do I have to do in my scripts (perl module) to prevent this?

For example, this happens:

executing clogin -t 90 -c"terminal more disable;show running-config" 
192.168.80.112
192.168.80.112: clogin error: Error: Couldn't login: 192.168.80.112
192.168.80.112: missed cmd(s): all commands
192.168.80.112: End of run not found
192.168.80.112: clean_run is false
192.168.80.112: found_end is false
Sending        configs/192.168.80.112   <--- This is what I'd like to 
prevent.

What setting should I use in order to prevent commit in such a case?

Thanks



More information about the Rancid-discuss mailing list