Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Can I use a general printer(HP LaserJet 1200) on solaris? Post 31025 by miredale on Thursday 31st of October 2002 07:34:59 AM
Old 10-31-2002
Printer queues...

If you run the command below, it will show you what printers you currently have setup on your Solaris server.

lpstat -t | more

You will see a device name (i.e queue name) and then the physical (server) name of the printer.

i.e
system for hp2: accounts1 (as printer lpt1_text)
system for bighp1: accounts1 (as printer lpt1_text)

hp2 as above is a queue name that gets used by an application.
This queue actual prints out on a physical server called accounts1. Accounts 1 is the name of the printer in the /etc/hosts files

The same printer is also known as printer queue bighp1 for another application, but physically is the same printer as hp2.


--------
What you need to do,

Attach your HP printer to the network via a jetdirect card. Lets say you set the IP address of the jetdirect card as 172.26.3.30.
You then edit your /etc/hosts file and add the line 172.26.3.30 hp_printer

you should now be able to ping hp_printer (to make sure hp_printer is found over the network)

No lets say you want to create a printer queue called mark for instance to the hp_printer printer.

-p queue name
-s what the printer is known as in the /etc/hosts file
-T interface file hplaser is standard for hp printers
-I font type


lpadmin -p mark -s hp_printer -T hplaser -I pcl


run the lpstat -t | more command again and you should see your queue called mark against a physical printer hp_printer

test the printer by running a native print commnad to the printer queue mark.


-d queue name to send a print request to.
/etc/group is the name of the file to print


lp -d mark /etc/group


The printer should burst into life.


Hope it helps
Mark
 

9 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

TRUE Unix-64 Printer Driver for HP-6L laserjet.

Can anyone suggest me from where to download the printer driver for HP 6L laserjet printer for servers/desktops having TRUE Unix-64 and Unixware 7.0 OS. (1 Reply)
Discussion started by: parbende
1 Replies

2. UNIX for Dummies Questions & Answers

Setting a HP printer under Solaris 9

Hello. I am trying to make work HP printer Deskjet 692C. I have Solaris 9 x86. I tried to use admintool: I choosed 'HP-printer' and 'Postscript filter' options. When I want to print something, instead of the text, the printer prints many pages of some kind of code or whatever... ... (1 Reply)
Discussion started by: Peter123456789
1 Replies

3. Solaris

Printer Config for Solaris 5.9

Hi All, Am Trying to configure a Network Printer (HP Laser Jet 4250n) Printer Name hari for a Solaris 5.9 server. Output of lpstat: root: lpstat -t scheduler is running no system default destination device for hari: /dev/null hari accepting requests since Mon Jul 28 10:38:51 2008... (0 Replies)
Discussion started by: efunds
0 Replies

4. Solaris

Printer can't be removed under Solaris 10

Dear all, we are running a Solaris 10 8/08 Sparc system called 'test-s' where #lpstat -t shows such a line: system for mps2_p: printer-s (as lpd://printer-s/printers/mps2_p#Solaris) How can we get rid of this entry because #lpstat -x mps2_p says 'unknown printer'. THX for any... (1 Reply)
Discussion started by: xunil321
1 Replies

5. Solaris

General question about configuring DHCP on Solaris

Dears, my question is that possible to configure any server to work in solaris zone i mean any server cos i read that DHCP can't be work on solaris zone is that real or not Best Regards Alexander Corvinus (4 Replies)
Discussion started by: corvinusbsd
4 Replies

6. Solaris

eXceed and Solaris 10 - General Problems

Greetings! I do no like Exceed, but it all I have. First of all, I started my Solaris 10 with a bare minimum base install. I have built up from it with additions like sudo, gcc, and various other packages that I have needed. Now, I am trying to get Exceed to connect with the server and display a... (17 Replies)
Discussion started by: adelsin
17 Replies

7. UNIX for Advanced & Expert Users

Printer setting in Solaris

I have Solaris-10 server and want to change default printer setting to Simplex (Instead of duplex, which is set currently). I am not able to see anything in conf file related to this setting. Please help (2 Replies)
Discussion started by: solaris_1977
2 Replies

8. Solaris

Solaris 5.9 - HP Laserjet 9050dn

Hi there, I hope someone could shed a light on my problem. OS is running in local zone (global zone - 5.10). We use many printers from Ricoh etc. Most of them are running fine if configured as below (for Ricoh printers I use their installer): lpadmin -p _printer_ -v /dev/null -A write -i... (0 Replies)
Discussion started by: cyjan
0 Replies

9. OS X (Apple)

12-Core MacPro (2013) kernel_task over 1200%

Yesterday someone asked me to install TeamViewer and share my Mac screen with them while on a conference call. I shut down my Mac before sleeping and woke up to some major problem with my 12-core CPU in hyperdrive, and the system activity monitor showed my Mac kernel_task was at 1,200% and the... (30 Replies)
Discussion started by: Neo
30 Replies
enable(1)							   User Commands							 enable(1)

NAME
enable, disable - enable/disable LP printers SYNOPSIS
/usr/bin/enable printer... /usr/bin/disable [-c | -W] [ -r [reason]] printer... DESCRIPTION
The enable command activates printers, enabling them to print requests submitted by the lp command. enable must be run on the printer server. The disable command deactivates printers, disabling them from printing requests submitted by the lp command. By default, any requests that are currently printing on printer will be reprinted in their entirety either on printer or another member of the same class of printers. The disable command must be run on the print server. Use lpstat -p to check the status of printers. enable and disable only effect queueing on the print server's spooling system. Executing these commands from a client system will have no effect on the server. OPTIONS
The following options are supported for use with disable: -c Cancels any requests that are currently printing on printer. This option cannot be used with the -W option. If the printer is remote, the -c option will be silently ignored. -W Waits until the request currently being printed is finished before disabling printer. This option cannot be used with the -c option. If the printer is remote, the -W option will be silently ignored. -r [reason] Assigns a reason for the disabling of the printer(s). This reason applies to all printers specified. This reason is reported by lpstat -p. Enclose reason in quotes if it contains blanks. The default reason is "unknown reason" for the existing printer, and "new printer" for a printer added to the system but not yet enabled. OPERANDS
The following operand is supported for both enable and disable: printer The name of the printer to be enabled or disabled. Specify printer using atomic name. See printers.conf(4) for information regarding the naming conventions for atomic names. EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. FILES
/var/spool/lp/* LP print queue. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpcu | +-----------------------------+-----------------------------+ |CSI |enabled | +-----------------------------+-----------------------------+ SEE ALSO
lp(1), lpstat(1), printers.conf(4), attributes(5) SunOS 5.10 9 Sep 1996 enable(1)
All times are GMT -4. The time now is 07:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy