[rancid] [ERROR] lib/rancid/rancid.pm
Pan Affa
affa_pan at hotmail.com
Wed Apr 22 12:13:22 UTC 2026
Dear Haussli,
I have a situation about that when rancid fetch Cisco device's configuration if the last command 'write term' occurs error. The script 'rancid' will not keep the xxx.new file. After I debuged it, I found the codes in the lib/rancid/rancid.pm will result in the 'rancid' script doesn't show the error message (the missing cmd: xxx).
# Use an array to preserve the order of the commands and a hash for mapping
# commands to the subroutine and track commands that have been completed.
@commands = map(keys(%$_), @commandtable);
%commands = map(%$_, @commandtable);
$commandcnt = scalar(keys(%commands));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20260422/539ee839/attachment.htm>
More information about the Rancid-discuss
mailing list