[rancid] New device type

Rod Hendricks rod.hendricks at graduate.uwa.edu.au
Fri Dec 18 03:20:06 UTC 2015


Thanks again to all who are helping with this.

I've culled some of the history as its getting a bit long.

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.

The config I've posted before (see below)

Cheers,
Rod.


> 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.
>
> Can you do the following please:
>
> - post the full script you are using
> - a copy-paste of show run on a real device. The first and last 5 lines
> ought to be enough,
> plus the prompt after the end. One of the things I want to see is if the
> device issues a
> proper EOL at the end of show run. redact anything private from the output
> first of course
>

>
>>
>>     On 17/12/2015 08:01, Rod Hendricks wrote:
>>     > I'm getting closer.
>>     >
>>     > rancid.types.conf now looks like this:-
>>     > hirschmann;script;rancid -t hirschmann
>>     > hirschmann;login;hmlogin
>>     > hirschmann;module;hirschmann
>>     > hirschmann;inloop;hirschmann::inloop
>>     > hirschmann;command;hirschmann::ShowConfig;show running-config
>>     >
>>     > Output now looks like this:-
>>     > -bash-4.2$ rancid -d -thirschmann 192.168.254.103
>>     > loadtype: device type hirschmann
>>     > loadtype: found device type hirschmann in
>> /etc/rancid/rancid.types.conf
>>     > executing hmlogin -t 90 -c"show running-config" 192.168.254.103
>>     > PROMPT MATCH:
>>     > HIT COMMAND:(Hirschmann Railswitch) #show running-config
>>     > HIT COMMAND:(Hirschmann Railswitch) #show running-config
>>     >     In ShowConfig: (Hirschmann Railswitch) #show running-config
>>     >     Exiting ShowConfig:
>>      > 192.168.254.103 <http://192.168.254.103>: End of run not found
>>      > 192.168.254.103 <http://192.168.254.103>: End of run not found
>>     > !--WLC End Config Data--!
>>     > -bash-4.2$
>>     >
>>     > .raw file still looks correct.
>>     >
>>     > .new file looks like:-
>>     > !RANCID-CONTENT-TYPE: hirschmann
>>     > !
>>     >
>>     > !--WLC Begin Config Data--!
>>     >
>>     > !--WLC End Config Data--!
>>     >
>>     > Ideas?
>>     >
>>     > Cheers,
>>     > Rod.
>>     >
>>
>

> Don't worry about the
>>     passwords -
>>      >                 its a test unit with factory default config.
>>      >
>>      >                 Escape character is '^]'.
>>      >
>>      >
>>      >
>>      >                          Copyright (c) 2004-2015 Hirschmann
>>     Automation
>>      >                 and Control GmbH
>>      >
>>      >                                              All rights reserved
>>      >
>>      >                                        Railswitch Release
>> L2E-08.0.09
>>      >
>>      >                                         (Build date 2015-04-06
>> 21:32)
>>      >
>>      >
>>      >
>>      >                                        System Name:  RS-F602F7
>>      >                                        Mgmt-IP    :
>> 192.168.254.103
>>      >                                        Base-MAC   :
>>     00:80:63:F6:02:F7
>>      >                                        System Time:  2015-01-02
>>     10:11:52
>>      >
>>      >
>>      >
>>      >                 (Hirschmann Railswitch)
>>      >                 User:admin
>>      >                 Password:*******
>>      >
>>      >                 NOTE: Enter '?' for Command Help.  Command help
>>     displays
>>      >                 all options
>>      >                       that are valid for the 'normal' command
>>     forms of
>>      >                 that particular mode.
>>      >                       For a list of valid 'no' command forms for
>> that
>>      >                 mode, enter the help
>>      >                       command 'no ?'.  For the syntax of a
>> particular
>>      >                 command form, please
>>      >                       consult the documentation.
>>      >
>>      >
>>      >                 (Hirschmann Railswitch) >enable
>>      >
>>      >                 (Hirschmann Railswitch) #
>>      >                 (Hirschmann Railswitch) #show running-config
>>      >
>>      >                 !Current Configuration:
>>      >                 !
>>      >                 !Parameter string escape handling \, 1
>>      >                 !Characters to be preceded with escape char (\):
>>     \, !,
>>      >                 ", ', ?
>>      >
>>      >                 !System Description "Hirschmann Railswitch"
>>      >                 !System Version L2E-08.0.09 Build: 2015-04-06 21:32
>>      >
>>      >                 vlan database
>>      >                 exit
>>      >
>>      >
>>      >                 configure
>>      >
>>      >                 !
>>      >
>>      >
>>      >                 interface  1/1
>>      >                 no auto-negotiate
>>      >
>>      >                 exit
>>      >
>>      >
>>      >                 interface  1/2
>>      >                 no auto-negotiate
>>      >
>>      >                 exit
>>      >
>>      >
>>      >                 interface  1/3
>>      >
>>      >                 exit
>>      >
>>      >
>>      >                 interface  1/4
>>      >
>>      >                 exit
>>      >
>>      >
>>      >                 interface  1/5
>>      >
>>      >                 exit
>>      >
>>      >
>>      >                 interface  1/6
>>      >
>>      >                 exit
>>      >
>>      >
>>      >                 interface  1/7
>>      >
>>      >                 exit
>>      >
>>      >
>>      >                 interface  1/8
>>      >
>>      >                 exit
>>      >
>>      >
>>      >                 !Address Conflict Detection
>>      >
>>      >                 !Bridge Address Learning
>>      >
>>      >                 !Bridge Fast Link Detection
>>      >
>>      >                 !Maximum size of frame (packet size)
>>      >
>>      >                 !Bridge Address Relearn Detection
>>      >
>>      >                 !Bridge Address Relearn Threshold
>>      >
>>      >                 !Bridge Duplex Mismatch Detection
>>      >
>>      >                 !Bridge Hash Optimizing
>>      >
>>      >                 !Service Mode
>>      >
>>      >                 !VLAN Learning
>>      >
>>      >
>>      >                 !Hirschmann DHCP Relay
>>      >
>>      >                 !Hirschmann Device Status
>>      >
>>      >
>>      >                 !DIP Switch Admin State
>>      >
>>      >
>>      >                 !Ethernet/IP
>>      >
>>      >                 !Power over Ethernet (IEEE 802.3af)
>>      >                 !Selftest
>>      >
>>      >                 !Skip ACA on boot
>>      >
>>      >
>>      >                 !Hirschmann HIPER Ring
>>      >                 ! configuration determined by DIP switch
>>      >                 hiper-ring mode ring-switch
>>      >                 hiper-ring port primary 1/1
>>      >                 hiper-ring port secondary 1/2
>>      >
>>      >                 !LLDP (IEEE802.1AB Link Layer Discovery Protocol)
>>      >
>>      >                 !Media Redundancy Protocol (IEC 62439-2/Ed1.0, MRP)
>>      >                 !No MRP domains exist.
>>      >
>>      >                 !MAC/IP Based Port Security
>>      >
>>      >
>>      >                 !ProfinetIO
>>      >
>>      >
>>      >                 !Hirschmann Precision Time Protocol (PTP, IEEE
>> 1588)
>>      >
>>      >                 !Hirschmann Ring Coupling
>>      >                 !Note: master/slave (also for single) part of
>>      >                 configuration determined by
>>      >                 !      DIP switch (cannot be overridden by
>>     management)
>>      >                 ring-coupling operation on
>>      >
>>      >                 !Hirschmann Signal Contacts
>>      >
>>      >
>>      >                 !Hirschmann SNMP Access Control
>>      >
>>      >
>>      >                 !SNTP
>>      >
>>      >
>>      >                 !Hirschmann Broadcast Limiter
>>      >
>>      >
>>      >                 !Hirschmann Temperature Limit Settings
>>      >
>>      >                 users passwd admin
>>      >
>>
>> :v1:81449548fb49a99be2d6411bdb9a10ea7e9c92c9510eb373a26176b48b934890:
>>      >                 users snmpv3 authentication admin md5
>>      >                 users passwd user
>>      >
>>
>> :v1:81439e52f35ecca73b21339156609d20cf630a65d0e92261cb29e58647ae54f4:
>>      >                 users snmpv3 authentication user md5
>>      >
>>      >                 lineconfig
>>      >                 exit
>>      >
>>      >                 no spanning-tree
>>      >
>>      >                 !IGMP Snooping
>>      >                 exit
>>      >
>>      >
>>      >                 (Hirschmann Railswitch) #logoutConnection closed by
>>      >                 foreign host.
>>      >                 -bash-4.2$
>>      >
>>      >                 Cheers,
>>      >                 Rod.
>>      >
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20151218/b441529c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hirschmann.pm
Type: application/octet-stream
Size: 4287 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20151218/b441529c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hmlogin
Type: application/octet-stream
Size: 23077 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20151218/b441529c/attachment-0001.obj>


More information about the Rancid-discuss mailing list