When using jlogin with the '-s' option , No further output ?-{

Mr. James W. Laferriere babydr at baby-dragons.com
Tue Apr 8 00:41:41 UTC 2003


	Hello John ,  Thank you for the patch .  Now here is the second
	part of the problem .  See after my .sig .

On Fri, 4 Apr 2003, john heasley wrote:
> Fri, Apr 04, 2003 at 12:11:02PM -0500, Mr. James W. Laferriere:
> > 	Oops ... ,  JimL
> >
> > On Fri, 4 Apr 2003, Mr. James W. Laferriere wrote:
> > > 	Hello Andrew & John ,  Attached is a gzipd tarball of the script
> > > 	that at least gets output to a file .  Thank you .  JimL
> > > ps:	When I get it debugge & claned up I'll ask that the team look at
> > > 	placing it into the utils/ area .
> >
> > > On Thu, 3 Apr 2003, Andrew Partan wrote:
> > > > On Thu, Apr 03, 2003 at 03:06:54PM -0500, Mr. James W. Laferriere wrote:
> > > > > 	Now that I can at last can get output ot appear someplace do
> > > > > 	you have any thoughts on getting output to stdout ?
> > > > Can you send the script?  I can give it a shot on one of my junipers
> > > > & see if I spot anything.
> > > > 	--asp
-- 
       +------------------------------------------------------------------+
       | James   W.   Laferriere | System    Techniques | Give me VMS     |
       | Network        Engineer |     P.O. Box 854     |  Give me Linux  |
       | babydr at baby-dragons.com | Coudersport PA 16915 |   only  on  AXP |
       +------------------------------------------------------------------+
# make the first snapshot of the memory status outside of
# the loop ,  allows us to do a diff on the output ;-)

hostname
spawn ssh -c 3des -x -l user hostname

***Private Property of Adelphia Business Solutions***
*                                                   *
*         UNAUTHORIZED ACCESS IS PROHIBITED         *
*            violators will be prosecuted           *
*         to the fullest extent of the law          *
*                                                   *
*****************************************************
user at hostname's password:
--- JUNOS 5.4R3.2 built 2002-11-07 00:57:02 UTC

user at hostname>

user at hostname> set cli complete-on-space off
Disabling complete-on-space

user at hostname> set cli screen-length 0
Screen length set to 0

hostname

Error: TIMEOUT reached
can't read "in_proc": no such variable
    while executing
"if { $in_proc} {
	            return 1
		} else {
	            continue
		}"
    invoked from within
"expect -re $Tprmpt {
      }"
    (procedure "cycleTcmd_file" line 24)
    invoked from within
"cycleTcmd_file $Tcmd_file $prompt $Tprmpt"
    invoked from within
"expect -nobrace timeout {

	# Debugging
	#send_error "$prompt,  timeout\n"

    send_error "Error: did not receive prompt\n"
    return 1
  } -re {[
..."
    invoked from within
"expect {
  timeout {

	# Debugging
	#send_error "$prompt,  timeout\n"

    send_error "Error: did not receive prompt\n"
    return 1
  }
  -re "\[\r\n..."
    (file "jlogin-s-interact-with-sub-sessions-v1.exp" line 170)
    invoked from within
"source $sfile"
    ("foreach" body line 64)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    set prompt ">"

    # Figure out usernam..."
    (file "/usr/local/rancid/bin/jlogin" line 430)
show system users
 3:28PM  up 2 mins, 1 user, load averages: 0.61, 0.30, 0.12
USER     TTY      FROM                              LOGIN@  IDLE WHAT
user     p0       test-net.122                      3:28PM     - -cli (cl

user at hostname> start shell
%
Error: TIMEOUT reached
can't read "in_proc": no such variable
    while executing
"if { $in_proc} {
	            return 1
		} else {
	            continue
		}"
    invoked from within
"expect -re $Tprmpt {
      }"
    (procedure "cycleTcmd_file" line 24)
    invoked from within
"cycleTcmd_file $Tcmd_file $prompt $Tprmpt"
    invoked from within
"expect -nobrace timeout {

	# Debugging
	#send_error "$prompt,  timeout\n"

    send_error "Error: did not receive prompt\n"
    return 1
  } -re {[
..."
    invoked from within
"expect {
  timeout {

	# Debugging
	#send_error "$prompt,  timeout\n"

    send_error "Error: did not receive prompt\n"
    return 1
  }
  -re "\[\r\n..."
    (file "jlogin-s-interact-with-sub-sessions-v1.exp" line 170)
    invoked from within
"source $sfile"
    ("foreach" body line 64)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    set prompt ">"

    # Figure out usernam..."
    (file "/usr/local/rancid/bin/jlogin" line 430)





More information about the Rancid-discuss mailing list