[rancid] New device type

Rod Hendricks rod.hendricks at graduate.uwa.edu.au
Wed Dec 16 10:49:46 UTC 2015


I am really struggling with getting a new device type up and running.

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.

I have created a login script hmlogin (based off complogin, with session
paginate commented out)
I have created a perl script hirschmann.pm (based on ciscowlc.om).

hirschmann;script;rancid -t hirschmann
hirschmann;command;hirschmann::WriteTerm;show running-config

I can run it directly with hmlogin -c"show running-config"
I get no errors running this, and I get the output expected.

However, when I run the following: rancid -d -thirschmann
I get:
loadtype: device type hirschmann
loadtype: found device type hirschmann in /etc/rancid/rancid.types.conf
executing hmlogin -t 90 -c"show running-config"
HIT COMMAND:(Hirschmann Railswitch) #show running-config
HIT COMMAND:(Hirschmann Railswitch) #show running-config missed cmd(s): all commands End of run not found End of run not found

The .raw file has the full correct output of the show running-config.
The .new file only has:

I feel oh so close to getting this running!  Appreciate any help that can
be offered.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20151216/8a0b2bae/attachment.html>

More information about the Rancid-discuss mailing list