- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Moving Printers...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:08 AM
07-15-2002 11:08 AM
I am hoping this will save me some typing and some repetitive work...
Thanks,
Ty
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:25 AM
07-15-2002 11:25 AM
Re: Moving Printers...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:27 AM
07-15-2002 11:27 AM
Re: Moving Printers...
you may like to look at this document :
http://support2.itrc.hp.com/service/cki/docDisplay.do?docId=200000058668757
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:28 AM
07-15-2002 11:28 AM
Re: Moving Printers...
1) Use SAM->Printers & Plotters -> LP Spooler -> Save/Restore Spooler Configuration -> Actions -> Save (or Restore)
You then copy the files under var/sam/lp to the other hosts and run the Restore.
2)
Copy /etc/lp/*, /var/spool/lp/* (and make sure that the proper symbolic links are maintained /usr/spool -> /var/spool. MAKE CERTAIN that ownership and group are maintained.
2B) You could use rdist to keep these files in sync.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:28 AM
07-15-2002 11:28 AM
Re: Moving Printers...
For details look at
#man transferqueue
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 12:16 PM
07-15-2002 12:16 PM
Re: Moving Printers...
Then I run this script that will watch for an idle moment and make the change with minimal effect on the ongoing printing that "lpshut/lpsched" causes.
#!/bin/sh
FR_HOST=source_host
PR=$1
MM=$(date +%b)
DD=$(date +%d | sed 's/^0//')
while [ $(lpstat -o -i | grep -E "$MM[ ]+$DD[ ]+.*on" | wc -l) -gt 0 ]
do
echo ".\c"
sleep 5
done
echo ""
if [ $(hostname) != ${FR_HOST} ];then
rcp ${FR_HOST}:/etc/lp/interface/${PR} /usr/spool/lp/model/${PR}
rcp ${FR_HOST}:/etc/lp/interface/model.orig/${PR} /etc/lp/interface/model.orig/${PR}
if [ $? -ne 0 ];then
echo "model script for ${PR} not available"
echo "rcp from ${FR_HOST}:/usr/spool/lp/model/${PR} FAILED"
exit 1
fi
fi
lpshut
lpadmin -x${PR}
lpadmin -p${PR} -m${PR} -v/dev/null
lpsched -a
accept ${PR}
enable ${PR}
rm /usr/spool/lp/model/${PR}
exit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 05:08 PM
07-15-2002 05:08 PM
SolutionBill Hassell, sysadmin