<div dir="ltr">Thanks again to all who are helping with this.<div><br></div><div>I've culled some of the history as its getting a bit long.</div><div><br></div><div><div>Also not sure well attachments go in this list but I'm going to try. The scripts are 99% based on existing, so there is lots of excess code in them unfortunately. I'm just not proficient enough to remove the unnecessary code.</div><div><br></div><div>The config I've posted before (see below)</div><div><br></div><div>Cheers,</div><div>Rod.</div><div><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br></span>
No need to be lost. The comment that the WLC lacks an end of config marker is the clue - whatever code detects the end is not correct.<br>
<br>
Can you do the following please:<br>
<br>
- post the full script you are using<br>
- a copy-paste of show run on a real device. The first and last 5 lines ought to be enough,<br>
plus the prompt after the end. One of the things I want to see is if the device issues a<br>
proper EOL at the end of show run. redact anything private from the output first of course <br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">
<br></span><div><div class="h5"><br>
On 17/12/2015 08:01, Rod Hendricks wrote:<br>
> I'm getting closer.<br>
><br>
> rancid.types.conf now looks like this:-<br>
> hirschmann;script;rancid -t hirschmann<br>
> hirschmann;login;hmlogin<br>
> hirschmann;module;hirschmann<br>
> hirschmann;inloop;hirschmann::inloop<br>
> hirschmann;command;hirschmann::ShowConfig;show running-config<br>
><br>
> Output now looks like this:-<br>
> -bash-4.2$ rancid -d -thirschmann 192.168.254.103<br>
> loadtype: device type hirschmann<br>
> loadtype: found device type hirschmann in /etc/rancid/rancid.types.conf<br>
> executing hmlogin -t 90 -c"show running-config" 192.168.254.103<br>
> PROMPT MATCH:<br>
> HIT COMMAND:(Hirschmann Railswitch) #show running-config<br>
> HIT COMMAND:(Hirschmann Railswitch) #show running-config<br>
> In ShowConfig: (Hirschmann Railswitch) #show running-config<br>
> Exiting ShowConfig:<br>
> 192.168.254.103 <<a href="http://192.168.254.103" rel="noreferrer" target="_blank">http://192.168.254.103</a>>: End of run not found<br>
> 192.168.254.103 <<a href="http://192.168.254.103" rel="noreferrer" target="_blank">http://192.168.254.103</a>>: End of run not found<br>
> !--WLC End Config Data--!<br>
> -bash-4.2$<br>
><br>
> .raw file still looks correct.<br>
><br>
> .new file looks like:-<br>
> !RANCID-CONTENT-TYPE: hirschmann<br>
> !<br>
><br>
> !--WLC Begin Config Data--!<br>
><br>
> !--WLC End Config Data--!<br>
><br>
> Ideas?<br>
><br>
> Cheers,<br>
> Rod.<br>
></div></div></blockquote></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">Don't worry about the<br></div></div><div><div class="h5">
passwords -<br>
> its a test unit with factory default config.<br>
><br>
> Escape character is '^]'.<br>
><br>
><br>
><br>
> Copyright (c) 2004-2015 Hirschmann<br>
Automation<br>
> and Control GmbH<br>
><br>
> All rights reserved<br>
><br>
> Railswitch Release L2E-08.0.09<br>
><br>
> (Build date 2015-04-06 21:32)<br>
><br>
><br>
><br>
> System Name: RS-F602F7<br>
> Mgmt-IP : 192.168.254.103<br>
> Base-MAC :<br>
00:80:63:F6:02:F7<br>
> System Time: 2015-01-02<br>
10:11:52<br>
><br>
><br>
><br>
> (Hirschmann Railswitch)<br>
> User:admin<br>
> Password:*******<br>
><br>
> NOTE: Enter '?' for Command Help. Command help<br>
displays<br>
> all options<br>
> that are valid for the 'normal' command<br>
forms of<br>
> that particular mode.<br>
> For a list of valid 'no' command forms for that<br>
> mode, enter the help<br>
> command 'no ?'. For the syntax of a particular<br>
> command form, please<br>
> consult the documentation.<br>
><br>
><br>
> (Hirschmann Railswitch) >enable<br>
><br>
> (Hirschmann Railswitch) #<br>
> (Hirschmann Railswitch) #show running-config<br>
><br>
> !Current Configuration:<br>
> !<br>
> !Parameter string escape handling \, 1<br>
> !Characters to be preceded with escape char (\):<br>
\, !,<br>
> ", ', ?<br>
><br>
> !System Description "Hirschmann Railswitch"<br>
> !System Version L2E-08.0.09 Build: 2015-04-06 21:32<br>
><br>
> vlan database<br>
> exit<br>
><br>
><br>
> configure<br>
><br>
> !<br>
><br>
><br>
> interface 1/1<br>
> no auto-negotiate<br>
><br>
> exit<br>
><br>
><br>
> interface 1/2<br>
> no auto-negotiate<br>
><br>
> exit<br>
><br>
><br>
> interface 1/3<br>
><br>
> exit<br>
><br>
><br>
> interface 1/4<br>
><br>
> exit<br>
><br>
><br>
> interface 1/5<br>
><br>
> exit<br>
><br>
><br>
> interface 1/6<br>
><br>
> exit<br>
><br>
><br>
> interface 1/7<br>
><br>
> exit<br>
><br>
><br>
> interface 1/8<br>
><br>
> exit<br>
><br>
><br>
> !Address Conflict Detection<br>
><br>
> !Bridge Address Learning<br>
><br>
> !Bridge Fast Link Detection<br>
><br>
> !Maximum size of frame (packet size)<br>
><br>
> !Bridge Address Relearn Detection<br>
><br>
> !Bridge Address Relearn Threshold<br>
><br>
> !Bridge Duplex Mismatch Detection<br>
><br>
> !Bridge Hash Optimizing<br>
><br>
> !Service Mode<br>
><br>
> !VLAN Learning<br>
><br>
><br>
> !Hirschmann DHCP Relay<br>
><br>
> !Hirschmann Device Status<br>
><br>
><br>
> !DIP Switch Admin State<br>
><br>
><br>
> !Ethernet/IP<br>
><br>
> !Power over Ethernet (IEEE 802.3af)<br>
> !Selftest<br>
><br>
> !Skip ACA on boot<br>
><br>
><br>
> !Hirschmann HIPER Ring<br>
> ! configuration determined by DIP switch<br>
> hiper-ring mode ring-switch<br>
> hiper-ring port primary 1/1<br>
> hiper-ring port secondary 1/2<br>
><br>
> !LLDP (IEEE802.1AB Link Layer Discovery Protocol)<br>
><br>
> !Media Redundancy Protocol (IEC 62439-2/Ed1.0, MRP)<br>
> !No MRP domains exist.<br>
><br>
> !MAC/IP Based Port Security<br>
><br>
><br>
> !ProfinetIO<br>
><br>
><br>
> !Hirschmann Precision Time Protocol (PTP, IEEE 1588)<br>
><br>
> !Hirschmann Ring Coupling<br>
> !Note: master/slave (also for single) part of<br>
> configuration determined by<br>
> ! DIP switch (cannot be overridden by<br>
management)<br>
> ring-coupling operation on<br>
><br>
> !Hirschmann Signal Contacts<br>
><br>
><br>
> !Hirschmann SNMP Access Control<br>
><br>
><br>
> !SNTP<br>
><br>
><br>
> !Hirschmann Broadcast Limiter<br>
><br>
><br>
> !Hirschmann Temperature Limit Settings<br>
><br>
> users passwd admin<br>
><br>
:v1:81449548fb49a99be2d6411bdb9a10ea7e9c92c9510eb373a26176b48b934890:<br>
> users snmpv3 authentication admin md5<br>
> users passwd user<br>
><br>
:v1:81439e52f35ecca73b21339156609d20cf630a65d0e92261cb29e58647ae54f4:<br>
> users snmpv3 authentication user md5<br>
><br>
> lineconfig<br>
> exit<br>
><br>
> no spanning-tree<br>
><br>
> !IGMP Snooping<br>
> exit<br>
><br>
><br>
> (Hirschmann Railswitch) #logoutConnection closed by<br>
> foreign host.<br>
> -bash-4.2$<br>
><br>
> Cheers,<br>
> Rod.<br>
><br> </div></div></blockquote><div class=""><div class="h5"><br></div></div></blockquote></div></div></div></div>