- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
06-10-2003 02:37 PM
06-10-2003 02:37 PM
Printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 02:43 PM
06-10-2003 02:43 PM
Re: Printers
If you can access the directories /etc/lp, /var/adm/lp, /var/spool/lp on the old system then you can tarup these directories and untar them on your system. Make sure take a backup of the current directories on the new OS.
Once it is done, do an "lpsched" and you should see all the printers.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 02:46 PM
06-10-2003 02:46 PM
Re: Printers
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4d7c402f24d5d61190050090279cd0f9,00.html
Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 02:54 PM
06-10-2003 02:54 PM
Re: Printers
1) On the new box, install the latest JetDirect software. (Even if you were running JetAdmin on the old box OR even if you've upgraded to 11.x, install the JetDirect software - we will deal with that shortly).
2) On the new box, lpshut.
cd /
find ./etc/lp ./var/spool/lp -print | cpio -ocv > /tmp/newlp.cpio
We shouldn't need this backup but that's why we make it - so we won't need it.
3) vgimport the old vg00 disk(s), vgchange -a y, and mount the old vg00 filesystem. Let call the old /, /oldroot and the old /var, /oldvar. You will only need those two filesystems.
4) cd /oldroot/etc.
find lp -print | cpio -ocv > /tmp/etclp.cpio
5) cd /oldvar/spool
find lp -print | cpio -ocv > /tmp/varlp.cpio
6) Umount /oldroot ands /oldvar and vgchange -a n , and vgexport the old vg00. We don't need it anymore.
7) cd /etc
cpio -icvdum < /tmp/etclp.cpio
8) cd /var/spool
cpio -icvdum < /tmp/varlp.cpio
9) If you converted from JetAdmin JetDirect (like you should):
transferqueue local
and respond 'all'.
This will convert your interface scripts.
10) lpsched
You are done and all is restored - even the default printer.
This does assume that you have already addressed all hostname resolution problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 02:56 PM
06-10-2003 02:56 PM
Re: Printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 03:04 PM
06-10-2003 03:04 PM
Re: Printers
1) Execute lpshut on the old box.
2) cd /
find ./etc/lp ./var/spool/lp -print | cpio -ocBv > /dev/rmt/0m.
(or whatever is the appropriate tape drive).
3) On the new box (again, after using swinstall to install the latest JetDirect software), execute lpshut. (The scheduler may not have been running but no harm).
4) Let's make a safe backup of the new first.
cd /
find ./etc/lp ./var/spool/lp -print | cpio -ocBv > dev/rmt/0m
5) Now insert the old system's media in the drive and let's restore to the new box.
cd /
cpio -icBvdum < /dev/rmt/0m
6) Time to run tranferqueue local and answer "all" - if converting from JetAdmin to JetDirect.
7) lpsched
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 03:07 PM
06-10-2003 03:07 PM
Re: Printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 03:12 PM
06-10-2003 03:12 PM
Re: Printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 03:15 PM
06-10-2003 03:15 PM
Re: Printers
2) It's not Y2K compliant.
3) At the very least, you would have to (or really, really should) have to install JetAdmin using swinstall to keep the new software database up to date. Since you have to (really, really should) run swinstall anyway, you might as well run swinstall and install JetDirect it's no more difficult assuming you can even find a .depot for JetAdmin.
4) Support for newer printer models.
5) Finally, there is absolutely no downside to the conversion to JetDirect and the transferqueue command will convert all your interface files within minutes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 03:24 PM
06-10-2003 03:24 PM
Re: Printers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 03:34 PM
06-10-2003 03:34 PM
Re: Printers
If on the old box, you have a directory called /opt/hpnp (JetAdmin) rather than /opt/hpnpl (JetDirect) then you are running JetAdmin. You could conceivably have both but in that case the later JetDirect was installed and used.
Since you have the drives mounted on the new system, use my original method and you are home free - substituting your appropriate filsystem mountpoints for /oldroot and /oldvar.
The only difference is that using JetAdmin, the printer install/maintenance command was "jetadmin" and now it's "hppi".
As a first step, download the JetDirect software and install it using swinstall - that should take you less than 10 minutes including the download time - given a reasonable connection to hp.com. You can always run swremove to blow it away.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 03:50 PM
06-10-2003 03:50 PM
Re: Printers
Let me know what you think. Also, I cannot find the Jet Direct Software. In my opt directory on the new server, I have a webadmin folder. Is that anything of interest?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 05:23 PM
06-10-2003 05:23 PM
Re: Printers
1) it's not there because the disk is corrupt, or 2) you weren't using network printers at all. You might be using "Remote" printers - those are diffrent from "Network (JetAdmin or JetDirect) printers. It's also possible that all your printers are directly attached serial or parallel devices.
If you were using remote printers (or local direct attached printers) then on the new box do an lpshut and copy the /etc/lp and /var/spool/lp backups into the new box. Next cd to /var/spool/lp and remove SCHEDLOCK and *FIFO*. Those files may not be found but the scheduler will not start if any of those files are found. Next, do an lpsched. If you can print, you are fixed. Again, hostname resolution must be working so get /etc/hosts, or NIS, or DNS working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2003 05:17 AM
06-11-2003 05:17 AM
Re: Printers
Then you may be okay by just copying the /var/sam/lp dir from your old system to your new one and "restore spooler configuration" in SAM or on the command line:
/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/
Rgds...Geoff
PS: This ios the software you want:
HPNPL E.10.18 Hewlett-Packard JetDirect Printer Installer for Unix