April System Design

Fusion95 Frequently Asked Questions (FAQ)

Last updated: 30 May 2000


Contents

  1. Wide Area Networks
  2. Password Encryption
  3. Adding additional UNIX Printer Clients
  4. Tuning SCO OpenServer 5 for large Fusion95 systems
  5. F95ADMIN - problem determination and reporting
  6. Smbprtup - printer client - problem determination and reporting
  7. PCserve - file & printer server - problem determination and reporting


Wide Area Networks

Fusion95 can be used in a Wide Area Network, Internet or Intranet environment. The WAN can be private and/or public and consist of any type of link from low-speed dial-up to high-speed leased lines.

The main difference between accessing Fusion95 on a WAN compared to a LAN is the address resolution scheme. In order to access a server via TCP/IP the client needs to be able to resolve the server name into a TCP/IP address.

On a LAN, a broadcast is sent to the NetBIOS name server to resolve a server name to an IP address. This is transparent; it doesn't need to be configured. On a WAN, the broadcast packets are not routed and therefore another method must be used.


Wide Area Networks - Accessing a remote Fusion95 server

Methods to resolve addresses on a WAN depend upon the client software, the following are available in Windows95:

  1. Read the local LMHOSTS file.
  2. Read a remote LMHOSTS file on a central server.
  3. Ask a Windows Name Server (WINS).
  4. Ask a Domain Name Server (DNS).

Note that this section has nothing "specifically" to do with Fusion95; exactly the same rules would apply even if you were connecting to a Windows server.

Use a local LMHOSTS file

The following LMHOSTS file could be used in a client PC to resolve the addresses for a number of remote servers:

   192.0.0.1  RS6000  #PRE
   192.0.0.10 POWERPC #PRE
   192.0.1.11 M88K    #PRE
   192.0.1.12 APRIL   #PRE

Note that on some clients (e.g. NT) you can specifically enable/disable LMHOSTS look-ups using the TCP/IP properties settings.

Use a remote LMHOSTS file

Putting the LMHOSTS file onto a server rather than onto every client, greatly reduces maintenance time. The following LMHOSTS file could be used in a client PC to point to an LMHOSTS on a remote server to be used to resolve addresses:

   192.0.0.1  RS6000  #PRE
   #INCLUDE   \\RS6000\DISK\LMHOSTS

Using the above LMHOSTS file would introduce a single-point-of-failure into your WAN. If the server RS6000 was not operational then it would not be possible for the client PC's to access the WAN; even if the server they wanted to access was operational. In order to provide redundancy, alternate servers can be specified. In the following example, if server RS6000 was not available then the alternate server APRIL would be used to resolve the addresses.

   192.0.0.1  RS6000  #PRE
   192.0.1.12 APRIL   #PRE
   #BEGIN_ALTERNATE
   #INCLUDE   \\RS6000\DISK\LMHOSTS
   #INCLUDE   \\APRIL\DISK\LMHOSTS
   #END_ALTERNATE

Use a WINS

A WINS can be used to resolve addresses. Care must be taken to have multiple WINS so as to not  introduce a single-point-of-failure into your WAN. WINS will only run in a Windows NT server. WINS is only available to Windows95 and Windows NT clients as standard; an upgraded redirector (VREDIR.386) for WfW is available on the Windows NT server CD-ROM.

Use a DNS

A DNS can be used to resolve addresses. Care must be taken to have multiple DNS so as to not  introduce a single-point-of-failure into your WAN. DNS will run in a wide range of machines including Windows, UNIX and AIX.

Use a mixture of the above

It is not necessary to just use one of the methods above; they can be used in combination. For example if all methods are implemented, a Windows NT workstation will resolve names in the following order:

  1. NetBIOS name cache.
  2. Windows Name Server (WINS).
  3. LAN Broadcast.
  4. LMHOSTS file.
  5. HOST file.
  6. Domain Name Server (DNS).

Testing name resolution

The Windows nbtstat command can be used to test name resolution. It can be run twice, first with the -A option and then with the -a option. Both commands should give the same result. If the first command works, but the second doesn't, then name resolution in the Windows PC has not been correctly configured. The following command will obtain the adapter status from the node with the IP address specified...

   NBTSTAT -A 192.0.0.1

Using the -a option together with the server's node name will cause Windows to resolve the name to an IP address and then obtain the adapter status from that node...

   NBTSTAT -a RS6000

Note: the options are case sensitive.

Use the IP address instead of the server's name

In Windows98 and later versions of Windows95 and NT it is possible to specify the IP address instead of the node name when you map a drive. This bypasses the whole name resolution mechanism. Thus...

   NET USE U: \\192.0.0.1\ACCOUNTS

can be used instead of...

   NET USE U: \\RS6000\ACCOUNTS


Wide Area Networks - Printing from Fusion95 to a remote printer

The Fusion95 printer client will first use broadcasts to obtain the IP address of the printer server. If Fusion95 and the printer server do not reside on the same broadcast network (e.g. separated by a WAN), then Fusion95 will not be able to find the printer server using this method. The Fusion95 printer client will then search the DNS and/or the /etc/hosts file to attempt to find a matching name, even checking for all upper or all lower case.

In order to print to a remote printer from the Fusion95 printer client you should add the printer server's name and IP address to the /etc/host file on you Fusion95 UNIX machine or configure the DNS used by UNIX to provide the IP address of the remote printer server.

The "Printer on local LAN" configuration option for the printer client is normally set to yes. It should be set to no if the printer is on a node outside of the current broadcast network (i.e. accessed via a router but not if accessed via a bridge). In this case Fusion95 will not attempt to broadcast to locate the printer but instead go directly to the DNS and/or the /etc/hosts file. This will remove an overhead of 10 seconds.


Wide Area Networks - Configuring ports in a firewall router

If your WAN uses a firewall or router that restricts certain TCP and UDP sockets then you have to make sure that you open the ports required by Microsoft Networking so that a PC client can access the Server.

For Microsoft Networking you should open ports 137, 138 and 139 for both TCP and UDP. These are often defined as follows:

netbios-ns      137/tcp     # NETBIOS Name Service
netbios-ns      137/udp     # NETBIOS Name Service
netbios-dgm     138/tcp     # NETBIOS Datagram Service
netbios-dgm     138/udp     # NETBIOS Datagram Service
netbios-ssn     139/tcp     # NETBIOS Session Service
netbios-ssn     139/udp     # NETBIOS Session Service

Note that this section has nothing "specifically" to do with Fusion95; exactly the same rules would apply even if you were connecting to a Windows server.


Password Encryption

Fusion95 version 4 supports Windows password encryption over the LAN.

The following Microsoft clients have a default configuration that requires the server to support encrypted passwords over the LAN.

Fusion95 version 3 does not support Windows password encryption (it only supports UNIX password encryption) and thus requires plain text passwords to be enabled in these Windows platforms. The next three sections describe how to enable plain text passwords in each of these clients.

Fusion95 version 4 does support Windows password encryption, and thus it is not normally necessary to enable plain text passwords in the above clients. However it may still be desirable to enable plain text passwords if Unix-Level security and UNIX password encryption (by setting secmode=1 in the pcserve.ini file) is to be used instead of Windows password encryption. A better solution is to change to User-Level security (by setting secmode=3 in the pcserve.ini file) and use Fusion95's User Database rather than the /etc/passwd file in which case Windows password encryption is supported.


Password Encryption - Windows NT 4.0 with SP3

Note: this is not normally required for Fusion95 version 4. It is however required for Fusion95 version 3.

Connecting to SMB/CIFS servers (such as Fusion95 and LAN Manager for UNIX) with a plain text password fails after upgrading to Windows NT 4.0 Service Pack 3.

This is because the SMB redirector in Service Pack 3 handles passwords differently than previous versions of Windows NT. Beginning with Service Pack 3, the SMB redirector will not send a plain text password unless you add a registry entry to enable unencrypted passwords.

This applies to both NT Server and NT Workstation.

This will cause an error such as:
SYSTEM ERROR 1240: The account is not authorized to logon from this station

Resolution

To enable plain text passwords, modify the registry in the following way:

WARNING: Make sure you know how to run the registry editor correctly. Using it incorrectly can cause serious problems.

  1. Run Registry Editor (REGEDT32.EXE).
  2. From the HKEY_LOCAL_MACHINE subtree, go to the following key:
    \system\currentcontrolset\services\rdr\parameters
  3. Click Add Value on the Edit menu.
  4. Add the following:
    Value Name: EnablePlainTextPassword
    Data Type: REG_DWORD
    Data: 1
  5. Click OK and then quit Registry Editor.
  6. Shut down and restart Windows.

More Information

For more information see the Microsoft Knowledge Base article: Q166730.

For more information about Window NT, Service Pack 3 and The Registry see the relevant Microsoft documentation.


Password Encryption - Windows95 with VREDIR update (VRDRUPD.EXE)

Note: this is not normally required for Fusion95 version 4. It is however required for Fusion95 version 3.

Connecting to SMB/CIFS servers (such as Fusion95 and LAN Manager for UNIX) with a plain text password fails after upgrading Windows95 with Microsoft's VRDRUPD.EXE update.

This is because the new SMB redirector handles passwords differently. With this update, the SMB redirector will not send a plain text password unless you add a registry entry to enable unencrypted passwords.

Resolution

To enable plain text passwords, modify the registry in the following way:

WARNING: Make sure you know how to run the registry editor correctly. Using it incorrectly can cause serious problems.

  1. Run Registry Editor (REGEDIT.EXE).
  2. From the HKEY_LOCAL_MACHINE subtree, go to the following key:
    /HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/VxD/VNETSUP
  3. From the Edit menu, select:
    New - DWORD
  4. Rename the entry to:
    EnablePlainTextPassword
  5. Set its value to:
    1
  6. Click OK and then quit Registry Editor.
  7. Shut down and restart Windows.


Password Encryption - Windows98

Note: this is not normally required for Fusion95 version 4. It is however required for Fusion95 version 3.

Connecting to SMB/CIFS servers (such as Fusion95 and LAN Manager for UNIX) with a plain text password fails from Windows98.

This is because the SMB redirector, by default, requires passwords to be encrypted. With this version of Windows, the SMB redirector will not send a plain text password unless you add a registry entry to enable unencrypted passwords.

Resolution

To enable plain text passwords, modify the registry in the following way:

WARNING: Make sure you know how to run the registry editor correctly. Using it incorrectly can cause serious problems.

  1. Run Registry Editor (REGEDIT.EXE).
  2. From the HKEY_LOCAL_MACHINE subtree, go to the following key:
    /HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/VxD/VNETSUP
  3. From the Edit menu, select:
    New - DWORD
  4. Rename the entry to:
    EnablePlainTextPassword
  5. Set its value to:
    1
  6. Click OK and then quit Registry Editor.
  7. Shut down and restart Windows.


Password Encryption - Windows 2000

Note: this is not normally required for Fusion95 version 4.

Connecting to SMB/CIFS servers (such as Fusion95 and LAN Manager for UNIX) with a plain text password fails from Windows 2000.

This is because the SMB redirector, by default, requires passwords to be encrypted. With this version of Windows, the SMB redirector will not send a plain text password unless you add a registry entry to enable unencrypted passwords.

Resolution

To enable plain text passwords, modify the registry in the following way:

WARNING: Make sure you know how to run the registry editor correctly. Using it incorrectly can cause serious problems.

  1. Run Registry Editor (REGEDIT.EXE).
  2. From the HKEY_LOCAL_MACHINE subtree, go to the following key:
    /HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/LanmanWorkStation/Parameters
  3. From the Edit menu, select:
    New - DWORD
  4. Rename the entry to:
    EnablePlainTextPassword
  5. Set its value to:
    1
  6. Click OK and then quit Registry Editor.
  7. Shut down and restart Windows.


Adding additional UNIX Printer Clients

When Fusion95 is installed it will automatically configure 8 printer clients called lprt00 through lprt07. The following procedure can be used to configure additional printer clients lprt08 and upwards.

Start-up Script

The start-up script (/usr/fusion95/f95start) must be modified to start the correct number of printer daemons. Change one line of the script as follows:

SMBP=0
while [ $SMBP != 8 ]
do

The while loop is processed once for each printer. Change the number to the new number of printer clients to be supported:

SMBP=0
while [ $SMBP != 9 ]
do

This will now loop and create 9 printer clients.

Create an lp model

An 'lp' model must be created for each printer. This should be created in the /usr/fusion95 catalog by copying the script for lprt00.

# cd /usr/fusion95
# cp lprt00 lprt08

Create an lp printer

An 'lp' entry must be created for each printer. This is platform dependant.

AIX 4 and AIX 3.2.5

# mkque -qlprt08 -a"up = TRUE"
# mkquedev -qlprt08 -dlprt08 -a"file = FALSE" -a"backend =/bin/sh /usr/fusion95/lprt08"

SCO Open Server 5 and SCO 3.2 and M88K 3.2

# /usr/lib/lpadmin -plprt08 -mfusion95 -D"Fusion95 SMB printer client 08" -onobanner -v/dev/null -h
# enable lprt08
# accept lprt08

SCO Unixware 7

Note that while not required, the lpadmin -A option might be useful (e.g. -A mail). This controls Alerts when printing problems occur. See the Unixware lpadmin(1M) manual page for more details.

# mknod /dev/lprt08 p
# /usr/sbin/lpadmin -plprt08 -mstandard -D"Fusion95 SMB printer client 08" -onobanner -o"stty='clocal -onlcr'" -v/dev/lprt08
# /usr/bin/enable lprt08
# /usr/lib/accept lprt08
# rm /dev/lprt08

Generic UNIX System V Release 4

# /usr/sbin/lpadmin -plprt08 -mfusion95 -D"Fusion95 SMB printer client 08" -onobanner -v/dev/null -h
# enable lprt08
# accept lprt08

Digital UNIX (DEC OSF/1)

# mkdir /usr/spool/lpd/lprt08
# echo "lprt08|LPRT08| :\
:af=/usr/adm/lpacct:\
:lf=/usr/adm/lperr:\
:lp=/dev/null:\
:mx#0:\
:if=/usr/fusion95/lprt08:\
:pl#66:\
:pw#80:\
:sd=/usr/spool/lpd/lprt08:\
:xf=/usr/lbin/xf:" >> /etc/printcap

Data General UNIX

# /usr/sbin/lpadmin -plprt08 -mstandard -D"Fusion95 SMB printer client 08" -onobanner -v/dev/lprt08 -h
# enable lprt08
# accept lprt08

HP-UX 10

# /usr/lib/lpshut
# touch /dev/lprt08
# /usr/lib/lpadmin -plprt08 -mdumb -v/dev/lprt08 -h
# /usr/bin/enable lprt08
# /usr/lib/accept lprt08
# rm /dev/lprt08
# /usr/lib/lpsched -v

HP-UX 9

# /usr/lib/lpshut
# /usr/lib/lpadmin -plprt08 -mfusion95 -v/dev/null -h
# /usr/bin/enable lprt08
# /usr/lib/accept lprt08
# /usr/lib/lpsched -v


Tuning SCO OpenServer 5 for large Fusion95 systems

Fusion95 uses one Semaphore Undo Structure per user. For large systems running on SCO OpenServer 5 it may necessary to tune the SEMMNU kernel parameter and increase its value. It is suggested that this value be set to ten (10) more than the number of Fusion95 users.

SCO documented the maximum value of SEMMNU as 100. Which of course would never be enough for any large system. But they also have the "secret documentation" which says the maximum is 32000. This you can find at:

http://www.sco.com/cgi-bin/ssl_reference?104877

Most modern UNIX systems allocate these Semaphore Undo Structures dynamically from available kernel memory, and thus no kernel tuning is required. Even SCO have started allocating them dynamically in UnixWare 7 and removed SEMMNU.


F95ADMIN - problem reporting

The following are hints for customers and resellers reporting problems in F95ADMIN.

Determine F95ADMIN version

Please report which version of F95ADMIN you are running. To do this:

Run the latest F95ADMIN

Make sure that the F95ADMIN you are running is the latest version. You can see what the latest version of F95ADMIN is, by going to http://www.april.se/ftp_e.html#Fusion95. You can also download from here if you are running an older version.

Create a trace

If upgrading to the latest version doesn't fix the problem, create a log file to help us trace the problem. Do the following:

Edit the file called f95admin.ini in the C:\Windows catalog. It should look something like...

   [config]
   usedisk=Z:
   search=2
   servername=HIMALAYA
   domainname=

Add the line...

   log=1

So the file looks like...

   [config]
   usedisk=Z:
   search=2
   servername=HIMALAYA
   domainname=
   log=1

Now restart, F95ADMIN and run so as to reproduce your problem. This will create a f95admin.log file in the C:\Program Files\Fusion95 catalog.

Reporting the problem

Please send us the following information to help us resolve your problem...

Note:

The directory names C:\Windows and C:\Program Files\Fusion95 might vary on different Windows systems depending on which language version you are running and whether the installation defaults were chosen. In the above, we used the values for a default installation on an English Windows.


Smbprtup - printer client - problem determination and reporting

The following are hints for customers and resellers with problems in the printer client - smbprtup.

If you are running through a router, read the "Wide Area Networks" chapter in this document, the section entitled "Printing from Fusion95 to a remote printer" is specifically of interest.

Obtain a trace

Problems can often be speedily resolved with the help of a trace file. It is however occassionally the case that creating a trace file does not reproduce the problem, but even then the trace is of use in allowing support personnel to see the client and server configuration.

To obtain a trace from smbprtup, run the following.

# cd /usr/fusion95
# ls -l | ./smbprtup -nt -ccfg/lprt00.cfg 2>&1 | tee trace.txt

Email the output (trace.txt) to support together with a full description of the problem.

Connection Problems

Problems which cause smbprtup to fail when it attempts to connect to the server with the shared printer resource are often caused by the name conflicts or wide-area networking problems.

  1. Check that the server name and printer name are valid and that they can be reached from a PC.
  2. Sometimes adding the name and ip address of the printer server to the /etc/hosts file on the UNIX machine resolves the problem.

To verify the configuration, run the smbprtup with the -v option.

# cd /usr/fusion95
# ./smbprtup -v -ccfg/lprt00.cfg

An error will be reported if the configuration fails to veify, otherwise the command prompt will be displayed.

Security Problems

Problems which cause smbprtup to fail when it attempts to map the shared printer resource are often caused by the security settings on the server to which the printer is attached. Common causes are that the password and username (if required) configured for the smbprtup printer client using smbprt.sh or fusion menu do not match those on the printer server:

  1. The printer is on a share-level server and the password configured is wrong.
  2. The printer is on a user-level server and the username/password configured is not a valid account
  3. The printer is on a user-level server and the username/password configured is an account which does not have network access rights to the printer.

Open Problems

Problems which cause smbprtup to fail when it attempts to open the spool file are often caused by the spooling options settings on the server to which the printer is attached.

This is often caused by a Windows spool server not correctly supporting RAW printing when configured for EMF spooling. To check this, look at the printer spooling configuration, in the Windows machine. To do this, go to:

  1. Start Menu
  2. Settings
  3. Printers
  4. Right click on the printer and select Properties

In Windows98 and Windows95:

  1. Details Tab
  2. Spool Settings

In Windows NT:

  1. General Tab
  2. Print Processor

In Windows 2000:

  1. Advanced Tab
  2. Print Processor

Check the configuration.

  1. Make sure that "Spool data format" is set to "RAW" instead of "EMF".

Note:

In the above examples lprt00 is used. You will need to change the number to that of the printer client causing the problem.


PCserve - file & printer server - problem determination and reporting

The following are hints for customers and resellers with problems in the file & printer server - pcserve.

If you are running through a router, read the "Wide Area Networks" chapter in this document. The Password Encryption chapter may also be of interest if you are having problems with authentication.

Obtain a trace

Problems can often be speedily resolved with the help of a trace file. It is however occassionally the case that creating a trace file does not reproduce the problem, but even then the trace is of use in allowing support personnel to see the client and server configuration.

To obtain a trace from pcserve, do the following.

  1. cd /usr/fusion95
  2. cp f95start f95trace
  3. vi f95trace
    Edit the line containing:
      TRC_SRV=" "
    so that it says:
      TRC_SRV=" -o3 "
    Note that you might be asked to specify a number other than 3 by support.
  4. Disconnect all users and then stop the server by running:
    ./f95stop
  5. Start the server with trace enabled by running:
    ./f95trace
    This will cause trace output to be written to pcserve0.log
  6. Connect from the PC, and run the software causing the problem.
  7. Stop the server by running:
    ./f95stop
  8. Save the trace file created:
    cp pcserve0.log trace.log
  9. Restart the server without trace by running:
    ./f95start
  10. Send the created trace file to support, it may be a good idea to compress it if it is large.

Home Back to April's Home Page Webmaster: keith@april.se