Monday, February 9, 2009

[THIN] Re: new printer mapping issue

Adam,
 
Rick is, remarkably enough*, right on, so I would definitely follow his advice here.
 
In the mean time, have your test page go to a text file, wait some reasonable length of time, and if your text file doesn't exist, you know the spooler is down.  Google chkspool to see an old implementation of this concept I implemented.
 
- Bob
 
*Rick is the king of quality information per word typed on all the internets....
 
 


From: thin-bounce@freelists.org [mailto:thin-bounce@freelists.org] On Behalf Of Rick Mack
Sent: Sunday, February 08, 2009 1:48 AM
To: thin@freelists.org
Subject: [THIN] Re: new printer mapping issue

Hi Adam,
 
It's easy to cover a spooler crash with a simple script called by the spooler service recovery action, eg
 
net stop cpsvc
 
:: this step is unnecessary but useful if you want to use the script stand-alone
net stop spooler > nul: 2>&1
del /q %systemroot%\system32\spool\printers\*.*
 
net start spooler
net start cpsvc
 
However a stalled spooler service is a bit harder to manage.
 
Ideally what you really want to do is clean up your printer drivers so that the spooler  service and citris print manager service stay stable. Check out the Addprinter and StressPrinters utilities (http://support.citrix.com/article/CTX109374). With a bit of work you can get rid of this problem totally.
 
I tried to cover this stuff in the printer workshop at Briforum last year but the workshop kind of degenerated into a Scredrivers promotion so we missed some information that should have been shared.
 
regards,
 
Rick
--
Ulrich Mack
Quest Software
Provision Networks Division

On Sun, Feb 8, 2009 at 1:11 PM, Adam Thompson <adwulf@gmail.com> wrote:
I have found that it is usually necessary to forcibly kill the CPM and
spooler service.

I started developing a script to send a test page using rundll32, and
then restart the services if the job errored.
Unfortunately, with a hung spooler, my script would just wait and wait
and wait forever, and never restart or kill the services.

Does anyone have a utility which will kill and restart (or even just
kill) the services when the CPM and spooler are no longer responding?

Thanks,

Adam.


2009/2/8 Pat Coughlin <strangedog@gmail.com>:
> This is a symptom of a classic spooler crash.  The spooler restarts
> but the citrix print manager service does not resume functioning.  I
> use a script that stops cps service starts the spooler and the starts
> the cps.  This stops this issue about 98% of the time.
>
>
> Pat Coughlin
>
>
>
> On 2/4/09, Steve Snyder <kwajalein@gmail.com> wrote:
>> yep - it maps the one from the client as well but sets the local xps as the
>> default
>>
>> On Thu, Feb 5, 2009 at 2:32 PM, Greg Reese <gareese@gmail.com> wrote:
>>
>>> Is the xps printer the local printer on the server?
>>>
>>> Sent from my iPhone
>>>
>>> On Feb 4, 2009, at 8:12 PM, Steve Snyder <kwajalein@gmail.com> wrote:
>>>
>>>  xenapp 4.5 hr03, w2k3r2, most clients are xp with ica 10.2. Suddenly
>>> today
>>>> a lot of clients are getting the microsoft xps document as their default
>>>> printer. If they delete that and re-logoff-logon their printers map but
>>>> none
>>>> get set as the default. Nothing's been changed in the last 10 days, my
>>>> sms/wsus guy claims he didn't push or release anything last night. I have
>>>> a
>>>> farm policy to map all client printers, which is working, ica-tcp
>>>> settings
>>>> are set to default to main client printer, which is apparently not
>>>> working.
>>>>
>>>> ideas?
>>>>
>>> ************************************************
>>> For Archives, RSS, to Unsubscribe, Subscribe orset Digest or Vacation mode
>>> use the below link:
>>> http://www.freelists.org/list/thin
>>> Follow ThinList on Twitter
>>> http://twitter.com/thinlist
>>> Thin List discussion is now available in blog format at:
>>> http://thinmaillist.blogspot.com
>>> Thinlist MOBILE Feed
>>> http://thinlist.net/mobile
>>> ************************************************
>>>
>>
>
> --
> Sent from Gmail for mobile | mobile.google.com
> ************************************************
> For Archives, RSS, to Unsubscribe, Subscribe or
> set Digest or Vacation mode use the below link:
> http://www.freelists.org/list/thin
> Follow ThinList on Twitter
> http://twitter.com/thinlist
> Thin List discussion is now available in blog format at:
> http://thinmaillist.blogspot.com
> Thinlist MOBILE Feed
> http://thinlist.net/mobile
> ************************************************
>



--
AdamT
"I'll give you a winter prediction: It's gonna be cold, it's gonna be
grey, and it's gonna last you for the rest of your life." - Phil
Connors
************************************************
For Archives, RSS, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://www.freelists.org/list/thin
Follow ThinList on Twitter
http://twitter.com/thinlist
Thin List discussion is now available in blog format at:
http://thinmaillist.blogspot.com
Thinlist MOBILE Feed
http://thinlist.net/mobile
************************************************



No comments: