That works. I'm not sure if the same bug is in any other xlogin scripts since I just use cisco.<br>Thanks<br>Aaron<br><br><div><span class="gmail_quote">On 12/6/06, <b class="gmail_sendername">john heasley</b> <<a href="mailto:heas@shrubbery.net">
heas@shrubbery.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Wed, Dec 06, 2006 at 04:00:02PM -0500, A Dude:<br>> Is there some reason that I cannot specify both a password and enable when
<br>> using clogin?<br>> My idea is to use a web page to pass the username, password, and enable to<br>> clogin and collect the data from the commands, primarily to automate getting<br>> show tech and show log info.
<br>> Everything works if I remove either the enable or the password option. Is<br>> this the expected behavior?<br>><br>> [adudek16@redbaron ~]$ clogin -u test -e twctest -p testing -x rantest<br>> <a href="http://10.82.88.11">
10.82.88.11</a><br>> <a href="http://10.82.88.11">10.82.88.11</a><br>> can't read "passwd": no such variable<br>> while executing<br>> "login $router $ruser $userpswd $passwd $enapasswd $cmethod $cyphertype"
<br>> ("foreach" body line 111)<br>> invoked from within<br>> "foreach router [lrange $argv $i end] {<br>> set router [string tolower $router]<br>> send_user "$router\n"
<br>><br>> # Figure out prompt.<br>> # Since autoena..."<br>> (file "/usr/sbin/clogin" line 616)<br><br>A bug; please try this patch.<br><br>Index: <a href="http://clogin.in">clogin.in</a>
<br>===================================================================<br>RCS file: /home/rancid/.CVS/rancid/bin/clogin.in,v<br>retrieving revision 1.106<br>diff -d -u -r1.106 <a href="http://clogin.in">clogin.in</a><br>
--- <a href="http://clogin.in">clogin.in</a> 6 Dec 2006 02:12:31 -0000 1.106<br>+++ <a href="http://clogin.in">clogin.in</a> 6 Dec 2006 21:15:30 -0000<br>@@ -754,6 +754,9 @@<br> }<br> set passwd [join [lindex $pswd 0] ""]
<br> set enapasswd [join [lindex $pswd 1] ""]<br>+ } else {<br>+ set passwd $userpasswd<br>+ set enapasswd $enapasswd<br> }<br><br> # Figure out username<br><br></blockquote></div><br>