From: patrick@casbs.Stanford.EDU (Patrick Goebel)
Subject: Help! CAP & Native Phase II ethernet
Organization: Center for Advanced Study in the Behavioral Sciences
Distribution: comp
Date: Tue, 6 Oct 1992 21:42:54 GMT

I am trying to run CAP for the first time and am having problems
(surprise!). If anyone can help me out, I'd be most grateful.  It
would be ideal if you could send me configuration files that have
worked for you.  Many thanks in advance for any pointers!

(P.S. Is there a good reference for CAP in addition to the README's
shipped with the distribution?)

SETUP

* Sun 4/330 (SPARC) running SunOS 4.1.1 (casbs.Stanford.EDU, IP
  36.30.0.10, netmask 255.255.0.0)
* Mac SE/30 running System 7 with Sonic Systems ethernet card and
  Phase II ethernet driver
* CAP60, patch level 27, configured for native phase II ethernet

NOTE

There is no localtalk hardware in this picture.  Only ethernet.

GOAL

To mount a directory from the Sun as an Apple volume on the Mac.

PROBLEM

After running the start-cap-servers script, I attempt to mount a
volume on the Mac.  First, I select EtherTalk phase II as the network
type.  Then I select AppleShare from the chooser.  The Sun ("casbs")
shows up in the list of possible servers.  However, when I try to mount
it (by double-clicking its name) I get the error:  

"An AppleShare system error has occurred
(The server is not responding.)"


DIAGNOSTICS

When I run the start-cap-servers script, I get the following messages:

casbs# [/usr/local/lib/cap ] start-cap-servers
abInit: [ddp: 255.00, 10], [GW: 255.00, 10] starting
13:14:27 10/06/92  Reply num max for lkup reply is 5 (based on 104)
Apple Unix File Server (casbs:AFPServer@*) starting
casbs# [/usr/local/lib/cap ]

(I have no idea if this is what I am supposed to see.)

Also, running the `atistest' program yields the output:

casbs# [/usr/local/cap ] atistest
CAP distribution 6.00 using EtherTalk encapsulation, January 1991
Copyright (c) 1986,1987,1988 by The Trustees of Columbia University in the City of New York

abInit: [ddp: 255.00, 10], [GW: 255.00, 10] starting
debugging NBP
Registering "atis test:testing@*"
NBP SndNBP: sending
NBP nbp_timeout: 4 tick timeout on -134219876, 3 remain
NBP SndNBP: sending
NBP nbp_timeout: 4 tick timeout on -134219876, 2 remain
NBP SndNBP: sending
NBP nbp_timeout: 4 tick timeout on -134219876, 1 remain
NBP SndNBP: sending
NBP nbp_timeout: 4 tick timeout on -134219876, 0 remain
NBP SndNBP: sending
NBP nbp_timeout: 4 tick timeout on -134219876, 3 remain
NBP SndNBP: sending
NBP nbp_timeout: 4 tick timeout on -134219876, 2 remain
NBP SndNBP: sending
NBP nbp_timeout: 4 tick timeout on -134219876, 1 remain
NBP SndNBP: sending
NBP nbp_timeout: 4 tick timeout on -134219876, 0 remain
nbp register error because: couldn't reregister name - is atis running?

casbs# [/usr/local/cap ] ps -aux | fgrep atis 
root     28910  0.0  0.7  144  232 p7 S    13:32   0:00 fgrep atis
root     28657  0.0  0.3   96   88 ?  I    13:14   0:00 /usr/local/cap/atis
casbs# [/usr/local/cap ] 


CONFIGURATION FILES

The contents of various critical files are as follows:

ATALK.LOCAL

% cat /etc/altalk.local

# mynet mynode myzone 
30.1 10 CASBS
# bridgenet bridgenode bridgeIP
30.1 10 36.30.0.10

START-CAP-SERVERS

% cat /usr/local/lib/cap/start-cap-servers

#!/bin/sh

### CAP start servers file for CASBS
### start from /etc/rc.local

LOGd=/var/tmp
#LOGf=/dev/null
LOGf=${LOGd}/testing.aufs
CAP=/usr/local/cap
LIB=/usr/local/lib/cap

LWARGS="-a ${LIB}/procsets -f ${LIB}/LW+Fonts"

#
# Start UAB first if used
#
# /usr/local/cap/uab
# sleep 10

#
# Otherwise start aarpd first for Native EtherTalk
#
${CAP}/aarpd le0 CASBS

#
# allow atis to startup before other CAP programs
#
${CAP}/atis

#
# Make this 15 seconds if using aarpd
#
sleep 15

#${CAP}/snitch -S -f "SUN 4 SunOS 4.1.1 UNIX" -l lwsrv
${CAP}/aufs -U 20 -V ${LIB}/afpvols -l ${LOGf} -n `hostname`
#${CAP}/lwsrv -n "Technical Services Spool" -p lw.tsa ${LWARGS}

AFPVOLS

% cat /usr/local/lib/cap/afpvols

# Format:
# path:volume name[:password][:]
#
/macstuff:Test CAP Volume::


ETALK.LOCAL

% cat /etc/etalk.local

#
# EtherTalk dynamic configuration data
#
# Last update:  Tue Oct  6 13:14:11 1992
#
# Generated by native EtherTalk (Phase 2)
#
interface       "le0"
netRangeStart    0.00
netRangeEnd     255.254
thisNet         255.00
thisNode        10
thisZone        "CASBS"
bridgeNet       30.01
bridgeNode      10
bridgeIP        127.0.0.1
nisNet          255.00
nisNode         10
asyncNet         0.00
asyncZone       ""

Newsgroups: comp.protocols.appletalk