Printer installation under HP-UX

Source: Internet
Author: User

The system is HP-UX B .11.31 and the printer is HP LaserJet 5100. The installation steps are described as follows:

1. Install HP JetDirect Printer Installer for UNIX

# /usr/sbin/swsintall –s /var/tmp/hp11e134.sd J4189-11001C

Verify whether the installation is successful:

# /usr/sbin/swlist -l product J4189-11001C # Initializing... # Contacting target "systemname"... # # Target:  systemname:/ #  # J4189-11001C     E.10.34  Hewlett-Packard JetDirect Printer Installer for Unix   J4189-11001C.HPNPL  E.10.34  Hewlett-Packard JetDirect Printer Installer
 for Unix 

2. Download the driver for HP LaserJet 5100

The HP printer driver (Modelscript) can be downloaded here: http://www.hp.com/pond/modelscripts/index2.html

After downloading net_lj5100.sh.Z, follow these steps:

# uncompress net_lj5100.sh.Z# sh net_lj5100.sh.Z

3. Install the printer

Access SMH (https: // <HP-UX server address>: 2381/) in a browser, select Tools, and select Print Management-> Configure Printer or Plotter. Next, you need to start Xserver on your machine, and then click the "Run" button to start the "Printer and Plotter" setup program.

Choose "Action"> "Add Network-Based Printer/Plotter"> "Add Printer/Plotter connected to JetDirect" from the menu of the Printer and Plotter setup program ", the hppi program will be started through the terminal, as shown below. (In fact, if you do not use the SMH and Printer and Plotter setup programs, you can also press hppi directly from the command line to access the following screen. However, after adding a Printer, you cannot find the added Printer through hppi itself,

Therefore, we recommend that you use SMH to ensure security .)

         ****************************************************************         *****]         ****         **** ]          ****     JetDirect Printer Installer for UNIX         **** ]]]]] ]]]]] ****    Version E.10.34         **** ]   ] ]   ] ****         **** ]   ] ]]]]] ****    M A I N     M E N U         *****      ]     ****         ******     ]    ****     User: (root)    OS: (HP-UX B.11.31)              I N V E N T         ****************************************************************         1) Spooler Administration (super-user only)         2) JetDirect Configuration (super-user only)            - TCP/IP configurable parameters         3) Diagnostics:            - diagnose printing problems                   ?) Help         q) QuitPlease enter a selection (q - quit):

Select 1 and the following menu appears:

          Spooler:              1) Add printer to local spooler              2) Delete printer from local spooler              3) Modify existing spooler queue(s)              4) Install New Model Script              5) Remove Model Script

Select 1 and Enter the printer IP address: Enter the network printer name or IP address (q-quit): 192.168.1.10.

The parameter setting screen is displayed:

   Configurable Parameters:               Current Settings   ------------------------               ----------------   1) Lp destination (queue) name:         [192_1]   2) Status Log                           [(No Log)]   3) Queue Class                          [(Not assigned)]   4) Default Queue                        [NO]   5) Additional printer configuration...

Select 5 here to go to the advanced option change:

   Configurable Parameters:               Current Settings   ------------------------               ----------------   1) Model Script:                        [net_lj8150]   2) Default Printing Language            [AUTO]   3) Job Recovery                         [ON]   4) True End-of-Job                      [ON]   5) Banner Page                          [ON]   6) PostScript Level                     [Level 2]   7) Banner Tray                          [default]   8) Banner Paper Size                    [default]   9) Duplex print                         [default]

Select 1 and enter the name of the Model Script you just installed:

Enter model script name (q-quit): net_lj5100

Press q to return to the top menu, and then press 0-> y to start configuration.

Finished adding "192_1" to the spooler.

Possible Errors

If the following error occurs, it may be caused by permission issues:

Addprinter error: cant find /usr/spool/lp/interface/192_1

Check whether the owner of the/var/spool/lp,/etc/lp,/usr/lib/lp directories is lp: bin. What I encounter is,

For the purpose of development, other project team members deleted the lp account that comes with the system and added the printer.

If the following warning appears, run the lpsched command once as prompted:

WARNING : The spooler is not running!To print, turn on the spooler (lpsched)

After successful installation, select List-> Printers and Plotters on the Printer and Plotter configuration programs page,

The successfully installed printer is displayed ,.

Select the printer and select "Set as System Default Destination" from the right-click menu to Set it as the System Default printer.

4. Print the test page

Execute the lp command in the command line to print.

$ lp readme.txt

To print a postscript file, you can write it as follows:

$ lp -o postscript readme.ps

You can use the lpstat command to view the print queue.

$ lpstat

Remarks

If you encounter problems during printing, you can view the log file:

tail -f /var/adm/lp/log

The print spool is located under/opt/hpnpl/tmp. If the print is abnormal, check whether the directory has permission issues.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.