Hi Thomas! Thank you for your bug report.
> I get an error on saving the configuration of a PowerConnect M8024-k > switch with rancid since the upgrade from 3.7-2~bpo9+1 to > 3.8-1~bpo9+1. I read the changelogs and news and did not find any > relevant information to fix my problem. To say the truth, I don't see what exactly causes your problem. I also do not see, what code change could have triggered your problem, since hlogin wasn't touched at all between 3.7 and 3.8 and srancid has only one little change to optimize power consumption display. Maybe you could try to patch srancid and undo this change: + # filter power rates and tmestamps from 7024 power supply info + # Power Supplies: + # + # Unit Description Status Average Current Since + # Power Power Date/Time + # (Watts) (Watts) + # ---- ----------- ----------- ---------- -------- ------------------- + # 1 System OK 1.4 65.2 + # 1 Internal OK N/A N/A 10/05/2017 20:18:35 + if (/power supplies/i) { + ProcessHistory("COMMENTS","keysort","C1", + "! Unit\tDescription\tStatus\n"); + ProcessHistory("COMMENTS","keysort","C1", + "! ----\t-----------\t------\n"); + while (<INPUT>) { + s/^\s+\015//g; + tr/\015//d; + /^(unit\s|--+\s|\s)/i && next; + if (/(\d+)\s+(\w+)\s+(\w+(\s\w+)?)\s/) { + if (length($2) >= 8) { + ProcessHistory("COMMENTS","keysort","C1","! $1\t$2\t$3\n"); + } else { + ProcessHistory("COMMENTS","keysort","C1","! $1\t$2\t\t$3\n"); + } + } + /^\s*$/ && last; + } + } > I did an upgrade: > > > 2018-08-22 08:36:54 upgrade rancid:amd64 3.7-2~bpo9+1 3.8-1~bpo9+1 Did you try to downgrade again, to check that 3.7 doesn't have this issue? You can find the old package at http://snapshot.debian.org/package/rancid/3.7-2%7Ebpo9%2B1/#rancid_3.7-2:7e:bpo9:2b:1 > - login with clogin and manually run the commands (show version, dir, show > vlan) works > - test with srancid doesn't work: > > executing hlogin -t 90 -c"terminal datadump;show system;show > > version;dir;show vlan;show running-config" swe2-stack2.mgmt.ensimag.fr > > PROMPT MATCH: swe2-stack2# > > HIT COMMAND:swe2-stack2#terminal datadump > > In RunCommand: swe2-stack2#terminal datadump > > HIT COMMAND:swe2-stack2#show system > > In ShowSys: swe2-stack2#show system > > swe2-stack2.mgmt.ensimag.fr: missed cmd(s): show version, dir, show vlan > > swe2-stack2.mgmt.ensimag.fr: End of run not found > > swe2-stack2.mgmt.ensimag.fr: found_end is false > > ! ! > - the command 'terminal datadump' doesn't work when logged on the switch > ('terminal length 0' works) but every other commands works So you did all, I can suggest to solve this issue. Now I have no more ideas, especially since I don't have access to ah PowerConnect switch myself, so I cannot reproduce this issue here. The "terminal datadump" command wasn't touched between 3.7 and 3.8, so this shouldn't be able to trigger your problem. Now my last idea is to ask on the rancid-discuss mailinglist (http://www.shrubbery.net/rancid/#help) Up to now, I didn't see someone mentioning this issue on the mailinglist. Greetings Roland