<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Arial",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">Seeking some assistance as I’m a RANCID noob. Have had no issues getting Cisco devices to work, however no luck with HPE switches.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">I have a large environment of HPE switches which run COMEWARE v7. I found the following device scripts by JRBINKS at the following link:
<a href="https://sites.google.com/site/jrbinks/code/rancid/cmwrancid">https://sites.google.com/site/jrbinks/code/rancid/cmwrancid</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">When I attempt to run a test against my device, I get the following error:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">rancid@testrancidserver:~/bin$ ./rancid -d -t cmw aubneleaf3a0508<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">loadtype: device type cmw<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">loadtype: found device type cmw in /etc/rancid/rancid.types.conf<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">Couldn't load device type spec for cmw<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">Server:</span></b><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif"> Ubuntu x64 18.04<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">Rancid
</span></b><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">version 3.7<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">From /etc/rancid/rancid.conf<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">BASEDIR=/var/lib/rancid; export BASEDIR<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Arial",sans-serif">PATH=/usr/lib/rancid/bin:/usr/bin:/usr/sbin:/bin:/usr/local/bin; export PATH<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">I’ve copied cmwlogin to /var/lib/rancid/bin<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">I’ve copied cmw.pm to /var/lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">rancid@aubnesrv7rancid1:~/bin$ pwd<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">/var/lib/rancid/bin<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">rancid@aubnesrv7rancid1:~/bin$ ls cmwlogin -l<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">-rwxr-xr-x 1 root root 30304 Dec 19 15:18 cmwlogin<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">rancid@aubnesrv7rancid1:~$ pwd<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">/var/lib/rancid<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">rancid@aubnesrv7rancid1:~$ ls cmw.pm -l<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">-rwxr-xr-x 1 rancid rancid 16533 Dec 19 15:21 cmw.pm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">rancid@testrancidserver:~/bin$ export<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare -x HOME="/var/lib/rancid"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare -x LANG="en_US.UTF-8"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare -x LOGNAME="rancid"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare -x MAIL="/var/mail/rancid"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare -x OLDPWD="/var/lib/rancid"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare -x PWD="/var/lib/rancid/bin"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare -x SHELL="/bin/bash"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare -x SHLVL="1"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare -x TERM="xterm"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare -x USER="rancid"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare -x XDG_DATA_DIRS="/usr/local/share:/usr/share:/var/lib/snapd/desktop"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif">Anyone able to assist?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:#1F497D;mso-fareast-language:EN-GB">Kind Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:#1F497D;mso-fareast-language:EN-GB">Aaron<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:#1F497D;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 11px;">*********************************************************************************<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 11px;">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.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 11px;">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.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 11px; color: #404040; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span style="font-size: 11px;">*********************************************************************************</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></span></p></body>
</html>