<div dir="ltr"><div>Thanks Dan.</div><div><br></div><div>Your explanation makes sense.  Which script normally defines this delimiter?  I would be happy to settle for the moment in just short-circuiting this delimiter check so I can I can get the job running.  Have included device config below.  Don't worry about the passwords - its a test unit with factory default config.</div><div><br></div><div><div>Escape character is '^]'.</div><div><br></div><div><br></div><div><br></div><div>         Copyright (c) 2004-2015 Hirschmann Automation and Control GmbH</div><div><br></div><div>                             All rights reserved</div><div><br></div><div>                       Railswitch Release L2E-08.0.09</div><div><br></div><div>                        (Build date 2015-04-06 21:32)</div><div><br></div><div><br></div><div><br></div><div>                       System Name:  RS-F602F7</div><div>                       Mgmt-IP    :  192.168.254.103</div><div>                       Base-MAC   :  00:80:63:F6:02:F7</div><div>                       System Time:  2015-01-02 10:11:52</div><div><br></div><div><br></div><div><br></div><div>(Hirschmann Railswitch)</div><div>User:admin</div><div>Password:*******</div><div><br></div><div>NOTE: Enter '?' for Command Help.  Command help displays all options</div><div>      that are valid for the 'normal' command forms of that particular mode.</div><div>      For a list of valid 'no' command forms for that mode, enter the help</div><div>      command 'no ?'.  For the syntax of a particular command form, please</div><div>      consult the documentation.</div><div><br></div><div><br></div><div>(Hirschmann Railswitch) >enable</div><div><br></div><div>(Hirschmann Railswitch) #</div><div>(Hirschmann Railswitch) #show running-config</div><div><br></div><div>!Current Configuration:</div><div>!</div><div>!Parameter string escape handling \, 1</div><div>!Characters to be preceded with escape char (\): \, !, ", ', ?</div><div><br></div><div>!System Description "Hirschmann Railswitch"</div><div>!System Version L2E-08.0.09 Build: 2015-04-06 21:32</div><div><br></div><div>vlan database</div><div>exit</div><div><br></div><div><br></div><div>configure</div><div><br></div><div>!</div><div><br></div><div><br></div><div>interface  1/1</div><div>no auto-negotiate</div><div><br></div><div>exit</div><div><br></div><div><br></div><div>interface  1/2</div><div>no auto-negotiate</div><div><br></div><div>exit</div><div><br></div><div><br></div><div>interface  1/3</div><div><br></div><div>exit</div><div><br></div><div><br></div><div>interface  1/4</div><div><br></div><div>exit</div><div><br></div><div><br></div><div>interface  1/5</div><div><br></div><div>exit</div><div><br></div><div><br></div><div>interface  1/6</div><div><br></div><div>exit</div><div><br></div><div><br></div><div>interface  1/7</div><div><br></div><div>exit</div><div><br></div><div><br></div><div>interface  1/8</div><div><br></div><div>exit</div><div><br></div><div><br></div><div>!Address Conflict Detection</div><div><br></div><div>!Bridge Address Learning</div><div><br></div><div>!Bridge Fast Link Detection</div><div><br></div><div>!Maximum size of frame (packet size)</div><div><br></div><div>!Bridge Address Relearn Detection</div><div><br></div><div>!Bridge Address Relearn Threshold</div><div><br></div><div>!Bridge Duplex Mismatch Detection</div><div><br></div><div>!Bridge Hash Optimizing</div><div><br></div><div>!Service Mode</div><div><br></div><div>!VLAN Learning</div><div><br></div><div><br></div><div>!Hirschmann DHCP Relay</div><div><br></div><div>!Hirschmann Device Status</div><div><br></div><div><br></div><div>!DIP Switch Admin State</div><div><br></div><div><br></div><div>!Ethernet/IP</div><div><br></div><div>!Power over Ethernet (IEEE 802.3af)</div><div>!Selftest</div><div><br></div><div>!Skip ACA on boot</div><div><br></div><div><br></div><div>!Hirschmann HIPER Ring</div><div>! configuration determined by DIP switch</div><div>hiper-ring mode ring-switch</div><div>hiper-ring port primary 1/1</div><div>hiper-ring port secondary 1/2</div><div><br></div><div>!LLDP (IEEE802.1AB Link Layer Discovery Protocol)</div><div><br></div><div>!Media Redundancy Protocol (IEC 62439-2/Ed1.0, MRP)</div><div>!No MRP domains exist.</div><div><br></div><div>!MAC/IP Based Port Security</div><div><br></div><div><br></div><div>!ProfinetIO</div><div><br></div><div><br></div><div>!Hirschmann Precision Time Protocol (PTP, IEEE 1588)</div><div><br></div><div>!Hirschmann Ring Coupling</div><div>!Note: master/slave (also for single) part of configuration determined by</div><div>!      DIP switch (cannot be overridden by management)</div><div>ring-coupling operation on</div><div><br></div><div>!Hirschmann Signal Contacts</div><div><br></div><div><br></div><div>!Hirschmann SNMP Access Control</div><div><br></div><div><br></div><div>!SNTP</div><div><br></div><div><br></div><div>!Hirschmann Broadcast Limiter</div><div><br></div><div><br></div><div>!Hirschmann Temperature Limit Settings</div><div><br></div><div>users passwd admin :v1:81449548fb49a99be2d6411bdb9a10ea7e9c92c9510eb373a26176b48b934890:</div><div>users snmpv3 authentication admin md5</div><div>users passwd user :v1:81439e52f35ecca73b21339156609d20cf630a65d0e92261cb29e58647ae54f4:</div><div>users snmpv3 authentication user md5</div><div><br></div><div>lineconfig</div><div>exit</div><div><br></div><div>no spanning-tree</div><div><br></div><div>!IGMP Snooping</div><div>exit</div><div><br></div><div><br></div><div>(Hirschmann Railswitch) #logoutConnection closed by foreign host.</div><div>-bash-4.2$</div></div><div><br></div><div>Cheers,</div><div>Rod.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 16, 2015 at 10:21 PM, Dan Anderson <span dir="ltr"><<a href="mailto:dan.w.anderson@gmail.com" target="_blank">dan.w.anderson@gmail.com</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">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"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div>_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net" target="_blank">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><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Dan</div>
</font></span></div>
</blockquote></div><br></div>