Previous PageNext Page

Chapter 3 - StreetTalk

Introduction

stanly, the StreetTalk database analysis utility
stclient, the StreetTalk client API test utility

/disk1/banyan/st

Figure 3-1. /disk1/banyan/st Directory Tree

Troubleshooting StreetTalk

st, the StreetTalk executable
Log files such as ST0.log, ST1.log, and svclog2
SvcLogs

DMSTFile, the master StreetTalk data file
STGRP.*, the StreetTalk group databases
STHeardfrom, a database of services that the server knows about

Log Files

goodbad

cp STGRP.n save

goodbad save

dorebuild

dorebuild STGRP.n

Banyan> dorebuild STGRP.1

Attempting database rebuild of file 'STGRP.1'. Fri May 27 14:48:08 EDT 1994

Re-building old file STGRP.1 into new file REBUILD.973

Checking new file REBUILD.973

File Checks OK

Done

Rebuild completed on 'STGRP.1'. Fri May 27 14:48:09 EDT 1994

Rebuilding StreetTalk Data from Tape Backup

Caution: Always create a temporary directory to receive the files from the backup. Do not copy files from tape to the root partition of your server. Doing this could fill the root partition of your hard disk and could result in a server crash. The examples in this section use the directory /disk1/banyan/tmp.

To Rebuild StreetTalk Databases from Tape

1. Shut down the server. Be sure that the StreetTalk service is stopped.

2. Log in to UNIX on your Banyan server.

3. Create a temporary directory on one of the /diskn partitions:

mkdir /disk1/banyan/tmp

4. Change directory to the tmp directory:

cd /disk1/banyan/tmp

5. Install the first tape of your most recent backup into the appropriate drive.

6. If your server is an Intel-based computer, enter the following command:

tbantape -lf 1 st

stclient

Caution: The stclient utility was developed by Banyan engineers to diagnose problems with the StreetTalk APIs during new product development and testing. This is not a polished piece of end-user software. It directly modifies StreetTalk database files and operating parameters, and should be used with extreme care by trained personnel.

To run stclient

1. Log in to UNIX on the Banyan server and change directory to /disk1/banyan/st.

2. Enter this command at the UNIX prompt:

stclient

This prompt appears:

VINES Name:

3. Enter your StreetTalk name at the prompt. This prompt appears:

VINES Password:

4. Enter your password.

5. Enter ? to display the StreetTalk Interface menu, shown in Figure 3-2.

Figure 3-2. stclient Menu Screen

Note: You cannot add a StreetTalk item with an unspecified class on a version 6.xx Banyan server.

Choose Option (? for option list): b

Beautify Org [o], Group [g], or Item [i]? i

Class Types (or newline):

[u] User

[s] Service

[l] List

[n] Nickname

[g] Group

Unspecified Class

Choose Class: u

Name: ralph branca@finance@wctus

Nice Name is: Ralph Branca@Finance@WCTUS

1. At the StreetTalk Interface menu, enter c. This prompt appears:

Server Name:

2. Enter the name of the server whose IPC port you wish to see. Information appears similar to the following:

Server Name = Server1

Port = 0 3 0 2a d0 6e 0 1 0 f 0 0 0 0 0 0

1. At the stclient main menu, enter d. This prompt appears:

Group Name:

2. Enter the name of the StreetTalk group you wish to create. This prompt appears:

Target server name:

3. Enter the name of the server on which this group should be maintained. This prompt appears:

You are the admin of what group?

4. Enter the name of a groups for which you are an administrator. Your name must appear on the StreetTalk list AdminList@groupname@orgname.

1. At the StreetTalk Interface menu, enter e. This prompt appears:

List Orgs [o], Groups [g], or Items [i]?

2. Enter either o, g, or i. This prompt appears:

Pattern:

3. Enter an alphanumeric pattern, such as *@finance@wctus. (Asterisks and question marks are legal wildcard characters.) If you chose to list items in step 2, enter a three-part StreetTalk name. If you chose to list groups, enter a two-part StreetTalk name. If you chose to list organizations, enter a one-part name. This menu appears:

Class Types (or newline):

[u] User

[s] Service

[l] List

[n] Nickname

[g] Group

<CR> Unspecified Class

Choose Class:

4. Enter the class of the objects that you want to list. For example, if you want to list services, enter s. The list of StreetTalk objects appears.

Figure 3-3. Stclient Enumerate Test

Example Fixing a Duplicate Group Problem

Figure 3-4. Two Networks

1. Server Z is taken off Network A for a week.

2. On Friday of that week, a temporary link is established between Server X and a server in Network A. This allows an exchange of StreetTalk information between the two networks. As a result, the Servers in Network A now recognize Server X as the owner of the group Finance@Headquarters.

Note: This section discusses duplicate entries in network A. The administrator of network B must perform the same steps described here to clean up the StreetTalk database in that network.

1. Check to make sure that Server X is not connected to the network.

2. Run stclient from a server in Network A other than Server Z.

3. Choose F from the StreetTalk Interface menu. This causes all servers in Network A to erase any information they have on Finance@Headquarters.

4. Create and delete a group on Server Z. This causes a rebroadcast of all the groups maintained on that server. The other servers in Network A now recognize Server Z as the owner of Finance@Headquarters.

Choose Option (? for option list): g

List Name: testlist@finance@wctus

1: Bob Hayes@admin@wctus

2: BusinessList@finance@wctus

1. At the StreetTalk Interface menu, enter j. This prompt appears:

Old Object Name:

2. Enter the name of an object to rename. This prompt appears:

Class Types (or newline):

[u] User

[s] Service

[l] List

[n] Nickname

[g] Group

<CR> Unspecified Class

Choose Class:

3. Enter the class that corresponds to the StreetTalk object you entered in step 2. This prompt appears:

New Object Name:

4. Enter the new name of the object. If the rename is successful, then the system prints information in this format:

Object "Glen Levit@finance@wctus" renamed to "Glen Levit@Sales@wctus"

Table 3-1. stclient Lookup Object Output

...to List name - StreetTalk list name

Name of Destination Server - Where the group will now reside

You cannot move shadow groups with this option.

Service Name - Enter the name of the StreetTalk service whose ports you want to examine.

Port Entry #: - Enter a number from 0 to 4. Port zero is the NetRPC port of the service.

1. At the StreetTalk Interface menu, enter p. This prompt appears:

Target Object Name:

2. Enter the name of the user whose password you want to change. This menu appears:

Class Types (or newline):

[u] User

[s] Service

[l] List

[n] Nickname

[g] Group

<CR> Unspecified Class

Choose Class:

3. Enter u. This prompt appears:

Enter Password:

4. Enter the password that you want to establish for the user. The system changes the password and displays the following message:

Password now in effect.

Note: You do not need to know the user's original password to change the password through this menu option.

Summary - Every three hours, StreetTalk broadcasts a list of server IDs that it knows about. This allows other StreetTalk services to learn about servers of which they have no knowledge.

Detail - Every three hours, StreetTalk sends information about all of the StreetTalk groups that the local StreetTalk is responsible for maintaining.

Welcome - When a server receives information about a server it does not know about, it sends a welcome to that server.

1. At the StreetTalk interface menu, enter r. This prompt appears:

Name:

2. Enter the name of an object to remove from the StreetTalk database. This prompt appears:

Class Types (or newline):

[u] User

[s] Service

[l] List

[n] Nickname

[g] Group

<CR> Unspecified Class

Choose Class:

3. Enter the type of object that corresponds to the name entered in step 2. This prompt appears:

Associated Record # (or newline):

4. Press Enter. The item is deleted from the StreetTalk database.

Candidate name: - The name whose membership you wish to test.

List name: - The StreetTalk list to examine for the candidate name.

Closure search? [y or newline] - If you answer y, all nicknames and nested lists are resolved down to their original StreetTalk names.

Figure 3-5. stclient Statistics Menu

Page 0

Figure 3-6. General Service Information Screen

Note: Having counters on can slow system performance. The default is OFF.

Page 1

Figure 3-7. Operation Counts Screen

Table 3-2. Functions Listed on the Operation Counts Screen

Page 2

Figure 3-8. Synch Operation Counts

NEED packets request information from a specific server. These packets are sent to any server for which information is incomplete. When a server receives a NEED packet, it sends summary and detail information to the requesting server. MEED packets have a similar purpose for Banyan servers earlier than revision 5.00.
SUMMARY packets contain a list of all the server serial numbers that the local StreetTalk knows about.
DETAIL packets contain information on all StreetTalk groups that the local StreetTalk maintains.
WELCOME packets are sent to any server that boots up on the network.

Page 3

Pages 1000 - 2256

Page 9999

Choose Option (? for option list): T

Current time is Tue Nov 29 09:55:15 1994

1. Select v from the StreetTalk Interface menu. This prompt appears:

Target Object Name:

2. Enter a StreetTalk user name or nickname. This menu appears:

Class Types (or newline):

[u] User

[s] Service

[l] List

[n] Nickname

[g] Group

<CR> Unspecified Class

Choose Class:

3. Enter u or s. Other values are not applicable. This prompt appears:

Password:

4. Enter the password of the user or service. Passwords for Banyan services can be found in the file /disk1/banyan/ss/svc3.db. If the password you enter is valid, information appears on the screen in this format:

Password is valid. Default org is WCTUS, Default domain is eng.

...from List name - StreetTalk list name

1. At the StreetTalk Interface menu, enter X. This prompt appears:

Group Name:

2. Enter the name of the StreetTalk group whose synchronization data you wish to examine.

Figure 3-9. Admin Shadow Group menu

Note: Once you select option 5 or option 6, the only way to redirect requests back to the Master Group location is to start and stop the StreetTalk service.

stanly

Differences Between StreetTalk Revisions

StreetTalk Data Before VINES 5.50.

Example StreetTalk data files on a VINES 4.11 Server

StreetTalk III (VINES 5.50)

To Run stanly

1. Log in to UNIX.

2. Change directory to /disk1/banyan/st.

3. Enter stanly at the UNIX prompt. This prompt appears:

StreetTalk Database Analyzer Rev: 7.00

Choose Selection (`?' for help):

4. Enter ? at the prompt. The stanly main menu appears, as shown in Figure 3-10.

Figure 3-10. stanly Main Menu

--- Header Contents ------------------------------

Len = 4 Flags = 0x1

Major Revision = 1 Minor Revision = 0

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

Key Contents ---- Record Num = 1 --- len key = 68

Class : 5 (GRP) Object Flags: 0x00000001

Category : 0 Last ModTime: Wed Jan 27 17:22:40 1993

Class Flags : 0x00000000 Create Time: Wed Jan 27 17:22:40 1993

Name : @GroupRec

--- Data Record ---- len = 192 ----

Description : Server renamed. Previous name was `Testing@Servers'

Full Group name: `Vermont@Servers'

File header:

File type: 2000, Rev: 554, Maxppi: 1, Piecesize: 568

Checksum: -89, First unused: 737776, First used: 0

Rule table is valid. Machine type is 3.

***************** Item ********************

Offset of item: 1080 (0x438)

Item width: 536 (0x218)

Item Real width: 568

Item Checksum: 8833469 (0x86c9bd)

ITEM NAME: isocor@3rd parties Password:

Class: 200

Ports:

0 3 0 2f 4d 73 0 1 0 f 0 0 0 0 0 0

e 4 0 a1 77 02 0 1 0 f 0 0 0 0 0 0

b 3 0 2a 32 04 0 1 0 f 0 0 0 0 0 0

Databaseid: 0 Changeid: 0 NetGrpid: 687382b0 GrpSeqNum: 106

Group is not local.

Table 3-3. File Header Fields in stanly-m Output

1. Log in to UNIX on the Banyan server, and change directory to the StreetTalk service directory.

cd /disk1/banyan/st

2. Create a directory called temp under /disk1/banyan/st.

mkdir temp

3. Create a set of links in the temp directory to the STGRP files in /disk1/banyan/st.

ln STGRP.* temp

4. Change directory to /disk1/banyan/st/temp.

cd temp

5. Use the following command line to generate a new DMSTFile.

../stanly -t `cat ../../comm/serial'

This command automatically gets the server serial number, which stanly -t uses as an input parameter.

6. Make a backup copy of the generated DMSTFile.

cp DMSTFile DMSTFile.new

7. Confirm that the database was created correctly.

../stanly -m

8. You must now coldstart StreetTalk to re-initialize the database. Generate a COLDSTART file.

cd ..

echo >COLDSTART

9. Use ps -el to get the StreetTalk process id.

ps -el | grep st

The process ID (PID) field is the fourth field from the left, as shown in the following example.

10. Kill StreetTalk to force Server Service to restart StreetTalk and load the new DMSTFile. For st pid, use the StreetTalk process ID.

kill -9 <st pid>

Choose selection (`?' for help): w

Enter datafile number (e.g. 3): 3

----- Header Contents ----------------------------------------

Len = 4 Flags = 0x1

Major Revision = 1 Minor Revision = 0

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

[q] Quit

Previous PageTop Of PageNext Page