HP-UX Printer Question - Important!!!

Is there a way to install/de-install (remove) a printer in HP-UX 10.20 without being logged in as root? If so, how? We have a printer that just simply disappeared from the system.
maknightAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tfewsterCommented:
You are not alone! - There's an occasional problem I've seen in the past where if someone cancels a print job, the printer disappears. To "fill the gap", a duplicate of another printer may appear and that printer hangs up as well;

When this situation occurs, you can't stop the scheduler with lpshut; It reports that it's stopped, but the lpsched process is still running (& you can start another lpsched process!)

The quick & dirty fix I found was to kill the lpsched process, delete both the duplicate printers and then add the "disappeared" printer & the "original" of the duplicate printers back in.

I never got to the bottom of what was happening & can't find a fix for it from HP's support website (There is a different "printer disappeared" problem when disabling/enabling printers if the spool directory ownership is wrong). I never logged a call with HP as the customer was always nagging for the "quick fix". I'd be interested to hear the definitive answer :)

HP have several patches for printer problems , so the generic advice has to be to install the latest patch bundles...

Hope this helps,
Tim
0
maknightAuthor Commented:
Thanks, Tim. We don't get the duplicate printer, but the rest sounds familiar. My system operator keeps our patches pretty much up-to-date, so I'm confident that's not an issue. I'm close to logging a call with HP, but it'll probably take me three days to get to talk to a human <g>.
0
paulqnaCommented:
What about the menu driven "sam"? It should be possible with adm.
0
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

maknightAuthor Commented:
We have a restricted 'sam' set up for users other than root, but all they can do is backups.
0
paulqnaCommented:
Please define disappeared from system
no link?
cannot ping?
reset print server?
you name it...
0
tfewsterCommented:
Good point paulqna - it would be worth looking in /var/spool/lp to see if the directories & interface script for that printer still exist (& if they do, check ownership & permissions)

I believe they are owned by "lp", so if login/su to lp isn't disabled ("*" in the password field in /etc/passwd) a printer could be deleted by "lp".

Another possibility is if the printer had been set up manually by copying (as opposed to using sam or the lpadmin command), ownership & permissions might be wrong.

Don't waste any time checking those last 2 points - they're just examples of how a non-root user COULD remove a printer, but the scenario is unlikely :)
0
bedotCommented:
certain user may have on HP administrators privileges: chech this with sam;

On HP, you can have several printer sub-systems:
traditionnal, with lpsched
HPDPS with spooller & supervisor

and several protocols
serial, parallel printers
x25 printers (x29 printd)
hpjetdirect
service printer (port 515)

so, when you type lpstat -t, you can see scheduler is not running (checking lpsched) when HPDPS is active.


0
tfewsterCommented:
Hi maknight - Did you get an answer from HP?
0
maknightAuthor Commented:
Still waiting on a callback.
0
jowoCommented:
Hi,

this seems to be a known problem and will be fixed on HPUX higher 11.01 or with a patch for 10.20. Have a look for patch PHCO_18779.

Cheers,
jowo
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tfewsterCommented:
??? PHCO_18779 (lpspool cumulative patch) may cure many ills, but the documentation for it on HP's support site doesn't mention printers dissapearing. jowo, do you have a URL or other reference for this?



0
jowoCommented:
Hi maknight,

first the bad news; it is not possible for you to have access to that reference site :-(

The problem I refer to is like:

>... We keep loosing printers and sometimes the spooler hangs....
>... When we loose a printer we see the following message when doing a
>lp-s"ser":lp: no such printer or class "ser". When the spooler hangs, lpshut
>and lpsched -v does not help. The spooler starts to hang immidiately after
>lpsched....
>... the spooler starts the printer entry will be duplicated instead....
>The first printer that was listed will disappear, and give the "lp: no such
>printer or class "ser"" message if someone tries to print to it.
>If the duplicated printer has a queue of requests waiting the spooler can >end up in a deadlock situation when we try to lock pstatus and >.remotesending for the printer.

and from my opinion it sounds very similar to the comments of tfewster.

The reason for that problem is a defect in a routine and that is what the Patch is for.

I hope you are fine with that "short" explanation

Cheers,
jowo
0
maknightAuthor Commented:
My operations guy is out with his wife who just had a son, but I'll have him get that patch as soon as he returns.
0
tfewsterCommented:
You can check whether you already have it, by logging in as root and running
swlist -l fileset |grep PHCO_18779

0
maknightAuthor Commented:
We don't have it, but our operations rules dictate that only the SysOp can install patches to the OS for accountability reasons.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.