APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > Dirk Hart > Blog # 1114 Debugging Facetwin Remote PrintingConnections
Printer Friendly Version




Debugging Facetwin Remote Printing Connections


(Traditional format)

Thu Oct 21 10:13:14 2004 Debugging Facetwin Remote Printing Connections
Posted by Dirk Hart
Search Keys: smb|network

I got a call today from one of my customers complaining that their remote printer was no longer printing. "What changed?", I asked. "Nothing at all!", she replied in her charming southern drawl, "It just stopped printing!". Well, I suppose some folks would have me believe that gremlins come around in the night and reconfigure their PCs, but I'm not buying it. There's plenty of stuff around here that needs reconfiguring and I don't see any of that happening.

Well, the first thing to do is look in the /usr/facetwin/fct_pipes directory. With Facetwin, remote print jobs are sent to a pipe and if there is data waiting to be sent to a remote pc the filesize associated with that pc will be non-zero. Which it was.

Next, we checked to see if the remote printing daemon was still running. I typed in ps -ef|grep remprt and got back something that looked like

root   459     1  0   Sep-19       ?    00:00:00 /usr/facetwin/sys/fct_remprt -f /usr/facetwin/printers/fct_shipping
 

I could see that was still running so I begain to wonder if the PC really was connected to the network or perhaps those rascally gremlins had changed the PCs NETBIOS name.. I changed directories to /usr/facetwins/printers and looked in the file corresponding to the troubled printer: more fct_shipping. I saw the name of the PC handling remote printing was warehouse so I typed in fct_name warehouse and got this reply.


# fct_name warehouse

Name to resolve:  warehouse
Querying on:      WAREHOUSE               <00>

Query of local WINS at 127.0.0.1 ... SUCCESS,
       IP address = 192.168.0.164

Broadcast query ... SUCCESS,
       IP address = 192.168.0.164

GetHostByName(warehouse) ... FAILED
 

I could see that warehouse was indeed on the net and that because warehouse was not defined in /etc/hosts the GetHostByName query had failed. Not an issue, since DHCP is used at this site we can't be expected to keep /etc/hosts both populated and accurate.

Now since the PC was on the network I began to wonder if maybe those gremlins had renamed the printer share or maybe unshared it, so I typed in fct_client which is a command that present a kind of shell. One of the commands in the fct_client shell is lshare and it's job is to show all the local shares resources on the PC that are shared. It is supposed to look like this:

# fct_client

       Enter "help" or "?" for list of commands
fct_client: \> lshare warehouse

Sharename     Type    Comment
_______________________________________________________________________________
SHIPPING      Print

fct_client: \>
 

instead it just stopped responding after I typed in lshare warehouse. That PC wasn't responding to queries. So what we had was a PC properly connected to the network but not responding to queries. I was starting to have suspicions. I entered telnet 192.168.0.164 139 hoping to connect port 139 but there was no response. I pinged the PC: ping 192.168.0.164 without success either.

I directed the customer to turn off the Interet Connection Firewall on that Windows XP machine (Start-->Control Panel-->Network Connections, Right Click Local Area Network, choose Properties then the Advanced tab).

I was a bit surprised to learn this didn't start things even though it is a necessary step. Perusing the System Tray showed that there was also a personal firewall installed. We disabled this and enjoyed remote printing for the rest of the day.












Those installed Windows XP Service Pack 2 should be aware that this can enable the Internet Connection Firewall

Facetwin Command used:

fct_name warehouse              checks to see if  warehouse  is connected.
fct_name -a warehouse           shows which services are enabled
fct_client                      shows share name

Dirk Hart
MailstarUSA: Industrial strength email services.
Visit www.mailstarusa.com
Hire us before you get a virus!

EZminders.com: Free Reminders by email.
Visit www.ezminders.com


If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?




More Articles by Dirk Hart



Click here to add your comments


---October 21, 2004

Yes, the "firewall they didn't know was there" has started generating more support calls for me also. But I don't disable it: I'll open up whatever needs to be open. Although we may be protected by other firewalls, having this is just extra protection. And XP needs it:

http://www.informationweek.com/story/showArticle.jhtml?articleID=50900274

(I was amused that they say "even" XP SP2 has problems - like this was some gold standard of security!)

--TonyLawrence






Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar


cartoon
Versatile Site Map Generator $59.00
A1 Sitemap Generator

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


book graphic unix and linux troubleshooting guide




 I sell and support
 Kerio Mail server
g_face.jpg

This post tagged:

       - Blog
       - DirkHart
       - Microsoft
       - Networking
       - Remote Access




Unix/Linux Consultants

Skills Tests

Guest Post Here