cu and uucp lock during login

cu and uucp lock during login

Post by stev » Thu, 09 Apr 1992 07:46:13



I have developed an annoying(to say the least) problem with modem communication.When I call out, at the point I should be getting a login prompt the
process freezes.  Here is the output of cu:

119 denali:/tmp% cu -d paul
conn(paul)
Device Type ACU wanted
mlock ttyf3 succeeded
filelock: ok
fixline(5, 2400)
processdev: calling setdevcfg(cu, ACU)
gdial(hayes24) called
expect: ("")
got it
sendthem (PAUSE
<NO CR>????????)
expect: (OK)
ATe1q0&d3s2=128L0^M^M^JOKgot it
sendthem (<NO CR>????????)
expect: (CONNECT)
^M^Jatdt(num. goes here)^M^M^JCONNECTgot it
getto ret 5
device status for fd=5
F_GETFL=2,iflag=`12045',oflag=`0',cflag=`2273',lflag=`0',line=`1'
cc[0]=`177',[1]=`34' , [2]=`10' , [3]=`25' , [4]=`1' , [5]=`0' , [6]=`0' , [7]=`0' ,
call _mode(1)
Connected
_receive started
 2400

paul logintransmit started
~[denali].
call tilda(.)
call _quit(0)
call _bye(0)

Disconnected
call cleanup(0)
call _mode(0)

Trying uucico in debug mode, I get:
120 denali:/tmp% /usr/lib/uucp/uucico -r1 -x4 -spaul >& paul

mchFind called (paul)
name (paul) not found; return FAIL
conn(paul)
Device Type ACU wanted
mlock ttyf3 succeeded
processdev: calling setdevcfg(uucico, ACU)
gdial(hayes24) called
expect: ("")
got it
sendthem (PAUSE
<NO CR>????????)
expect: (OK)
ATe1q0&d3s2=128L0^M^M^JOKgot it
sendthem (<NO CR>????????)
expect: (CONNECT)
^M^Jatdt(num. here)^M^M^JCONNECTgot it
getto ret 6
expect: ("")
got it
sendthem (DELAY
????????)
expect: (ogin:)

expect: (ogin:)
Call Failed: LOGIN FAILED
exit code 101
Conversation Complete: Status FAILED

What's wrong?  Any help will be greatly appreciated.

Cheers,

 
 
 

cu and uucp lock during login

Post by ~16DM30100~Ed Marczak~~xxx~xxxxxx » Fri, 10 Apr 1992 05:55:30



>    I have developed an annoying(to say the least) problem with modem communication.When I call out, at the point I should be getting a login prompt the
>    process freezes.  Here is the output of cu:

STUFF DELETED...
        >expect: (ogin:)

        >expect: (ogin:)
        >Call Failed: LOGIN FAILED
        >exit code 101
        >Conversation Complete: Status FAILED

        One place to look is the gettydefs file on your target
        system. Your host is looking for (ogin:) out of your
        Systems file. If the target system describes the incoming
        getty (tty)  differently, ie never echos "login:" string,
        your cu could hang. Or I could be completely wrong.

                Later ... ed

 
 
 

cu and uucp lock during login

Post by Norman Bernste » Fri, 10 Apr 1992 20:21:49




>>        I have developed an annoying(to say the least) problem with modem communication.When I call out, at the point I should be getting a login prompt the
>>        process freezes.  Here is the output of cu:

>STUFF DELETED...
>    >expect: (ogin:)

>    >expect: (ogin:)
>    >Call Failed: LOGIN FAILED
>    >exit code 101
>    >Conversation Complete: Status FAILED

>    One place to look is the gettydefs file on your target
>    system. Your host is looking for (ogin:) out of your
>    Systems file. If the target system describes the incoming
>    getty (tty)  differently, ie never echos "login:" string,
>    your cu could hang. Or I could be completely wrong.
>            Later ... ed

Ed is wrong.  The System file "chat script" is used for uucico
connections.  When you use the cu command, the "chat script" is not
used . . . the caller gets the login prompt and must respond.  An
example of use of the the chat script would be to execute:

        /usr/lib/uucp/Uutry -r machine_name

With this you can watch the chat script.

 
 
 

cu and uucp lock during login

Post by David Brenem » Sun, 12 Apr 1992 07:35:50



>I have developed an annoying(to say the least) problem with modem communication.When I call out, at the point I should be getting a login prompt the
>process freezes.  Here is the output of cu:

Most of log deleted...

>expect: (CONNECT)
>^M^Jatdt(num. here)^M^M^JCONNECTgot it
>getto ret 6
>expect: ("")
>got it
>sendthem (DELAY
>????????)
>expect: (ogin:)

>expect: (ogin:)
>Call Failed: LOGIN FAILED
>exit code 101
>Conversation Complete: Status FAILED

>What's wrong?  Any help will be greatly appreciated.

>Cheers,


Well, your chat script is waiting for "ogin:" to come back from the
other machine, and it looks like it's not getting it.  Neither of the
examples you showed had the ":" on the end, and this one shows your
machine sending something before the one you're calling (paul) even gets
done spawning its getty.  cu that machine and make sure its actually
sending  "paul login:" and not "paul login".  They've customized their
/etc/gettydef file, so they may have a typo in it :-).  If its only
echoing "login", take the colon out of your Systems chat script so it
has "ogin--ogin" instead.  If paul *is* echoing "login:", ad some
"\r\d\r\d"'s before the "ogin:--ogin:" in the chat script.  This
will send a few carriage returns and pauses to give the machine you
are calling a chance to get its act together and get a getty really
going before your machine tries to log in to it.  Hope this helps.

--
David Breneman     Sys Admin, Tacoma*Products, Inc. |  ____  ____  ____

 ..!uunet!stephsf!tacoma!dcb |"Stainless steel bolts are  |  /   ____/ /
CompuServe: 75760,1232       | ferrous but non-magnetic!" |

 
 
 

cu and uucp lock during login

Post by David Brenem » Mon, 13 Apr 1992 02:59:40




>>STUFF DELETED...
>>        >expect: (ogin:)

>>        >expect: (ogin:)
>>        >Call Failed: LOGIN FAILED
>>        >exit code 101
>>        >Conversation Complete: Status FAILED

>>        One place to look is the gettydefs file on your target
>>        system. Your host is looking for (ogin:) out of your
>>        Systems file. If the target system describes the incoming
>>        getty (tty)  differently, ie never echos "login:" string,
>>        your cu could hang. Or I could be completely wrong.

>>                Later ... ed

>Ed is wrong.  The System file "chat script" is used for uucico
>connections.  When you use the cu command, the "chat script" is not
>used . . . the caller gets the login prompt and must respond.  An
>example of use of the the chat script would be to execute:

>    /usr/lib/uucp/Uutry -r machine_name

>With this you can watch the chat script.

The examples the original poster gave were the output from Uutry.
"expect: (ogin:)" and "Call Failed: LOGIN FAILED" do not show up on
any of our systems during the use of a "cu" :-) . I emailed a response
similar to Ed's to the original poster, assuming his citing of the
"cu" command was a typo.  If this isn't the case, maybe he could
post a followup clarifying the situation...

--
David Breneman     Sys Admin, Tacoma*Products, Inc. |  ____  ____  ____

 ..!uunet!stephsf!tacoma!dcb |"Stainless steel bolts are  |  /   ____/ /
CompuServe: 75760,1232       | ferrous but non-magnetic!" |

 
 
 

cu and uucp lock during login

Post by ~16DM30100~Ed Marczak~~xxx~xxxxxx » Thu, 16 Apr 1992 01:53:06




        >>>
        >>>>STUFF DELETED...
        >>>    >expect: (ogin:)

        >>>    >expect: (ogin:)
        >>>    >Call Failed: LOGIN FAILED
        >>>    >exit code 101
        >>>    >Conversation Complete: Status FAILED
        >>>    
        >>>    One place to look is the gettydefs file on your target
        >>>    system. Your host is looking for (ogin:) out of your
        >>>    Systems file. If the target system describes the incoming
        >>>    getty (tty)  differently, ie never echos "login:" string,
        >>>    your cu could hang. Or I could be completely wrong.
        >>
        >>>            Later ... ed
        >>
        >>Ed is wrong.  The System file "chat script" is used for uucico
        >>connections.  When you use the cu command, the "chat script" is not
        >>used . . . the caller gets the login prompt and must respond.  An
        >>example of use of the the chat script would be to execute:
        >>
        >>        /usr/lib/uucp/Uutry -r machine_name
        >>
        >>With this you can watch the chat script.

        >The examples the original poster gave were the output from Uutry.
        >"expect: (ogin:)" and "Call Failed: LOGIN FAILED" do not show up on
        >any of our systems during the use of a "cu" :-) . I emailed a response
        >similar to Ed's to the original poster, assuming his citing of the
        >"cu" command was a typo.  If this isn't the case, maybe he could
        >post a followup clarifying the situation...

        Sorry all, my "cu" was a typo. sometimes my mind does not
        communicate directly with my fingers, replace "uutry" for "cu"

                Tanks ... ed

 
 
 

1. cu and uucp lock during login (still)

This is a follow-up to an earlier posting.  The problem is with modem
connections, including cu (repeat, cu), uucp, and even kermit.  The modem
will connect but the login prompt will not appear, be truncated, or
be complete, but there is no response to my keystrokes.  Here is the
output of "cu -d thor"

cu -d thor
conn(thor)
Device Type ACU wanted
mlock ttyf3 succeeded
filelock: ok
fixline(5, 2400)
processdev: calling setdevcfg(cu, ACU)
gdial(hayes24) called
expect: ("")
got it
sendthem (PAUSE
<NO CR>????????)
expect: (OK)
ATe1q0&d3s2=128L0^M^M^JOKgot it
sendthem (<NO CR>????????)
expect: (CONNECT)
^M^Jatdt(num. here)^M^M^JCONNECTgot it
getto ret 5
device status for fd=5
F_GETFL=2,iflag=`12045',oflag=`0',cflag=`2273',lflag=`0',line=`1'
cc[0]=`177',[1]=`34' , [2]=`10' , [3]=`25' , [4]=`1' , [5]=`0' , [6]=`0' , [7]=`0' ,
call _mode(1)
Connected
_receive started
 2400

thor login:transmit started
~[denali].
call tilda(.)
call _quit(0)
call _bye(0)

Disconnected
call cleanup(0)
call _mode(0)
12 denali:/usr/people/steve%

Here is the relevant line from thor's gettydefs:
du_2400# B2400 # B2400 SANE TAB3 HUPCL #\r\n\n$HOSTNAME login: #du_1200

And the inittab entry:
t1:23:respawn:/usr/lib/uucp/uugetty -r -d 8 ttyf1 du_2400# modem

Sometimes the "transmit started" message begins midway through the prompt,
ie. "thor lotransmit started", or I none of the prompt at all.

For those suspecting my chat script(which I don't think matters), here is
the entry from my Systems file:
thor    Any ACU   2400 (num. here) "" \d\r ogin:-\r-ogin: nuucp ssword secret

I am using a Hayes Ultra 9600 Smart Modem, the other side has a Hayes
2400 Smart Modem.  We both are on SGI boxes, mine at 4.0.1 and his at
3.3.2.  The problem existed before I updated my end.

Any help will be much appreciated, and thanks to the people who have
already made suggestions.


------------------------------------------------------------------------------
        Steven Rice
        CAD MicroSystems
        voice: 213/291-2000, ext. 14

------------------------------------------------------------------------------

2. Calculators for Linux

3. UUCP's CU keeps returning a DEVICE LOCKED for new modem...

4. Anyone try XAnim with Linux?

5. System locks up during login

6. 1024x768 in IBM TP 560

7. Non-blocking lock requests during the grace period ===> unlock during grace period?

8. Disabled lady needs Linux Corel

9. uucp cu direct

10. CU and UUCP fail going from Solaris x86 to Linux

11. cu, uucp help please!!!

12. Taylor's UUCP - CU pr., Follow-up question ???

13. V4.3.2 UUCP (cu) Problem