From Wiki-UX.info

Wiki-UX / LP Spooler / How to copy print spooler configuration to another server
Jump to: navigation, search

How to copy print spooler configuration to another server

Abstract

This article explains how to copy print spooler configuration between HP-UX systems running the same Operating Environment release using the SAM spooler backup feature.

The procedure only works between servers running the same HP-UX Operating Environment release. HP-UX 11i v1 (11.11) and 11i v2 (11.23) can be copy using this procedure. SAM is not longer available on HP-UX 11i v3. HP-UX 11i v3, System Management Homepage is used to call the required interfaces.

The same version of Jetdirect and the required printer model script need to be installed in the target server of the spooler copy.

Contents


HP-UX 11i v1 / v2 (11.11 / 11.23)

1. Start SAM (System Administration Manager).

┌ ===              System Administration Manager (source) (1)                  ┐
│File View Options Actions                                                Help │
│                       Press CTRL-K for keyboard help.                        │
│SAM Areas                                                                     │
│──────────────────────────────────────────────────────────────────────────────│
│  Source   Area                                                               │
│┌───────────────────────────────────────────────────────────────────────────┐ │
││ SAM      Accounts for Users and Groups ->                                 ^ │
││ SAM      Auditing and Security         ->                                   │
││ SAM      Backup and Recovery           ->                                   │
││ SAM      Clusters                      ->                                   │
││ SAM      Disks and File Systems        ->                                   │
││ SAM      Display                       ->                                   │
││ SAM      Kernel Configuration          ->                                   │
││ SAM      Networking and Communications ->                                   │
││ SAM      Partition Manager                                                  │
││ SAM      Performance Monitors          ->                                   │
││ SAM      Peripheral Devices            ->                                   │
││ SAM      Printers and Plotters         ->                                   │
││ SAM      Process Management            ->                                   │
││ Other    Resource Management           ->                                 v │
│└───────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

2. Select "Printers and Plotters"

┌ ===              System Administration Manager (source) (1)                  ┐
│File View Options Actions                                                Help │
│                       Press CTRL-K for keyboard help.                        │
│SAM Areas:Printers and Plotters                                               │
│──────────────────────────────────────────────────────────────────────────────│
│  Source   Area                                                               │
│┌───────────────────────────────────────────────────────────────────────────┐ │
││ ..(go up)                                                                 ^ │
││ SAM      HP Distributed Print Service ->                                    │
││ SAM      LP Spooler                   ->                                    │
││ SAM      Print Server Configuration                                         │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                           v │
│└───────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

3. Select LP Spooler.

┌ ===              System Administration Manager (source) (1)                  ┐
│File View Options Actions                                                Help │
│                       Press CTRL-K for keyboard help.                        │
│SAM Areas:Printers and Plotters->LP Spooler                                   │
│──────────────────────────────────────────────────────────────────────────────│
│  Source   Area                                                               │
│┌───────────────────────────────────────────────────────────────────────────┐ │
││ ..(go up)                                                                 ^ │
││ SAM      Print Requests                                                     │
││ SAM      Printers and Plotters                                              │
││ SAM      Save/Restore Spooler Configuration                                 │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                           v │
│└───────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

4. Select Save/Restore Spooler Configuration. If this is the first time that this operation is execute, may recieve following warning.

┌ ===                  Printer and Plotters (source) (1)                       ┐
│File List View Options Actions                                           Help │
│                       Press CTRL-K for keyboard help.                        │
│                                         Saved Default Destination: /var/sam/l│
│──────────────────────────────────────────────────────────────────────────────│
│Sa                                                                            │
│──────────────────────────────────────────────────────────────────────────────│
│   ┌                           Error ( source )                          ┐    │
│┌──│                                                                     │──┐ │
││  │ There is no saved print spooler configuration (the file             │  ^ │
││  │ "/var/sam/lp/lpinfo" does not exist).  Unless you have reason to    │    │
││  │ suspect the current print spooler configuration is corrupt, you may │    │
││  │ prefer to save the current print spooler state now.  For more       │    │
││  │ information, choose "Overview" from the "Help" pulldown menu.       │    │
││  │─────────────────────────────────────────────────────────────────────│    │
││  │                             [[ OK    ]]                             │    │
││  └─────────────────────────────────────────────────────────────────────┘    │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                           v │
│└───────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

5. Select Action - Save Spooler Configuration from the pull down menu. That will create the /var/sam/lp/lpinfo. The previous error message may appear again if this is the first time this procedure have been use.

┌ ===                  Printer and Plotters (source) (1)                       ┐
│File List View Options Actions                                           Help │
│                       │ Save Spooler Configuration     │                     │
│Time Saved: 07/15/08 at│ Restore Spooler Configuration  │stination: /var/sam/l│
│───────────────────────│ ============================== │─────────────────────│
│Save/Restore Spooler Co│ (nothing selected)~~~~~~~~~~~~ │      0 of 0 selected│
│───────────────────────└────────────────────────────────┘─────────────────────│
│  Name   Type   Location                                                      │
│┌───────────────────────────────────────────────────────────────────────────┐ │
││                                                                           ^ │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                           v │
│└───────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘


6. After executiong, it will reflect in the interface the creation time and the printers that are configured in the print spooler.

┌ ===                  Printer and Plotters (source) (1)                       ┐
│File List View Options Actions                                           Help │
│                       Press CTRL-K for keyboard help.                        │
│Time Saved: 07/15/08 at 11:04            Saved Default Destination: /var/sam/l│
│──────────────────────────────────────────────────────────────────────────────│
│Save/Restore Spooler Configuration                             0 of 1 selected│
│──────────────────────────────────────────────────────────────────────────────│
│  Name      Type      Location                                                │
│┌───────────────────────────────────────────────────────────────────────────┐ │
││ 4730mfp   network   -                                                     ^ │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                           v │
│└───────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

7. Exit from SAM.

8. Backup SAM spooler configuration directory, for example using a tar archive.

# cd /var/sam
# tar -cvf /var/tmp/spooler.tar ./lp

For example:

# cd /var/sam
 
# tar -cvf /var/tmp/spooler.tar ./lp
a ./lp/member/4730mfp 1 blocks
a ./lp/interface/4730mfp 23 blocks
a ./lp/interface/model.orig/4730mfp 367 blocks
a ./lp/default 0 blocks
a ./lp/pstatus 2 blocks
a ./lp/lpinfo 1 blocks
a ./lp/timestamp 1 blocks

9. Copy the archive to the new server, remove the the SAM spooler configuration directory and restore the archive.

# cd /var/sam
 
# rm -rf ./lp
 
# tar -xvf /var/tmp/spooler.tar

For example:

# cd /var/sam
 
# rm -rf lp
 
# tar -xvf /var/tmp/spooler.tar
x ./lp/member/4730mfp, 10 bytes, 1 tape blocks
x ./lp/interface/4730mfp, 11543 bytes, 23 tape blocks
x ./lp/interface/model.orig/4730mfp, 187682 bytes, 367 tape blocks
x ./lp/default, 0 bytes, 0 tape blocks
x ./lp/pstatus, 756 bytes, 2 tape blocks
x ./lp/lpinfo, 18 bytes, 1 tape blocks
x ./lp/timestamp, 18 bytes, 1 tape blocks

10. Start SAM, Printers and Plotters, LP Spooler, Save/Restore Spooler Configuration. The saved configuration will be available. Select Actions, Restore Spooler Configuration from the pull-down menu. You will receive following warning.

┌ ===                  Printer and Plotters (target) (1)                       ┐
│File List View Options Actions                                           Help │
│                       Press CTRL-K for keyboard help.                        │
│Time Saved: 07/15/08 at 11:04            Saved Default Destination: /var/sam/l│
│──────────────────────────────────────────────────────────────────────────────│
│Save/Restore Spooler Configuration                             0 of 1 selected│
│──────────────────────────────────────────────────────────────────────────────│
│  N┌                        Confirmation (target)                         ┐   │
│┌──│                                                                      │─┐ │
││ 4│ This action will cause the current print spooler configuration to be │ ^ │
││  │ lost.                                                                │   │
││  │                                                                      │   │
││  │  Do you want to restore the print spooler to its backup              │   │
││  │ configuration?                                                       │   │
││  │──────────────────────────────────────────────────────────────────────│   │
││  │ [[ Yes   ]]                                              [   No    ] │   │
││  └──────────────────────────────────────────────────────────────────────┘   │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                           v │
│└───────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

11. Answer "Yes", the Spooler configuration will be restore.

12. Return to SAM - Printers and Plotters, LP Spooler, Printers and Plotters. Select Actions - Start Print Spooler from the pull-down menu to enable the print spooler.


┌ ===                  Printer and Plotters (target) (1)                      ┐
│File List View Options Actions                                           Help │
│                       │ Add Local Printer/Plotter ->          │              │
│Print Spooler: STOPPED │ Add Remote Printer/Plotter......      │T DEFINED     │
│───────────────────────│ Add Network-Based Printer/Plotter ->  │──────────────│
│Printers and Plotters  │ ───────────────────────────────────── │ of 1 selected│
│───────────────────────│ Start Print Spooler...                │──────────────│
│                      E│ ───────────────────────────────────── │              │
│  Name      Type      T│ Show Common Problems                  │              │
│┌──────────────────────│ ===================================== │────────────┐ │
││ 4730mfp   network   y│ (nothing selected)~~~~~~~~~~~~~~~~~~~ │            ^ │
││                      └───────────────────────────────────────┘              │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                           v │
│└───────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘
┌ ===                  Printer and Plotters (target) (1)                       ┐
│File List View Options Actions                                           Help │
│                       Press CTRL-K for keyboard help.                        │
│Print Spooler: STOPPED                   Default Destination: NOT DEFINED     │
│──────────────────────────────────────────────────────────────────────────────│
│Printers and Plotters                                          0 of 1 selected│
│──────────────────────────────────────────────────────────────────────────────│
│                      Enabled     Accepting                                   │
│  Name   ┌               Start Print Spooler (target)               ┐         │
│┌────────│                                                          │───────┐ │
││ 4730mfp│ SAM will now start the print spooler on the local system.│       ^ │
││        │                                                          │         │
││        │ Start Print Spooler with Logging On?  [ No   ->]         │         │
││        │──────────────────────────────────────────────────────────│         │
││        │ [   OK   ]             [ Cancel ]             [  Help  ] │         │
││        └──────────────────────────────────────────────────────────┘         │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                             │
││                                                                           v │
│└───────────────────────────────────────────────────────────────────────────┘ │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

13. Exit SAM, confirm spooler configuration

# lpstat -T
scheduler is running
no system default destination
device for 4730mfp: /dev/null
4730mfp accepting requests since Jul 15 11:23
printer 4730mfp is idle.  enabled since Jul 15 11:23
        fence priority : 0
no entries

HP-UX 11i v3 (11.31)

1. Start System Management Homepage

.            HP-UX System Management Homepage (Text User Interface)
.                                     SMH
--------------------------------------------------------------------------------
 a - Auditing and Security
 c - Auditing and Security Attributes Configuration(new)
 d - Peripheral Devices
 e - Resource  Management
 f - Disks and File Systems
 g - Display
 k - Kernel Configuration
 l - Printers and Plotters(new)
 m - Event Monitoring Service
 n - Networking and Communications
 p - Printers and Plotters
 s - Software Management
 u - Accounts for Users and Groups
 
 
 
 
 
--------------------------------------------------------------------------------
x-Exit smh                     w-WebLaunch        1-Help
ENTER-Launch Functional Area   v-SAM Log Viewer

2. Select "Printers and Plotters"

.                            Printers and Plotters
--------------------------------------------------------------------------------
 Print Requests
 Printers and Plotters
 Save/Restore Spooler Configuration
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--------------------------------------------------------------------------------
x-Exit smh   ENTER-Select   ESC-Back

3. Select Save/Restore Spooler Configuration

This will start a minimal version of SAM still available for this task. This may be removed in the future. From this point, the procedure is the same that with the other Operating Environment release.

Authors

This page was last modified on 19 July 2010, at 20:13. This page has been accessed 3,425 times.