[rancid] Ubuntu with Rancid 3.7 - Comware (CMW)

heasley heas at shrubbery.net
Wed Dec 19 19:22:50 UTC 2018


Wed, Dec 19, 2018 at 06:12:56AM +0000, aaron.sutton at glencore.com.au:
> Hi All,
> 
> Seeking some assistance as I'm a RANCID noob. Have had no issues getting Cisco devices to work, however no luck with HPE switches.
> 
> I have a large environment of HPE switches which run COMEWARE v7. I found the following device scripts by JRBINKS at the following link: https://sites.google.com/site/jrbinks/code/rancid/cmwrancid
> 
> When I attempt to run a test against my device, I get the following error:
> 
> rancid at testrancidserver:~/bin$ ./rancid -d -t cmw aubneleaf3a0508
> loadtype: device type cmw
> loadtype: found device type cmw in /etc/rancid/rancid.types.conf
> loadtype: loading cmw failed: Can't locate cmw.pm in @INC (you may need to install the cmw module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /usr/share/perl5/rancid) at /usr/share/perl5/rancid/rancid.pm line 257.

cmw.pm must be found in the path of rancid.conf:PERL5LIB

> Couldn't load device type spec for cmw
> 
> Server: Ubuntu x64 18.04
> Rancid version 3.7
> 
> >From /etc/rancid/rancid.conf
> BASEDIR=/var/lib/rancid; export BASEDIR
> PATH=/usr/lib/rancid/bin:/usr/bin:/usr/sbin:/bin:/usr/local/bin; export PATH
> 
> I've copied cmwlogin to /var/lib/rancid/bin
> I've copied cmw.pm to /var/lib
> 
> rancid at aubnesrv7rancid1:~/bin$ pwd
> /var/lib/rancid/bin
> rancid at aubnesrv7rancid1:~/bin$ ls cmwlogin -l
> -rwxr-xr-x 1 root root 30304 Dec 19 15:18 cmwlogin
> 
> rancid at aubnesrv7rancid1:~$ pwd
> /var/lib/rancid
> rancid at aubnesrv7rancid1:~$ ls cmw.pm -l
> -rwxr-xr-x 1 rancid rancid 16533 Dec 19 15:21 cmw.pm
> 
> rancid at testrancidserver:~/bin$ export
> declare -x HOME="/var/lib/rancid"
> declare -x LANG="en_US.UTF-8"
> declare -x LOGNAME="rancid"
> declare -x MAIL="/var/mail/rancid"
> declare -x OLDPWD="/var/lib/rancid"
> declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin"
> declare -x PWD="/var/lib/rancid/bin"
> declare -x SHELL="/bin/bash"
> declare -x SHLVL="1"
> declare -x TERM="xterm"
> declare -x USER="rancid"
> declare -x XDG_DATA_DIRS="/usr/local/share:/usr/share:/var/lib/snapd/desktop"
> 
> Anyone able to assist?
> 
> Kind Regards
> Aaron
> 
> 
> *********************************************************************************
> 
> LEGAL DISCLAIMER. The contents of this electronic communication and any attached documents are strictly confidential and they may not be used or disclosed by someone who is not a named recipient.
> 
> If you have received this electronic communication in error please notify the sender by replying to this electronic communication inserting the word "misdirected" as the subject and delete this communication from your system.
> 
> *********************************************************************************

> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss



More information about the Rancid-discuss mailing list