haussli / rancid

RANCiD
Other
114 stars 42 forks source link

Mikrotik router OS version 7.1rc3 backup failed #31

Closed vyankatesh22 closed 2 years ago

vyankatesh22 commented 2 years ago

Hi,

We have recently upgraded Mikrotik core routers to Mikrotik router OS version 7.1rc3. After upgrade rancid Mikrotik backups stopped for Mikrotik router OS version 7.1rc3. Other routers are backing up, which are running on Mikrotik router OS version 6.x.

We are getting below errors logs,

missed cmd(s): all commands : End of run not found

your help is greatly appreciated

tbaschak commented 2 years ago

I am also getting this same issue starting in 6.49 as well. My logs for mikrotik devices running this version are filled with this same string.

I am able to run all the commands listed in mtrancid via mtlogin and directly via ssh

Running rancid 3.9 on Debian stretch (looks like buster has 3.13, willing to upgrade distros for that)

mathiswolff commented 2 years ago

I think the best way to fix this is to enable "dumb" terminal mode https://help.mikrotik.com/docs/display/ROS/Command+Line+Interface

I just replaced +ct200w with +cte200w in /usr/lib/rancid/bin/mtlogin and now have no problems with devices pre and beyond firmware version 6.49

vyankatesh22 commented 2 years ago

@mathiswolff thank you for the response. I have modified mtlogin file with +cte200w and Mikrotik rancid backups working now.

maheshzagade commented 2 years ago

By enabling "dumb" terminal mode backup was working fine but recently we upgraded some routers to Mikrotik router OS version 7.2.1 and now we are getting the same error. missed cmd(s): all commands : End of run not found

your help is greatly appreciated thank you in advance