The easiest way to deal with this would probably be to change the name of the firewall to include a #, which might work. I'm not sure if it will let you, but its worth trying. You could make it iub-machine-room#1 or something. Not the most elegant way to deal with it, but it might work.
<br><br>Chris Stave<br>CNS, Drew University<br><br><div><span class="gmail_quote">On 8/4/06, <b class="gmail_sendername">Chris Gallardo</b> <<a href="mailto:wcgallar@iupui.edu">wcgallar@iupui.edu</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;">
I have a netscreen firewall that is already in enable mode when you login. However the prompt does not contain '#' sowhen I try nlogin it returns this error<br><br><br>iub-machine-room:bfw1(M)-> can't read "enable": no such variable
<br> while executing<br>"if { $enable } {<br> if {[do_enable $enauser $enapasswd]} {<br> if { $do_command || $do_script } {<br> close; wait<br> continue<br> }
<br> }<br> }"<br> ("foreach" body line 66)<br> invoked from within<br>"foreach firewall [lrange $argv $i end] {<br> set firewall [string tolower $firewall]<br> send_user "$firewall\n"
<br><br> set prompt ">"<br><br> # Figure out..."<br> (file "/usr/bin/nlogin" line 423)<br><br><br>i tried setting autoenable to 1 in .cloginrc but did nothing to solve the error above. I believe the script still checks the command prompt for the '#' even if autoenable is turned on.
<br><br>any suggestions would be greatly appreciated.<br><br><br><br><br>--<br>--<br><br>Chris Gallardo<br>Network Services<br>278-9067<br><br>_______________________________________________<br>Rancid-discuss mailing list
<br><a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br><a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a>
<br></blockquote></div><br>