[HPADM] SUMMARY: RE: installing printers@hp-ux11.11

From: Andreas Fischer (fischer@science-computing.de)
Date: Mon Oct 20 2003 - 09:59:36 EDT


Hello,

Many thanks to Rick, Bill and John who sent me solutions to my problem.
I only used Rick´s method and have not tried the others, but I suppose
they should work as well.

Solution #1 (by Rick Starr)
===========

part 1:
 One suggestion that you may find useful would to the "Save spooler state"
Within SAM. "This actually uses the lpmgr command with the save spooler
option"
Spooler configs are saved to a directory under /usr/sam/? (I cant
remember
Actually where.) Once the spooler config is saved there you can tar it
Into one file. Copy the file to the second machine into the same
/usr/sam/?
Directory. Then on the second machine either is the lpmgr command to
restore
the spooler state or go into the SAM "Restore Spooler config" option.

One thing to watch here is if you are going from 11i to 11.0
There is a defferent version of the jetadmin command and a conversion must
be run. If you are going 11i to 11i no problem.

You can automate this by using just the lpmgr command. I have successfully
used this process in many environments where spooler configs need to be
consistent between servers.

Rick

part 2

The lpmgr command to save the spooler state is

1) lpshut
2) /usr/sam/lbin/lpmgr -S (The default directory is /var/sam/lp)
3) lpsched
4) tar -cvf /tmp/lp.tar /var/sam/lp
5) copy the lp.tar file to other system
6) tar -xvf lp.tar
7) On remote system lpshut
8) lpmgr -R
9) lpsched

Solution #2 (by Bill Hassell)
============================

Use addqueue as in:

     /opt/hpnpl/bin/addqueue -h 12.34.56.78 -q printer_name1
     /opt/hpnpl/bin/addqueue -h 12.34.56.78 -q printer_name2
     /opt/hpnpl/bin/addqueue -h 12.34.56.78 -q printer_name3

  Repeat as needed. If you are using the obsolete jetadmin package and
  not the current HPPI (HP printer Installer) the path is
/opt/hpnp/bin/addqueue.
  man addqueue (and man removequeue, etc) will give you the details.

Bill

Solution #3 (by John O Edwards)
==============================
He sent me some useful scripts for managing the printers.
If someone is interested in them I will ask for his permission to send
them to you.

Regards

Andreas Fischer

> -----Original Message-----
> From: hpux-admin-owner@DutchWorks.nl [mailto:hpux-admin-owner@DutchWorks.nl]
> On Behalf Of Andreas Fischer
> Sent: Thursday, October 16, 2003 1:59 AM
> To: hpux sysadmin mailing list
> Subject: [HPADM] installing printers@hp-ux11.11
>
> Hello,
>
>
> I used to install printers by jetadmin.
> But I´d rather install them manually without the jetadmin (jetprinter)
> interface. I would like to automate the installation on several machines
> who get the same printer(s) and printer-configurations.
>
> Does anyone know how I can achieve this?
>
> Thank you!
>
>
> Andreas Fischer
>
>
> --
> ---> Please post QUESTIONS and SUMMARIES only!! <---
> To subscribe/unsubscribe to this list, contact
> majordomo@dutchworks.nl
> Name: hpux-admin@dutchworks.nl Owner:
> owner-hpux-admin@dutchworks.nl
>
> Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse
> only)
> http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse &
> search)
>
>
>

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:35 EDT