Spooler recovery is easy, but monitoring a spooler/thread hang is next to impossible. Although I was reading on a forum that someone was using WMI to enumerating the print jobs and reading the times and sizes. If they didn’t change within a given period, they would deem the spooler hung and restart the service. I thought that was an interesting approach and something to play around with when I have some time! I guess you would also need to add an exclusion for when a printer is offline.
For a bit of shameless self promotion, this is about the best you are going to do….
http://www.jhouseconsulting.com/index.php/blog/2008/08/15/print-spooler-self-healing-10/ (same as Rick’s concept)
http://www.jhouseconsulting.com/index.php/blog/2008/10/21/print-spooler-self-healing-20/
Cheers,
Jeremy.
From: thin-bounce@freelists.org [mailto:thin-bounce@freelists.org] On Behalf Of Rick Mack
Sent: Sunday, February 08, 2009 3:48 PM
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
************************************************
This document is intended solely for the named addressee. The information contained in the pages is confidential and contains legally privileged information. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone, and you should destroy this message and kindly notify the sender by reply email. Confidentiality and legal privilege are not waived or lost by reason of mistaken delivery to you.
No comments:
Post a Comment