1834648 Members
2792 Online
110069 Solutions
New Discussion

moving printers

 
SOLVED
Go to solution
Donald Thaler
Super Advisor

moving printers

moved printers from one unix system to another using following commands:
(1)/usr/sam/lbin/lpmgr -S
(2)rcp -rp /var/sam/lp/* phoenix:/var/sam/lp/./
The files were moved over and when I issued the restore command /usr/sam/lbi/lpmgr -R, the command didn't complete, I waited about 30-45 mins and when i pressed the enter key i got the following error : ch_hostp:is not a valid internet address. When I login to the sever that we did the restore command on, instead of the normal prompt 'rooot@phoenix:/' i get '-a:/'. The lpstat command returns 'hpdps error'
followed by the status of some of the printers (these weren't there before the rcp and restore). Is there anyway I can find out why the restore didn't complete and at this point should I restore the printer files to the way they were before i tried the rcp and restore. This is a test server and I have the files backed up on tape.
6 REPLIES 6
Geoff Wild
Honored Contributor

Re: moving printers

Try it like this:

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

tar up /var/sam/lp/, then rcp the tar ball to remote host.

Untar it on remote and execute:

/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.
Donald Thaler
Super Advisor

Re: moving printers

where can i find documentation on the lpmgr routine? I'm a little confused as to what the filename is and where it is created by the -xsavedir parameter.
Geoff Wild
Honored Contributor

Re: moving printers

Yes - I can't seem to find any docs...I know I just figured it out a long time ago...by checking the sam log (when running the backup spooler configuration from within sam).

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.
Donald Thaler
Super Advisor

Re: moving printers

the lpmgr routine seems to hang, i wait about 20-30 mins and nothing happens. when i press the enter key i get 'ch_hostip not a valid internet address'.when i do an lpstat i get the error 'can't open printer status file'. the system prompt instead of returning 'root@phoenix:' shows '-a:'.
I've checked and all the files and directories that were on the genesis:/var/sam/lp are in the phoenix:/var/sam/lp ?
Geoff Wild
Honored Contributor
Solution

Re: moving printers

Well - I just realized something - hpdps - that means you are running HP Distributed Print Service.

You can't use the lpmgr for that - only for native spooler...

Second, the ch_hostp not found - means ch_hostp is not in DNS (though maybe HPDPS knows how to get to it)...

You may want to review

http://docs.hp.com/en/B2355-90156/index.html

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.
Donald Thaler
Super Advisor

Re: moving printers

you are right lpmgr didn't work and in the process of following the procedures that were previously outlined i managed to change the hostname on the test server. once i reset the hostname and used sam to save the spooler configuration on my production sysem, and restored the configuration on my test server using sam, everything is now right with the world. Thanks