Printer definition file on HP


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Printer definition file on HP
# 1  
Old 11-29-2001
Data Printer definition file on HP

Hello,
I'm looking for the definition file for printers on HP. Can I implement printers.conf like on SUN ?

Thanks for your helpSmilie

Last edited by annececile; 11-29-2001 at 08:38 AM..
# 2  
Old 11-30-2001
Manually configure printers on the HP-UX is not easy. [but possible when you know, what to do]. Use SAM - without problem ....
# 3  
Old 11-30-2001
My problem is that I need to change the print server for all the printers on about 50 HP workstations. The easiest way to do that is to send modified configuration files to all users. Could you give me the way to do it manually ?
Thanks
# 4  
Old 11-30-2001
I didnt't work with HP-UX more than year, but
look to /etc/lp/interface directory and file with name of your printer. I think that file will be easily understand ...
# 5  
Old 11-30-2001
I have no way to test this...and I'm about to leave for vacation so I won't be around to help debug it...but here goes...
Code:
#! /usr/bin/ksh
HOST=printserver
REALPRINT=lp
PRINT=lp

/usr/lib/lpshut
/usr/lib/lpadmin -x$PRINT
/usr/lib/lpadmin -p$PRINT -mrmodel -v/dev/null -ocmrcmodel \
  -osmrsmodel -orm$HOST -orp$REALPRINT -ob3
#  If this is to be the default printer:
/usr/lib/lpadmin -d$PRINT
/usr/lib/lpsched
enable $PRINT
/usr/lib/accept $PRINT
exit 0

And don't put any spaces in by changing, say, "-p$PRINT" to "-p $PRINT" because it confuses lpadmin.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compare the source definition file with data file

Hi How to compare the source definition file in unix with the data file . Please can you share me example if some one has done it before (3 Replies)
Discussion started by: Raj4fusion
3 Replies

2. Shell Programming and Scripting

Create a control file from Table definition

Hi Team, I need to create a control file with a pre-defined structure for a given table name. The table is in teradata. Ex: Table Name: TBL1 Table structure: create multiset table tbl1, no fallback, no before journal, no after journal, checksum = default, default mergeblockratio... (7 Replies)
Discussion started by: unankix
7 Replies

3. Linux

Find printer location and printer type

Hi, Is it possible to find the printer location and printer type (whether it is local or network) using command in Linux ? Thanks in advance. (1 Reply)
Discussion started by: forumguest
1 Replies

4. AIX

Check printer queue on Windows printer server

Hello Let me first give a small overview of the setup. All printers are connected to Windows 2000 servers. There are a lot of UNIX (AIX & HP-UX) servers as well which have SAP running. I'm working on a script to add printers to a specified SAP instance. I want to verify the user input (to... (0 Replies)
Discussion started by: NielsV
0 Replies

5. Solaris

Shadow file definition

Hi Could someone Pls let me know how to define a shadow file, i.e what do each of the following stand for: root:SedGsw.WadR:13200:7:30:5:30:: What would the column headings be? Thnaks (1 Reply)
Discussion started by: narik007
1 Replies

6. IP Networking

How do you send printer codes to an IP printer

We were printing to a serial laser printer with all the HP codes to generate a form (i.e. lines, boxes, etc.) Thus the file is filled w/ control codes. We are switching to an IP printer and we can no longer print directly to the device (i.e. cp text /dev/tty11). It looks like we have to use the lp... (2 Replies)
Discussion started by: jeffbugfree
2 Replies

7. Filesystems, Disks and Memory

File system definition

I really don't understand why we use many filesystems in one UNIX server and we mount them. In fact i don't really understand the signification of a file system. :( Thank you for help (1 Reply)
Discussion started by: fahmoun
1 Replies

8. UNIX for Dummies Questions & Answers

Definition of a regular file

Hi there. reading the if entry from man, i get this: -f file True if file exists and is a regular file. What is exactly a regular file ? Thanks, --- 435 Gavea --- (3 Replies)
Discussion started by: 435 Gavea
3 Replies
Login or Register to Ask a Question