The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Capture output to file and printer rdasari UNIX for Advanced & Expert Users 1 01-16-2008 03:57 PM
Shadow file definition narik007 SUN Solaris 1 03-13-2006 11:15 AM
File system definition fahmoun Filesystems, Disks and Memory 1 05-10-2005 08:26 AM
AIX definition of maxuprc rakstr AIX 0 08-10-2004 01:41 PM
Definition of a regular file 435 Gavea UNIX for Dummies Questions & Answers 3 12-08-2003 11:27 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-29-2001
annececile's Avatar
annececile annececile is offline
Registered User
  
 

Join Date: Nov 2001
Location: Paris, France
Posts: 42
Unhappy 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 help

Last edited by annececile; 11-29-2001 at 08:38 AM..
  #2 (permalink)  
Old 11-30-2001
Rado1x Rado1x is offline
Registered User
  
 

Join Date: Nov 2001
Posts: 35
Manually configure printers on the HP-UX is not easy. [but possible when you know, what to do]. Use SAM - without problem ....
  #3 (permalink)  
Old 11-30-2001
annececile's Avatar
annececile annececile is offline
Registered User
  
 

Join Date: Nov 2001
Location: Paris, France
Posts: 42
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 (permalink)  
Old 11-30-2001
Rado1x Rado1x is offline
Registered User
  
 

Join Date: Nov 2001
Posts: 35
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 (permalink)  
Old 11-30-2001
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0