<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: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:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
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:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi All<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Working with an ASA version 9.8(2), am able to get the login to work, and have the ASA set to auto-enable. 
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For some reason, the username is sent following the successful login, and I think it’s messing up the script – I get the errors ‘missed cmd(s)’ and ‘End of run not found’ in the logfiles.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">./cloginrc:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">add user <username><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">add method <device> ssh<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">add password <device> <password> (note, no enable pw here)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">add autoenable <device> 0<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve tried ‘autoenable 1’, ‘autoenable 0’, ‘noenable 1’, it continues to send the username as follows:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">[rancid@<rancidhostname> bin]$ ./clogin <asahostname><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><asahostname><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">spawn ssh -x -l <username> <asahostname><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">THIS IS A PRIVATE COMPUTER SYSTEM. It is for authorized use only.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><username>@<asahostname>'s password:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">User <username> logged in to <asahostname><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Logins over the last 2 days: 138.  Last login: 07:59:26 EDT Jul 18 2018 from <ipaddress><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Failed logins since the last login: 0.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Type help or '?' for a list of available commands.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><asahostname># <username><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">                              ^<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">ERROR: % Invalid input detected at '^' marker.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><asahostname>#<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><asahostname># exit<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance<o:p></o:p></p>
</div>
Please be advised that this email may contain confidential information. If you are not the intended recipient, please notify us by email by replying to the sender and delete this message. The sender disclaims that the content of this email constitutes an offer
 to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.
</body>
</html>