--- rancid-2.3.2a6.orig/bin/nsrancid.in 2006-10-05 06:27:43.000000000 +0200 +++ rancid-2.3.2a6/bin/nsrancid.in 2008-10-30 02:43:09.000000000 +0100 @@ -45,8 +45,9 @@ my(@commandtable, %commands, @commands); my(%filter_pwds); # password filtering mode @temp1 = split (/\./,$host); -$prompt = "$temp1[0]#"; -$prompt = "netscaler#"; +#$prompt = "$temp1[0]#"; +#$prompt = "netscaler#"; +$prompt = "\>"; # This routine is used to print out the router configuration sub ProcessHistory { @@ -211,8 +212,7 @@ sub DoNothing {print STDOUT;} # Main @commandtable = ( - {'cat /etc/ns.conf' => 'ShowConfig'}, - {'get log setting' => 'GetLogSet'} + {'show ns ns.conf' => 'ShowConfig'} ); # Use an array to preserve the order of the commands and a hash for mapping # commands to the subroutine and track commands that have been completed. @@ -283,7 +283,7 @@ TOP: while() { $clean_run=0; last; } - while (/#\s*($cmds_regexp)\s*$/) { + while (/$prompt\s*($cmds_regexp)\s*$/) { $cmd = $1; print STDERR ("HIT COMMAND:$_") if ($debug); if (! defined($commands{$cmd})) {