- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Line printer
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-30-2004 10:52 PM
06-30-2004 10:52 PM
uname -m returns 9000/800
My problem is that the line printer connected as local printer to pararllel port of k380 does not work. When i do an ioscan on it i get among other things..
ext_bus 2 10/12/0 CentIf CLAIMED INTERFACE Built-in Parallel Interface /dev/c2t0d0_lp
When i check device drivers on SAM I see lpr2 as "IN" , but does not see that on ioscan.
My understanding is we need lpr2 to print to line printer through parallel port. My question is
1)should I take the Centif Parallel Interface "OUT" from the kernel, and if so, is it okay ?
2) As lpr2 is already "IN", would taking CEntif "OUT" make lpr2 use the parallel printer port and connect to device.
Or is it something completely different that I have to do to get the printer working ? Many thanks in anticipation
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 11:28 PM
06-30-2004 11:28 PM
Re: Line printer
It does not seems a problem related to driver in kernel.
Have you tried by redirecting the output of a command to the device file of the port. For example
#ls -l >>/dev/c2t0d0_lp
Is it working ?
If it is working your hardware will be ok. In that case if it is not working through scheduler then check for SCHEDLOCK file , if exists delete it.
If it is not working your hardware is suspected to be faulty.
Regards,
Devender K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 11:45 PM
06-30-2004 11:45 PM
Re: Line printer
ls -l>>/dev/c2t0d0_lp
returns
sh: /dev/c2t0d0_lp: Cannot create the specified file - Althoug there is a file
crw-r--r-- 1 lp bin 216 0x020002 Jul 1 12:40 c2t0d0_lp
So, is the parallel interface card faulty ? Because we can print to this from another HPUX 10.2 server.
But on that server ioscan returns
ext_bus 2 5 lpr2 CLAIMED INTERFACE HP 28655A - Parallel Interface /dev/c2t0d0_lp /dev/diag/c2t0d0_lp
It uses lpr2 although Centif is also "IN" on that server- Can I make this device use lpr2 instead of Centif Many Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 12:04 AM
07-01-2004 12:04 AM
SolutionJust a small clarification:
Centif is used for series 700 &
lpr2 is used for series 800.
Yours is K class i.e. series 800 so no matter Centif is out or in ..
Since you are talking about Making Centif in and out seems you are OK rebooting the server.
Since the printer is working from other server and it was aslo working with this server in this case,
I will say is possible just simply restart
server and give a try.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 12:43 AM
07-01-2004 12:43 AM
Re: Line printer
Stop the LP spooler:
hpux# lpshut
Add the printer to the LP spooler. In this example, the printer device is /dev/lp and the model file is laserjet:
hpux# lpadmin -phpljet -v/dev/lp -mlaserjet
(Be sure to use the appropriate model file for the printer. Generally, the model files are located in /usr/lib/lp.
These files describe the characteristics supported by the printer.)
Allow print requests to be accepted:
hpux# accept hpljet
This command allows the LP spooler to accept print requests for this printer.
Enable printing:
hpux# enable hpljet
This command allows the LP spooler to actually print the job.
Restart the LP spooler:
hpux# lpsched
Test the printer.
hpux# lp -dhpljet /etc/hosts
HTH
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 12:43 AM
07-01-2004 12:43 AM
Re: Line printer
Anyone done this before ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 05:34 PM
07-01-2004 05:34 PM
Re: Line printer
Check whether the Printer device file is existing By.
#/usr/sbin/ioscan -fn -d lpr2
O/p Sholud be like the attached txt file.
If not
Then simply add the lpr2 driver in the kernel and rebuild the kernel and reboot
the server.
This should automatically create a device
file as /dev/c2t0d0_lp.
I have never created this device file
manually.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 05:34 PM
07-01-2004 05:34 PM
Re: Line printer
Check whether the Printer device file is existing By.
#/usr/sbin/ioscan -fn -d lpr2
O/p Sholud be like the attached txt file.
If not
Then simply add the lpr2 driver in the kernel and rebuild the kernel and reboot
the server.
This should automatically create a device
file as /dev/c2t0d0_lp.
I have never created this device file
manually.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 08:55 PM
07-01-2004 08:55 PM
Re: Line printer
ext_bus 2 10/12/0 CentIf CLAIMED INTERFACE Built-in Parallel Interface /dev/c2t0d0_lp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 09:29 PM
07-01-2004 09:29 PM
Re: Line printer
As i said earlier that you are using a K class server i.e. series 800 so the parellel port driver for that is lpr2
Coming back to your own original post question No 2).
Please remove Centif from the kernel and keep
only lpr2.Reboot the server this must whow you the device file for lpr2 as
/dev/cxtxdx_lp
and you can use lpadmin to create the default printer and ask the printer to accept the request and give the printing command and Test.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 09:33 PM
07-01-2004 09:33 PM
Re: Line printer
On the Cards list on SAM, I see this:
10/12/0 CentIf Built-in Parallel Interface
Since there is a Centif Parallel Interface card, can I take Centif out of the kernel ? Or will the Centif card use lpr2 if Centif is out ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 09:43 PM
07-01-2004 09:43 PM
Re: Line printer
Once you remove the Cenif
lpr2 will be used instead.....
Please refer the attached doc for printer configuration.
This will clear max doubts...
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 11:47 PM
07-01-2004 11:47 PM
Re: Line printer
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 11:56 PM
07-01-2004 11:56 PM
Re: Line printer
As I have got only Cetronics parallel interface card and my machine is 800 series, I don't think now that I can try and add this printer , unless I change the parallel interface card
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:29 AM
07-02-2004 12:29 AM
Re: Line printer
However, the Centronics interface design varied even within Centronics printers so when the PC market began to drive common (and low-cost) printer interfaces, a lot of attention was paid to integrating smart BIOS and/or electronics to accomodate the differing standards. The standards varied in terms of handshaking and whether these protocol signals were levels or pulsed.
The HP implementation was to control the interface using various minor number values and the man page called "cent" will give the details. There are five separate modes (minor number values) which can all be setup by creating different device files and varying the last hex digit. You can create the device files like this:
mknod /dev/c2t0d0_lp1 c 216 0x020001
mknod /dev/c2t0d0_lp2 c 216 0x020002
mknod /dev/c2t0d0_lp3 c 216 0x020003
mknod /dev/c2t0d0_lp4 c 216 0x020004
mknod /dev/c2t0d0_lp5 c 216 0x020005
Mode 6 is not available for 800 series (K380) boxes. Now try cat'ing a simple file to each device file:
cat /etc/issue > /dev/c2t0d0_lp1
cat /etc/issue > /dev/c2t0d0_lp2
cat /etc/issue > /dev/c2t0d0_lp3
cat /etc/issue > /dev/c2t0d0_lp4
cat /etc/issue > /dev/c2t0d0_lp5
One (or more) of those device files may work. If multiple device files work, use long listings to verify the most reliable handshake mode. NOTE: cat'ing direct to the port will require filtering ASCII files because in Unix, ASCII files are string followed only by a linefeed (LF). For multi-line files, use this:
ux2dos /etc/issue > /dev/c2t0d0_lp1
Note also that cat'ing direct will leave off the formfeed between print jobs, but this is just a test. Once you find a device file that works, add the printer using the dumb model script and you should be ready to print. If none of the files work, you may have one of the few completely incompatible parallel interfaces on your printer. While it may work fine on a PC, even HP's RuggedWriter (a 1980's dot matrix printer) could not be made to work with any HP 9000 server.
In that case, you have an even better solution than parallel: HP makes a Centronics-to-LAN adapter box called a JetDirect External. The 170x is only $129 retail and allows you to move your printer to anywhere you can run a LAN cable. It also allows other machines such as PCs to print to the printer (although you can lockout any incoming jobs based on IPP address). The JetDirect External box has multi-protocol parallel interface capability that is as universal as a typical PC.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:35 AM
07-02-2004 12:35 AM