Hi,<br><br>how do i try wlogin5 ?<br><br><br>Thanks in advance :-) !<br>~maymann<br><br><div class="gmail_quote">2012/3/9 Ryan West <span dir="ltr"><<a href="mailto:rwest@zyedge.com">rwest@zyedge.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF">
<div>Try wlogin5<br>
<br>
Sent from handheld </div><div><div class="h5">
<div><br>
On Mar 9, 2012, at 8:38 AM, "Michael Maymann" <<a href="mailto:michael@maymann.org" target="_blank">michael@maymann.org</a>> wrote:<br>
<br>
</div>
<div></div>
<blockquote type="cite">
<div>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 "sh cpu" HOST<br>
?<br>
<br>
<br>
Thanks in advance :-)!<br>
~maymann<br>
<br>
<div class="gmail_quote">2012/3/9 Ryan West <span dir="ltr"><<a href="mailto:rwest@zyedge.com" target="_blank">rwest@zyedge.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF">
<div>Yes, that's it. I assume you set up rancid-fe and tried rancid-run -r devicename as well?<br>
<br>
Sent from handheld </div>
<div>
<div>
<div><br>
On Mar 9, 2012, at 8:20 AM, "Michael Maymann" <<a href="mailto:michael@maymann.org" target="_blank">michael@maymann.org</a>> wrote:<br>
<br>
</div>
<div></div>
<blockquote type="cite">
<div>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 "sh cpu" HOST<br>
": no such file or directory<br>
-bash-3.2$ /usr/libexec/rancid/wlogin -c "sh cpu" HOST<br>
": 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>
<br>
<div class="gmail_quote">2012/3/9 Ryan West <span dir="ltr"><<a href="mailto:rwest@zyedge.com" target="_blank">rwest@zyedge.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF">
<div>Do a search in the archive and you'll find the wlc script. What version are you running?<br>
<br>
Sent from handheld </div>
<div>
<div>
<div><br>
On Mar 9, 2012, at 7:19 AM, "Michael Maymann" <<a href="mailto:michael@maymann.org" target="_blank">michael@maymann.org</a>> 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 "sh ver" 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) >enable<br>
<br>
Incorrect usage. Use the '?' or <TAB> key to list commands.<br>
<br>
(Cisco Controller) ><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) >?<br>
<br>
clear Clear selected configuration elements.<br>
config Configure switch options and settings.<br>
debug Manages system debug options.<br>
help Help<br>
license Manage Software License<br>
linktest Perform a link test to a specified MAC address.<br>
logout Exit this session. Any unsaved changes are lost.<br>
ping Send ICMP echo packets to a specified IP address.<br>
mping Send Mobility echo packets to a specified mobility peer IP address.<br>
eping Send Ethernet-over-IP echo packets to a specified mobility peer IP address.<br>
reset Reset options.<br>
save Save switch configurations.<br>
show Display switch options and settings.<br>
test Test trigger commands<br>
transfer Transfer a file to or from the switch.<br>
---<br>
<br>
How can I get this to work as it seems that "enable" command is called "config" ?<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"><<a href="mailto:me_gogorza@hotmail.com" target="_blank">me_gogorza@hotmail.com</a>></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>
<br>
You should set up autoenable to 0. As per Rancid .clogin help:<br>
<br>
".B add autoenable <router name glob> {[01]}<br>
When using locally defined usernames or AAA, it is possible to have a login which is automatically enabled. This is, that user has enable privileges without the need to execute the enable command. The router's prompt is different for enabled mode, ending
with a # rather than a >.<br>
<br>
Example: add autoenable * {1}<br>
<br>
Default: 0<br>
<br>
zero, meaning that the user is not automatically enabled and should execute the enable command to gain enable privileges, unless negated by the noenable directive or \-noenable command\-line option.<br>
"<br>
<br>
Regards.<br>
<br>
<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 +0100<br>
To: <a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a><br>
Subject: Re: [rancid] Cisco ASA+WLC script
<div>
<div><br>
<br>
Hi,<br>
<br>
Daniel+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 "more system:running-config" that is working fine manually logging in to enable mode:<br>
-bash-3.2$ /usr/libexec/rancid/clogin -f ~/.cloginrc_cisco -c "more system:running-config" 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><br>
HOST> terminal length 0<br>
^<br>
ERROR: % Invalid input detected at '^' marker.<br>
HOST> more system:running-config<br>
^<br>
ERROR: % Invalid input detected at '^' marker.<br>
HOST>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"><<a href="mailto:denyipanyany@gmail.com" target="_blank">denyipanyany@gmail.com</a>></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 <<a href="mailto:michael@maymann.org" target="_blank">michael@maymann.org</a>>:<br>
<div>
<div>> Hi List,<br>
><br>
> I am trying to configure scheduled backups of my Cisco ASAs and WLCs.<br>
> I am currently trying to use clogin. Login is successful, but it never<br>
> enters enable/configure mode - and therefore is not able to run the desired<br>
> commands/retrieve all the necessary information (it tries to though !).<br>
> Can't paste my .clogin, as I'm at home currently. But everything<br>
> (password/enable_password) is ok there ! (I am running this already on my HP<br>
> Switches)<br>
><br>
> just after login and before it should enter enable/configure mode, it tries<br>
> to execute the command (from within clogin - not something I told it to...):<br>
> "terminal length 0"<br>
> but the right command for this on a ASA/WLC's is:<br>
> "no pager" or "terminal pager 0"<br>
><br>
> 1. Is there a better Xlogin that I should use ?<br>
> 2. If clogin is the best script, where in the clogin can I fix this ?<br>
> 3. Furthermore clogin doesn't logout of my WLC's when it finishes - I guess<br>
> I could just add a "; exit" or "; logout" at the end of my command, but<br>
> where can I fix this as-well ?<br>
><br>
><br>
> Thanks in advance :) !<br>
> ~maymann<br>
><br>
</div>
</div>
> _______________________________________________<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><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" target="_blank">Rancid-discuss@shrubbery.net</a></span><br>
<span><a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a></span></div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div></div></div>
</blockquote></div><br>