FacetWin's remote print feature is designed to allow use
of PC printer(s) from the UNIX system. It involves cooperation
between several subsystems of both the UNIX system and the PC and
there are many subtle things that can cause frustrating problems.
This document should help track down those problems and offers solutions.
tail /var/adm/syslog
Mar 26 14:53:42 unixbox fct_remprt[12295]: fct_printer: Connection
to share PC_PRINTER failed:
Invalid network name in tree connect
If you were unable to run the
"NBTSTAT" command, you may have
to remove "Client for Microsoft Networks", reboot, add it back in,
and reboot again.
This can usually be fixed by having the PC register its names with
the FacetWin WINS server (see TCP/IP Properties, WINS
Configuration.) If using a static IP address on the PC, this could
also be fixed by including the PC's IP address and name in
FacetWin's "lmhosts",
or in the UNIX "/etc/hosts"
file, or in the UNIX DNS database.
The username and/or password in the remote printer configuration
file isn't recognized as valid by the PC. Usually this is the result
of the PC using "User-level access control" (see Network Properties,
Access Control tab) and the username is not in the PC's list of those
allowed access. If the PC is using "Share-level access control"
then the password probably doesn't match the printer share password.
If changes are made to the remote printer configuration file restart
the FacetWin servers to pick up the changes.
NOTE: By default Windows NT uses "User-level access control".
Sharenames are not case sensitive so this is usually a case of
of the sharename being mispelt in the remote printer configuration
file. It's also possible that there are hidden spaces in or after
the PC's "Shared As" name. Make the sharenames match and if changes
are made to the remote printer configuration file restart the
FacetWin servers to pick up the changes.
This usually happens on Windows 95 machines with more than one
network interface. It typically occurs when a local network
adapter with its associated IP address and a Dial-Up Networking
session via PPP adapter with its associated IP address are used
at the same time. If the PC starts announcing itself with the PPP
IP address on the local network some machine (probably the WINS server)
will tell the PC that it can't have that name on the network because
another IP address is already using that name. The confused PC
marks its names in conflict and essentially quits listening on
the network. Rebooting is about the only way to resolve this
dilemma. It can possibly be somewhat avoided by not using WINS
resolution.
If you would like a cheerful FacetCorp technical support
person to help diagnose remote print problems, please have handy any
syslog messages and the results of any of the above tests you've done
when you contact us.
Good luck!
NOTE:
FacetWin version 3.1.e inluded a "fix" which improved remote print
daemon robustness. Anyone experiencing remote printing problems with
older versions should
upgrade to version 3.1.e (444) or
later.
(See
"lpstat -t",
"enable",
and "accept".)
/etc/fct_remprt_all stop
Normal shutdown messages when stopping the daemons look like:
/etc/fct_remprt_all start
Mar 26 14:40:33 unixbox fct_remprt[453]: Program was terminated
by signal=15
An obvious problem might show up when the daemons are started:
Mar 26 14:40:55 unixbox fct_remprt[5224]: fct_printer:
Unable to get IP address for REMOTE_PC
Mar 26 14:46:39 unixbox fct_remprt[7575]: fct_printer: Session setup
with server REMOTE_PC failed: Access denied
"/usr/facetwin/printers/fct_printer":
While the "encrypt_password" string can't easily be decrypted, you can
encrypt what you think the password is with the
"fct_encrypt"
utility and compare the encrypt string with what is stored in the file.
------------------------------------------------------
# Configuration file for remote printer pc_printer
# on machine remote_pc
# Pipe Name used by fct_remprt
pipe=fct_printer
# Machine name of the PC with the printer
server=remote_pc
# Shared printer name
printer=pc_printer
# User name to use in making the connection
user=pc_user
# Model interface to use with the printer
model=HPLaserJet
# Password to use in making the connection
encrypt_password=551179698D227B90AAD3B435B51404EE
------------------------------------------------------
"fct_encrypt -p pc_pass":
---------------------------------------------------
encrypt_password=551179698D227B90AAD3B435B51404EE
The connection information and share name can be verified by
establishing a connection from the UNIX system to the PC with the
"fct_client" utility. If the
PC is using "User -level access control" a valid PC username and
password will be required and you'll be prompted for them.
"fct_client":
---------------------------------------------------
fct_client: \> lsh remote_pc
User: pc_user
User Password: pc_pass
Sharename Type Comment
_____________________________________________
C Disk
C Drive
PC_Printer Print PC's LaserJet
fct_client: \>
---------------------------------------------------
"/usr/facetwin/bin/fct_name -a remote_pc":
or with "NBTSTAT" from the PC's DOS prompt:
---------------------------------------------------------
Sending node stat to 1.2.3.4
NetBIOS Remote Machine Name Table
Name
Type
-----------------------------------------------------
REMOTE_PC <00>
UNIQUE Registered
WORKGROUP <00>
GROUP Registered
REMOTE_PC <03>
UNIQUE Registered
REMOTE_PC
UNIQUE Registered
WORKGROUP <1E>
GROUP Registered
MAC Address = 11-22-33-44-55-66
C:\>nbtstat -n
Two critical things to note:
Node IpAddress: [1.2.3.4] Scope Id: []
NetBIOS Local Name Table
Name
Type
---------------------------------------------
REMOTE_PC <00>
UNIQUE Registered
WORKGROUP <00>
GROUP Registered
REMOTE_PC <03>
UNIQUE Registered
REMOTE_PC
UNIQUE Registered
WORKGROUP <1E>
GROUP Registered
PC_USER <03>
UNIQUE Registered
WORKGROUP <1D>
UNIQUE Registered
C:\>
If you are experiencing one of the above error conditions, here are
some possible reasons and probable solutions:
FacetWin remote printing can be done over the Internet and over
PPP connections
but if the PC is using a dynamically assigned IP address
it usually requires that the PC register its names with FacetWin's
WINS server. For an alternative way to print to a remote printer see
the manpage or helpfile about the
"fct_client" utility.