1824639 Members
4861 Online
109672 Solutions
New Discussion юеВ

Printers

 
SOLVED
Go to solution
khilari
Regular Advisor

Printers

Hi guys, well i wanted to know as to how would u build a printer. I usually build them with sam. Now, in sam, there are options like make remote printers, and then u put a server name that printer will be attached to. Now, what if i want to build a local printer what kind of entries do i put in sam during making it.
5 REPLIES 5
Mridul Shrivastava
Honored Contributor

Re: Printers

1. Does the relevant device file exist (/dev)? If not, create it with the following command:

# mksf [-d DRIVER] [-l LU] [-p PORT] [DEVICE_NAME]

If a raw file is required, this can be created with the following command:

# ln /dev/DEVICE_NAME /dev/rDEVICE_NAME

2. Shut the LP spooler down:

# lpshut

3. Add printer to the spooler:

# lpadmin -pPRINTER_NAME -v/dev/DEVICE -mMODEL

The printer PRINTER_NAME is added to the spooler. All print requests are stored in the directory
/var/spool/lp/request/PRINTER_NAME. The model script MODEL is copied under the name PRINTER_NAME in the
/var/spool/lp/interface directory. You should only modify the script in the interface directory.
The file PRINTER is written in /var/spool/lp/member with the entry /dev/DEVICE.

4. If desired, specify it as the default printer:

# lpadmin -dPRINTER_NAME

5. Activate the printer at the spooler input:

# accept PRINTER_NAME

6. Activate printer at spooler output:

# enable PRINTER_NAME

7. Start spooler again:

# lpsched [ -v -a ]

lpsched is usually started via /sbin/rc
[HP-UX 10.x], /etc/rc [HP-UX 9.x] during booting. With the options -v and -a, monitoring is enabled. The results are written to the files /var/spool/lp/log and
/var/spool/lp/lpana.log at HP-UX 10.x. The file lpana.log can ONLY be read with the command /usr/sbin/lpana.

With lpstat -t, the status of the spooler and the printer can be checked at any time.


Time has a wonderful way of weeding out the trivial
Geoff Wild
Honored Contributor

Re: Printers

I use the command line.

LP Spooler Commands:

lpstat - report line printer status information

enable - enable LP printers

disable - disable LP printers

accept - allow LP printer queuing requests

reject - prevent LP printer queuing requests

lpadmin - configure the LP spooling system

lpsched - start the LP request scheduler

lpshut - stop the LP request scheduler

cancel - cancel requests

lpmove - move requests

lpfence - define the minimum priority for printing

addqueue - add a queue to the LP spooling system

HP Jetdirect Printers

You can get further details on a printer with a HP Jet DIrect card by using the hpnpadmin command:

hpnpadmin -v (where is the printer name):

hpnpadmin -v RF02

Or, too get just relevant info, use the lpinfo script:

lpinfo W052



idle-timeout - specifies a timeout after which to close a connection if no
data is being sent

To change the value of "idle-timeout" on the jetdirect card:-

- telnet
- at the ">" prompt press [return] TWICE
- type "/" to show current parameter settings
- note "Idle Timeout" value (eg 30 seconds)
- type "?"
- type "idle-timeout: 270 (to increase to 270 seconds).
- type "quit" to save and exit with these settings.

NOTE: The maximum number for the JetDirect card timeout is 1 hour (3600
seconds). Be careful if you use high values, you might block the port for other
users.


Adding Printers

addqueue -i 9998 -q W052 -h w052.mydomain.net

The -i option is the "printID type from the following list:

cat /opt/hpnpl/admin/PrinterList

:1:HP LaserJet IIISi;:HP LaserJet IIISi
:1:HP PaintJet XL300;:HP PaintJet XL300
:2:HP Color LaserJet;:HP Color LaserJet
:3:HP LaserJet 4;:HP LaserJet 4 / 4M
:5:HP LaserJet 4Si;:HP LaserJet 4Si / 4SiMX
:6:HP PaintJet XL300;:HP PaintJet XL300
:7:DeskJet 1200C;:HP DeskJet 1200C / 1200C/PS
:7:HP CopyJet;:HP CopyJet / CopyJetM
:8:DesignJet 650C;:HP DesignJet 650C
:10:HP LaserJet 4 Plus;:HP LaserJet 4 Plus / 4M Plus
:11:HP LaserJet 5Si;:HP LaserJet 5Si / 5SiMX
:12:HP LaserJet 4V;:HP LaserJet 4V
:14:DeskJet 1600C;:HP DeskJet 1600C
:14:DeskJet 1600CM;:HP DeskJet 1600CM
:15:HP LaserJet 5;:HP LaserJet 5
:15:HP LaserJet 5N;:HP LaserJet 5N
:15:HP LaserJet 5M;:HP LaserJet 5M
:16:HP Color LaserJet 5;:HP Color LaserJet 5
:16:HP Color LaserJet 5M;:HP Color LaserJet 5M
:20:DesignJet 750C (C3196A);:HP DesignJet 750C
:20:HP DesignJet 750C Plus (C4708A);:HP DesignJet 750C Plus
:20:HP DesignJet 750C Plus (C4709A);:HP DesignJet 750C Plus
:21:DesignJet 755CM (C3198A);:HP DesignJet 755CM
:21:DesignJet 755CM (C3198B);:HP DesignJet 755CM
:22:HP DesignJet 700 (C4705A);:HP DesignJet 700
:22:HP DesignJet 700 (C4706A);:HP DesignJet 700
:23:HP DesignJet 2500CP (C4704A);:HP DesignJet 2500CP
:24:HP DesignJet 2000CP (C4703A);:HP DesignJet 2000CP
:25:HP DesignJet 3500CP (C4724A);:HP DesignJet 3500CP
:26:HP DesignJet 3000CP (C4723A);:HP DesignJet 3000CP
:257:HP LaserJet 4000 Series;:HP LaserJet 4000 Series
:258:HP LaserJet 5000 Series;:HP LaserJet 5000 Series
:259:HP Color LaserJet 4500;:HP Color LaserJet 4500
:261:HP Mopier 320;:HP Mopier 320
:261:HP LaserJet 8100 Series;:HP LaserJet 8100 Series
:264:DesignJet 1055CM (C6075A);:Hewlett-Packard DesignJet 1055CM (E sized)
:264:DesignJet 1050C (C6074A);:Hewlett-Packard DesignJet 1050C (E sized);
:266:HP LaserJet 8000 Series;:HP LaserJet 8000 Series
:267:HP LaserJet 4050 Series;:Hewlett-Packard LaserJet 4050 Series
:513:HP LaserJet 2100 Series;:Hewlett-Packard LaserJet 2100 Series
:1000:HP LaserJet 5L;:HP LaserJet 5L
:1001:HP LaserJet 5P;:HP LaserJet 5P
:1001:HP LaserJet 5MP;:HP LaserJet 5MP
:1002:HP LaserJet 4P;:HP LaserJet 4P
:1002:HP LaserJet 4MP;:HP LaserJet 4MP
:1003:LaserJet 4L;:HP LaserJet 4L
:1003:LaserJet 4ML;:HP LaserJet 4ML
:1004:HP LaserJet 6P;:HP LaserJet 6P Printer
:1004:HP LaserJet 6MP;:HP LaserJet 6MP Printer
:1005:HP LaserJet 6L;:HP LaserJet 6L Printer
:1008:HP 2000C;:HP Deskjet 2000C Printer
:1010:HP Color LaserJet 8500;:HP LaserJet 8500
:1020:HP 2500C;:Hewlett-Packard 2500C Series
:1025:HP LaserJet 1100;:HP LaserJet 1100A Printer-Copier-Scanner
:9990:dumplot plotter;:To Select dumbplot model script for plotter
:9991:dumplot printer;:To Select dumbplot model script for printer
:9992:dumplot printer_cr;:To Select dumbplot model script for printer with CR
:9997:Generic PCL3 Printer;:HP PCL3 Printer not given in this list
:9998:Generic printer;:HP LaserJet Printer not given in this list
:9999:Generic plotter;:HP Plotter not given in this list


-h is the host name, and -q is the queue name.

Most printers are added with 9998 "Generic". Some may have to be 9992 (Genicom).


Removing Printers:

# lpshut


# lpadmin -xW052

After removing a printer, you MUST restart the HP LP spooler /usr/sbin/lpsched -v


Remote Printers:

can be installed via the command line like:

lpadmin -v/dev/null -mrmodel -pmvs2 -ormcal1mvs.mydomain.net -orplcldup

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.
Jaime Bolanos Rojas.
Honored Contributor
Solution

Re: Printers

Khilari, you can also check this document that will explaing to you also how to add the locak printer.

http://docs.hp.com/en/B2355-90053/ch07s01.html

Regards,

Jaime.
Work hard when the need comes out.
Ganesan R
Honored Contributor

Re: Printers

Hi,

If you want to configure local printer via SAM, need to supply few details.

->select the type of interface serial or parallel.
-> select the hardware path of the interface.will show the available interfaces.most cases it will be built-in parallel interface.
->then give printer name, printer model(depends on the model ex:dump), priority etc..
Once you done this printer will be enabled and ready to accept requests. you can check with lpstat -t command.
Best wishes,

Ganesh.
Raj D.
Honored Contributor

Re: Printers

Khilari,

In short you can use :
i) lpadmin
ii) addqueue [If Jetdirect sw is installed]
ii) SAM

Required parameters are: device name , printer name , if you want to make it default , then make it to accept , then enable it, then start printing with lp.

cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "