<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">The "mtlogin command not found" message makes it seem like the PATH of the user running the command doesn't include the RANCID bin directory.</div>
<div name="messageSignatureSection"><br />
--<br />
Dan</div>
<div name="messageReplySection"><br />
On Aug 15, 2017, 7:56 PM -0400, Wade Blackwell <wadeb@bablam.com>, wrote:<br />
<blockquote type="cite">Thanks so much,<br />
So I did perform a clean install of 3.6.2. Still getting the<br />
following issues (I did change the router.db syntax to semicolons). Test<br />
login succeeds and a manual run of gives me this;<br />
<br />
-bash-4.2$ /usr/local/src/rancid-3.6.2/bin/mtrancid -d 172.31.0.210<br />
executing mtlogin -t 90 -c"system package print detail without-paging;system<br />
routerboard print;system license print;export" 172.31.0.210<br />
sh: mtlogin: command not found<br />
172.31.0.210: missed cmd(s): all commands<br />
172.31.0.210: End of run not found<br />
<br />
I broke up the stated commands and ran them individually and the only issue<br />
I saw was the output from "system routerboard print" was "no". Rancid-run<br />
still fails even through the .cloginrc test passes. It looks like CVS took<br />
care of adding the device but the collection still times out. Pertinent<br />
portion of .cloginrc is directly below and the rancid-run log is below that.<br />
Thanks so much.<br />
<br />
-------------begin .cloginrc-----------------<br />
add noenable * {1}<br />
add method 172.31.0.210 ssh<br />
add user 172.31.0.210 WccRancid<br />
add password 172.31.0.210 abc123<br />
add timeout 172.31.0.210 500<br />
#add sshcmd 172.31.0.210 {/usr/local/rancid/bin/mtrancid}<br />
--------------end .cloginrc----------------<br />
--------------begin log----------------<br />
cvs add: in directory .:<br />
cvs [add aborted]: there is no version here; do 'cvs checkout' first<br />
cvs commit: cannot open CVS/Entries for reading: No such file or directory<br />
cvs commit: nothing known about `172.31.0.210'<br />
cvs [commit aborted]: correct above errors first!<br />
Added 172.31.0.210<br />
<br />
cvs status: cannot open CVS/Entries for reading: No such file or directory<br />
cvs status: use `cvs add' to create an entry for 172.31.0.210<br />
cvs add: in directory .:<br />
cvs [add aborted]: there is no version here; do 'cvs checkout' first<br />
cvs commit: cannot open CVS/Entries for reading: No such file or directory<br />
cvs commit: nothing known about `172.31.0.210'<br />
cvs [commit aborted]: correct above errors first!<br />
cvs added missing router 172.31.0.210<br />
<br />
<br />
Trying to get all of the configs.<br />
172.31.0.210: missed cmd(s): all commands<br />
172.31.0.210: End of run not found<br />
172.31.0.210 mtlogin error: Error: TIMEOUT reached<br />
#<br />
=====================================<br />
Getting missed routers: round 1.<br />
172.31.0.210: missed cmd(s): all commands<br />
172.31.0.210: End of run not found<br />
172.31.0.210 mtlogin error: Error: TIMEOUT reached<br />
#<br />
=====================================<br />
Getting missed routers: round 2.<br />
172.31.0.210: missed cmd(s): all commands<br />
172.31.0.210: End of run not found<br />
172.31.0.210 mtlogin error: Error: TIMEOUT reached<br />
#<br />
=====================================<br />
Getting missed routers: round 3.<br />
172.31.0.210: missed cmd(s): all commands<br />
172.31.0.210: End of run not found<br />
172.31.0.210 mtlogin error: Error: TIMEOUT reached<br />
#<br />
=====================================<br />
Getting missed routers: round 4.<br />
<br />
cvs diff: in directory .:<br />
cvs [diff aborted]: there is no version here; run 'cvs checkout' first<br />
cvs commit: in directory .:<br />
cvs [commit aborted]: there is no version here; run 'cvs checkout' first<br />
-bash-4.2$ cvs checkout<br />
cvs checkout: No CVSROOT specified! Please use the `-d' option<br />
cvs [checkout aborted]: or set the CVSROOT environment variable.<br />
--------------end log----------------<br />
<br />
Wade Blackwell<br />
(D) <a dir="ltr" href="tel:805.457.8825" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="27">805.457.8825</a><br />
Creston Hills Consulting<br />
<br />
-----Original Message-----<br />
From: heasley [mailto:heas@shrubbery.net]<br />
Sent: Thursday, August 10, 2017 5:59 PM<br />
To: Wade Blackwell <wadeb@bablam.com<br />
Cc: rancid-discuss@shrubbery.net<br />
Subject: Re: [rancid] Mikrotik issues ssh on 6.35.4<br />
<br />
Thu, Aug 10, 2017 at 02:45:13PM -0700, Wade Blackwell:<br />
<blockquote type="cite">Good afternoon from the Central Coast of Ca.<br />
<br />
I'm new to both Rancid and Mikrotik and getting a<br />
successful config pull from a MT 6.35.4 VM is proving difficult. I've<br />
read quite allot today and tried most everything I read. The result is<br />
rancid can login via ssh but pulls a zero byte config. First issue<br />
appeared to be a timeout issue which I addressed in the config. Now<br />
the issue appears to be "missed cmd(s)". Details below;<br />
<br />
Rancid Verion 2.3.8<br /></blockquote>
<br />
please upgrade to 3.6.2. We can't support 2.x any longer.<br />
<br />
<blockquote type="cite">Server OS CentOS 6 (Vmware guest)<br />
<br />
Mikrotik version 6.35.4 (Vmware guest)<br />
<br />
Error messages (rounds 1-4) "missed cmd(s): system license<br />
print,system routerboard print,export"<br /></blockquote>
<br />
in the rancid FAQ S3 Q2 there is some guidance for failing collections.<br />
<br />
_______________________________________________<br />
Rancid-discuss mailing list<br />
Rancid-discuss@shrubbery.net<br />
http://www.shrubbery.net/mailman/listinfo/rancid-discuss<br /></blockquote>
</div>
</body>
</html>