<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body bgcolor="#FFFFFF">
<div>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;</div>
<div><br>
On Mar 9, 2012, at 7:19 AM, &quot;Michael Maymann&quot; &lt;<a href="mailto:michael@maymann.org">michael@maymann.org</a>&gt; wrote:<br>
<br>
</div>
<div></div>
<blockquote type="cite">
<div>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>
<br>
<div class="gmail_quote">2012/3/9 Marito ... <span dir="ltr">&lt;<a href="mailto:me_gogorza@hotmail.com">me_gogorza@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="ltr">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;<br>
<div>
<div></div>
<hr>
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
<div>
<div class="h5"><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<br>
<br>
<div>2012/3/9 Deny IP Any Any <span dir="ltr">&lt;<a href="mailto:denyipanyany@gmail.com" target="_blank">denyipanyany@gmail.com</a>&gt;</span><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;PADDING-LEFT:1ex">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;:<br>
<div>
<div>&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;<br>
</div>
</div>
&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><font color="#888888"><br>
<br>
<br>
--<br>
deny ip any any (4393649193 matches)<br>
</font></span></blockquote>
</div>
<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></div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>Rancid-discuss mailing list</span><br>
<span><a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a></span><br>
<span><a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a></span></div>
</blockquote>
</body>
</html>