From: bjork@telebit.com (Steven Bjork)
Subject: Re: uucp over tcp/ip
Keywords: uucp tcp/ip internet NetBlazer
Organization: Telebit Corporation; Sunnyvale, CA, USA
Date: Thu, 15 Oct 1992 18:47:18 GMT

In article <193@zurich.spectrospin.ch>
 dem@zurich.spectrospin.ch (Marco A.Demarmels) writes:

[stuff deleted]


>(BTW: Sun 4/280, SunOS 4.1.1, Internet Gateway: NetBlazer)

Here's an application note describing how to uucp thru the
NetBlazer to an ether host.

--Steven


Using the NetBlazer with uucp

The NetBlazer supports uucp. This has been tested between
two sunos 4.1.1 hosts.  For more explanation
of the uucp system, get a copy of the O'Reilly and Associates book,
"Managing UUCP and Usenet," by Tim O'Reilly and Grace Todino.

Configuration:
One sun has a modem on ttya (gaudi). This modem should be configured
for hardware handshake. You should not enable the uucp "spoof" mode
of a Telebit modem! The NetBlazer would fail to operate properly
if the remote modem tried to negotiate the uucp spoof mode.

The other sun is on the TCP/IP network along
with the NetBlazer. The sun with modem calls into the NetBlazer
and from there telnets to the other sun (wimbel). Follows is the Systems
file entry from gaudi.

wimbel Any ACU 9600 5551212
in:--in: unb word: nbuucp
op> te\s-b\s143.191.9.161 "" P_ZERO gin: Unb\n\c sword: nbuucp\n\c

Note that this has been split into three lines for annotation.
It must be all on one line in the actual Systems file on the host.

This entry has several tricky things to it. The first line above is 
standard, it simply identifies the host, device, baud, and phone number.

The second line starts the "chat" sequence. This is where you login
to the NetBlazer.

The third line has the NetBlazer:Top> prompt. From here we need
to issue a command line with embedded blanks. Blanks are sent by
embedding the sequence "\s" where a blank is needed in the outgoing
string. The command we need to send is the sequence
"te -b 143.191.9.161," the ip address of the host wimbel.
We need to use binary telnet so that the uucp will work.
Without the -b flag, you will be able to login, but then uucp
fails to start correctly.

Once we have the wimbel "login:" prompt, we need to get parity
into the "none" state on the gaudi (transmitting) sun. This is done
with an empty expect sequence. This is the double double quote string
("") in the third line. Next is the command to the uucp software
to disable parity, this is the P_ZERO sequence. Ok, parity is
now disabled, we need to get the username and password entered.
The sunos 4.1.1 needs to have lines terminated with a linefeed
when you use binary telnet. This is accomplished in our script
by the \n\c sequence. This says to send a linefeed, and no
carriage return, at the end of our username and password.

The above example is extremely specific to sunos 4.1.1 uucp.
Other host uucp/tcp software may exhibit different bugs or
require slightly different parameters at login time. 

Note also that the uucp "spoofing" mode of the Telebit modems
is explicitly *not* used. This is due to the NetBlazer not
having the uucp software that the Telebit modem would expect at
the end of the serial cable. 
Newsgroups: comp.sys.sun.admin