<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 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Michael,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">/usr/libexec/rancid/wlogin -f ~/.cloginrc_cisco -c &#8216;sh cpu&#8217; HOST<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">This works for me.&nbsp; I was referring to ciscowlc5, my fault there.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">-ryan<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Michael Maymann [mailto:michael@maymann.org]
<br>
<b>Sent:</b> Friday, March 09, 2012 9:12 AM<br>
<b>To:</b> Ryan West<br>
<b>Cc:</b> rancid-discuss@shrubbery.net<br>
<b>Subject:</b> Re: [rancid] Cisco ASA&#43;WLC script<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
<br>
how do i try wlogin5 ?<br>
<br>
<br>
Thanks in advance :-) !<br>
~maymann<o:p></o:p></p>
<div>
<p class="MsoNormal">2012/3/9 Ryan West &lt;<a href="mailto:rwest@zyedge.com">rwest@zyedge.com</a>&gt;<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">Try wlogin5<br>
<br>
Sent from handheld&nbsp;<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On Mar 9, 2012, at 8:38 AM, &quot;Michael Maymann&quot; &lt;<a href="mailto:michael@maymann.org" target="_blank">michael@maymann.org</a>&gt; wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
<br>
Ryan: ok.<br>
No, I didn't - do I have to :) ?. Shouldn't I just be able to:<br>
/usr/libexec/rancid/wlogin -f ~/.cloginrc_cisco -c &quot;sh cpu&quot; HOST<br>
?<br>
<br>
<br>
Thanks in advance :-)!<br>
~maymann<o:p></o:p></p>
<div>
<p class="MsoNormal">2012/3/9 Ryan West &lt;<a href="mailto:rwest@zyedge.com" target="_blank">rwest@zyedge.com</a>&gt;<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">Yes, that's it. I assume you set up rancid-fe and tried rancid-run -r devicename as well?<br>
<br>
Sent from handheld&nbsp;<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On Mar 9, 2012, at 8:20 AM, &quot;Michael Maymann&quot; &lt;<a href="mailto:michael@maymann.org" target="_blank">michael@maymann.org</a>&gt; wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
<br>
Ryan: thanks for your reply.<br>
I'm running...<br>
Rancid: 2.3.6<br>
WLC: 6.0.202.0<br>
<br>
found a wlogin here:<br>
<a href="http://www.gossamer-threads.com/lists/rancid/users/4674" target="_blank">http://www.gossamer-threads.com/lists/rancid/users/4674</a><br>
<br>
but I can't get it to work:<br>
-bash-3.2$ /usr/libexec/rancid/wlogin -f ~/.cloginrc_cisco -c &quot;sh cpu&quot; HOST<br>
&quot;: no such file or directory<br>
-bash-3.2$ /usr/libexec/rancid/wlogin -c &quot;sh cpu&quot; HOST<br>
&quot;: no such file or directory<br>
<br>
Is this the one you are talking about - or is there a newer one somewhere ?<br>
<br>
<br>
Thanks in advance :-) !<br>
~maymann<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">2012/3/9 Ryan West &lt;<a href="mailto:rwest@zyedge.com" target="_blank">rwest@zyedge.com</a>&gt;<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">Do a search in the archive and you'll find the wlc script. &nbsp;What version are you running?<br>
<br>
Sent from handheld&nbsp;<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On Mar 9, 2012, at 7:19 AM, &quot;Michael Maymann&quot; &lt;<a href="mailto:michael@maymann.org" target="_blank">michael@maymann.org</a>&gt; wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
<br>
Marito: thanks, that did it for the ASA's :) !<br>
now I have the following on my WLC's:<br>
---<br>
-bash-3.2$ /usr/libexec/rancid/clogin -f ~/.cloginrc_cisco -c &quot;sh ver&quot; HOST<br>
HOST<br>
spawn ssh -c 3des -x -l USR HOST<br>
<br>
<br>
(Cisco Controller)<br>
User: USR<br>
Password:************<br>
(Cisco Controller) &gt;enable<br>
<br>
Incorrect usage.&nbsp; Use the '?' or &lt;TAB&gt; key to list commands.<br>
<br>
(Cisco Controller) &gt;<br>
Error: Check your Enable passwd<br>
---<br>
<br>
These are the non-enable-commands that I can run on the WLC:<br>
---<br>
(Cisco Controller) &gt;?<br>
<br>
clear&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Clear selected configuration elements.<br>
config&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configure switch options and settings.<br>
debug&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Manages system debug options.<br>
help&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Help<br>
license&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Manage Software License<br>
linktest&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Perform a link test to a specified MAC address.<br>
logout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit this session. Any unsaved changes are lost.<br>
ping&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Send ICMP echo packets to a specified IP address.<br>
mping&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Send Mobility echo packets to a specified mobility peer IP address.<br>
eping&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Send Ethernet-over-IP echo packets to a specified mobility peer IP address.<br>
reset&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Reset options.<br>
save&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Save switch configurations.<br>
show&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Display switch options and settings.<br>
test&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Test trigger commands<br>
transfer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Transfer a file to or from the switch.<br>
---<br>
<br>
How can I get this to work as it seems that &quot;enable&quot; command is called &quot;config&quot; ?<br>
Should I create a new .cloginrc_wlc for this and what would it look like ?<br>
<br>
<br>
Thanks in advance :) !<br>
~maymann<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">2012/3/9 Marito ... &lt;<a href="mailto:me_gogorza@hotmail.com" target="_blank">me_gogorza@hotmail.com</a>&gt;<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">Hi Michael,<br>
&nbsp;<br>
You should set up autoenable to 0. As per Rancid .clogin help:<br>
&nbsp;<br>
&quot;.B add autoenable &lt;router name glob&gt; {[01]}<br>
When using locally defined usernames or AAA, it is possible to have a login which is automatically enabled.&nbsp; This is, that user has enable privileges without the need to execute the enable command.&nbsp; The router's prompt is different for enabled mode, ending
 with a # rather than a &gt;.<br>
<br>
Example: add autoenable * {1}<br>
<br>
Default: 0<br>
<br>
zero, meaning that the user is not automatically enabled and&nbsp;should execute the enable command to gain enable privileges, unless negated by the noenable directive or \-noenable command\-line option.<br>
&quot;<br>
&nbsp;<br>
Regards.<br>
<br>
&nbsp;<o:p></o:p></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal">From: <a href="mailto:michael@maymann.org" target="_blank">michael@maymann.org</a><br>
Date: Fri, 9 Mar 2012 12:23:24 &#43;0100<br>
To: <a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a><br>
Subject: Re: [rancid] Cisco ASA&#43;WLC script <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
Hi,<br>
<br>
Daniel&#43;DenyIPAnyAny: Thanks for your quick reply :) !<br>
<br>
1. I'm running rancid 2.3.6... don't have any wlogin anywhere... can't see any in 2.3.8 either - how do I get wlogin ?<br>
I'm doing this because I have some equipment that rancid doesn't support, that I also need backed-up (and don't know expect that well). So just created a little wrapper around Rancid to perfect things for me.<br>
<br>
2. How do you backup your ASA's ?<br>
nothing is wrong with my .clogin:<br>
---<br>
add method * ssh<br>
#add method * telnet<br>
add user * USR<br>
add password * {PWD} {enable_PWD}<br>
add autoenable * {1}<br>
---<br>
works fine, logging in and trying to run command(s) and exits - but doesn't enter enable mode and therefore can't run commands like &quot;more system:running-config&quot; that is working fine manually logging in to enable mode:<br>
-bash-3.2$ /usr/libexec/rancid/clogin -f ~/.cloginrc_cisco -c &quot;more system:running-config&quot; HOST<br>
HOST<br>
spawn ssh -c 3des -x -l admin HOST<br>
USR@HOST's password:<br>
Type help or '?' for a list of available commands.<br>
HOST&gt;<br>
HOST&gt; terminal length 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^<br>
ERROR: % Invalid input detected at '^' marker.<br>
HOST&gt;&nbsp; more system:running-config<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^<br>
ERROR: % Invalid input detected at '^' marker.<br>
HOST&gt;exit<br>
<br>
Logoff<br>
<br>
Connection to HOST closed.<br>
<br>
<br>
Thanks in advance :-) !<br>
<br>
~maymann<o:p></o:p></p>
<div>
<p class="MsoNormal">2012/3/9 Deny IP Any Any &lt;<a href="mailto:denyipanyany@gmail.com" target="_blank">denyipanyany@gmail.com</a>&gt;<o:p></o:p></p>
<p class="MsoNormal">I backup several Cisco ASAs without issue; with your symptoms, usually<br>
the problem is with your .clogin file (specifically either the<br>
autologin option)<br>
<br>
2012/3/8 Michael Maymann &lt;<a href="mailto:michael@maymann.org" target="_blank">michael@maymann.org</a>&gt;:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">&gt; Hi List,<br>
&gt;<br>
&gt; I am trying to configure scheduled backups of my Cisco ASAs and WLCs.<br>
&gt; I am currently trying to use clogin. Login is successful, but it never<br>
&gt; enters enable/configure mode - and therefore is not able to run the desired<br>
&gt; commands/retrieve all the necessary information (it tries to though !).<br>
&gt; Can't paste my .clogin, as I'm at home currently. But everything<br>
&gt; (password/enable_password) is ok there ! (I am running this already on my HP<br>
&gt; Switches)<br>
&gt;<br>
&gt; just after login and before it should enter enable/configure mode, it tries<br>
&gt; to execute the command (from within clogin - not something I told it to...):<br>
&gt; &quot;terminal length 0&quot;<br>
&gt; but the right command for this on a ASA/WLC's is:<br>
&gt; &quot;no pager&quot; or &quot;terminal pager 0&quot;<br>
&gt;<br>
&gt; 1. Is there a better Xlogin that I should use ?<br>
&gt; 2. If clogin is the best script, where in the clogin can I fix this ?<br>
&gt; 3. Furthermore clogin doesn't logout of my WLC's when it finishes - I guess<br>
&gt; I could just add a &quot;; exit&quot; or &quot;; logout&quot; at the end of my command, but<br>
&gt; where can I fix this as-well ?<br>
&gt;<br>
&gt;<br>
&gt; Thanks in advance :) !<br>
&gt; ~maymann<br>
&gt;<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">&gt; _______________________________________________<br>
&gt; Rancid-discuss mailing list<br>
&gt; <a href="mailto:Rancid-discuss@shrubbery.net" target="_blank">Rancid-discuss@shrubbery.net</a><br>
&gt; <a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><br>
<span style="color:#888888"><br>
<br>
<br>
--<br>
deny ip any any (4393649193 matches)</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
_______________________________________________ Rancid-discuss mailing list <a href="mailto:Rancid-discuss@shrubbery.net" target="_blank">
Rancid-discuss@shrubbery.net</a> <a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net" target="_blank">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</blockquote>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</blockquote>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>