<div dir="ltr">It sounds like it's not finding an end-of-configuration delimiter. I'm not familiar with the device type, but for Cisco devices, it usually looks for the keyword "end" by itself at the end of "show run" to determine whether or not it has successfully pulled the configuration. Other device types sometimes look for more than 5 lines of config, etc. Without knowing more about the configuration file format, I can't say which method (if either) would work for your situation.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 16, 2015 at 5:49 AM, Rod Hendricks <span dir="ltr"><<a href="mailto:rod.hendricks@graduate.uwa.edu.au" target="_blank">rod.hendricks@graduate.uwa.edu.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi.<div><br></div><div>I am really struggling with getting a new device type up and running. </div><div><br></div><div>Rancid v3.2, installed into Centos 7 with yum from EPEL repo. I have an installation that is currently working against a test Cisco router, so I know the base install is all good.</div><div><br></div><div>I have created a login script hmlogin (based off complogin, with session paginate commented out)</div><div>I have created a perl script <a href="http://hirschmann.pm" target="_blank">hirschmann.pm</a> (based on <a href="http://ciscowlc.om" target="_blank">ciscowlc.om</a>).</div><div><br></div><div><div>rancid.types.conf:</div><div><div>hirschmann;script;rancid -t hirschmann</div><div>hirschmann;login;hmlogin</div><div>hirschmann;module;hirschmann</div><div>hirschmann;inloop;hirschmann::inloop</div><div>hirschmann;command;hirschmann::WriteTerm;show running-config</div></div><div><br></div><div>I can run it directly with hmlogin -c"show running-config" 192.168.254.103<br></div></div><div>I get no errors running this, and I get the output expected.</div><div><br></div><div>However, when I run the following: rancid -d -thirschmann 192.168.254.103</div><div>I get:</div><div><div>loadtype: device type hirschmann</div><div>loadtype: found device type hirschmann in /etc/rancid/rancid.types.conf</div><div>executing hmlogin -t 90 -c"show running-config" 192.168.254.103</div><div>PROMPT MATCH:</div><div>HIT COMMAND:(Hirschmann Railswitch) #show running-config</div><div>HIT COMMAND:(Hirschmann Railswitch) #show running-config</div><div><a href="http://192.168.254.103" target="_blank">192.168.254.103</a>: missed cmd(s): all commands</div><div><a href="http://192.168.254.103" target="_blank">192.168.254.103</a>: End of run not found</div><div><a href="http://192.168.254.103" target="_blank">192.168.254.103</a>: End of run not found</div><div>!</div><div>-bash-4.2$</div></div><div><br></div><div>The .raw file has the full correct output of the show running-config.<br></div><div>The .new file only has:</div><div><div>!RANCID-CONTENT-TYPE: hirschmann</div><div>!</div></div><div><br></div><div>I feel oh so close to getting this running! Appreciate any help that can be offered.</div><div><br></div><div>Cheers,</div><div>Rod.</div></div>
<br>_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" rel="noreferrer" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Dan</div>
</div>