1753774 Members
7088 Online
108799 Solutions
New Discussion юеВ

Re: printer installs

 
SOLVED
Go to solution
Donald Thaler
Super Advisor

printer installs

We recently upgraded two of our unix systems to 11i. Is there someway we can copy the printer settings from one system to another without having to re-enter them one at a time.
Is it possible to copy cron from one system to another?
8 REPLIES 8
Rick Garland
Honored Contributor
Solution

Re: printer installs

On the system to export from

# /usr/sam/lbin/lpmgr -S
this will save the info in the /var/sam/lp/lpinfo file

copy the configuration to the new system

# rcp -rp /var/sam/lp/* :/var/sam/lp/./
can use the .rhosts file for this command

be sure to remove the .rhosts entries after completed

On the system that was exported to

# /usr/sam/lbin/lpmgr -R
this will restore the info in /var/sam/lp/* on the new system
Geoff Wild
Honored Contributor

Re: printer installs

I have done almost the same as Rick - but specify the location:

/usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/ ; cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/

Then tar up the /var/sam/lp/ directory and transfer to the remote server.

On remote:

un tar it into /var/sam/lp

/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Marvin Strong
Honored Contributor

Re: printer installs

The above suggestions will move your printers.

Per your "Is it possible to copy cron from one system to another?"

yes all crons are kept in

/var/spool/cron/crontabs

copy the ones you need. Keep in mind you might also need to copy some scripts, and make changes to some cron jobs for the new server.

Raj D.
Honored Contributor

Re: printer installs

1. Printer configuration to save.

# /usr/sam/lbin/lpmgr -S -v -xsavedir=/home/donald/printers/

2. archive this directory to a single file, and ftp this to 11i server.

3. extract the file on hpux 11i system

4. Restore the configurations of the printers:

# /usr/sam/lbin/lpmgr -R -v -xsavedir=/home/donald/printers

5. check with
# lpstat -t | grep printer_name


Enjoy ,
Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: printer installs

Hi Donald ,

Step.2 can be done with , tar , gz.

# cd /home/donald/printers/
# tar -cvf printers.tar *
# gzip printers.tar

# scp printers.tar.gz hpux11i:/home/donald
----

Logon to: hpux11i
# cd /home/donald
# mkdir printers
# gunzip printers.tar.gz
# tar -xvf printers.tar
-----

Finally:
# /usr/sam/lbin/lpmgr -R -v -xsavedir=/home/donald/printers


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Arunvijai_4
Honored Contributor

Re: printer installs

You can copy all cron jobs from /var/spool/cron/crontabs and put it in your new env. # ll /var/spool/cron/crontabs
total 16
-r-------- 1 root sys 161 Jul 22 12:35 root


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Jeff Lightner_1
Frequent Advisor

Re: printer installs

Assuming you're doing Jetadmin (now called HPPI or HPNPL) you can use the "transferqueue" command.

Note there are differences between Jetadmin and the newere HPNPL stuff. I ran into some issues and ran a thread on the Dutchworks mailing list. In that you'll see the problem I saw as well as my solution with detailed steps with transferqueue usage:

http://www.dutchworks.nl/htbin/hpsysadmin?h=3&dn=97986&q=Jeffrey%20C.%20Lightner&fh
Donald Thaler
Super Advisor

Re: printer installs

after using rcp as suggested by rick garland i tried to restore the printer info by executing /user/sam/lbin/lpmgr -R on the new system and it seems to hang.