[rancid] Mikrotik issues ssh on 6.35.4

Tim Warnock timoid at timoid.org
Fri Aug 11 01:01:35 UTC 2017


add password 172.31.0.210 {abc123}
#add sshcmd 172.31.0.210 {/usr/local/rancid/bin/mtrancid}

Tried that?

If you're having to call mtrancid, do you have mikrotik in as a vendor?

https://forum.mikrotik.com/viewtopic.php?t=32676

-----Original Message-----
From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Wade Blackwell
Sent: Friday, 11 August 2017 7:45 AM
To: rancid-discuss at shrubbery.net
Subject: [rancid] Mikrotik issues ssh on 6.35.4

Good afternoon from the Central Coast of Ca.

                I'm new to both Rancid and Mikrotik and getting a successful config pull from a MT 6.35.4 VM is proving difficult. I've read quite allot today and tried most everything I read. The result is rancid can login via ssh but pulls a zero byte config. First issue appeared to be a timeout issue which I addressed in the config. Now the issue appears to be "missed cmd(s)". Details below;

 

Rancid Verion 2.3.8

Server OS CentOS 6 (Vmware guest)

Mikrotik version 6.35.4 (Vmware guest)

Error messages (rounds 1-4) "missed cmd(s): system license print,system routerboard print,export"

Group in rancid.conf "LIST_OF_GROUPS="CHC_Creston":

.cloginrc pertinent config changes below

#*****YOUR CONFIG HERE******

#

add noenable * {1}

add method 172.31.0.210 {ssh}

add user 172.31.0.210 {admin}

add password 172.31.0.210 {abc123} {}

add timeout 172.31.0.210 500

add sshcmd 172.31.0.210 {/usr/local/rancid/bin/mtrancid}

#

routers.up contains "172.31.0.210:mikrotik"

router.db contains "172.31.0.210:mikrotik:up"

configs directory shows the host with zero byte config;

[root at cre-util-01 configs]# pwd

/usr/local/rancid/var/CHC_Creston/configs

 

[root at cre-util-01 configs]# ll

total 4

-rw-r----- 1 rancid netadm    0 Aug 10 13:36 172.31.0.210

drwxr-x--- 2 rancid netadm 4096 Aug 10 13:36 CVS

[root at cre-util-01 configs]# more 172.31.0.210

[root at cre-util-01 configs]#

 

                I must be missing something simple here as I see allot of folks have been using rancid for a long time on the MT platform. Any feedback on where I'm falling down would be great, thanks so much.

 

                -W

 

Wade Blackwell

(D) 805.457.8825

Creston Hills Consulting <http://chc.bablam.com/> 

 



More information about the Rancid-discuss mailing list