- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing Network Printer on Unix
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2001 05:33 AM
03-05-2001 05:33 AM
Changing Network Printer on Unix
unix server and I was told the lpadmin
was what I needed to use. I have the IP address for the laserjet 8150 I want to
add.
However, I can't seem to figure out how to use
the lpadmin command. The current network
printer on the unix server is also not using
the spooler process.
Any help??? Please note I am not a unix
expert I am taking over an existing account.
Thank You,
Laurie Brown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2001 05:45 AM
03-05-2001 05:45 AM
Re: Changing Network Printer on Unix
What do you want to change ?
Marcel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2001 06:15 AM
03-05-2001 06:15 AM
Re: Changing Network Printer on Unix
new IP address. It's a different network
printer I want to setup, a laserjet 8150.
I can't find the file where the current
network printer is setup.
Laurie Brown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2001 06:22 AM
03-05-2001 06:22 AM
Re: Changing Network Printer on Unix
If you want to change the IP-adress, you can't
do it whith the lpadmin command.
You can use an another application, jetadmin.
Maybe it is already installed on your system.
try: jetadmin.
Marcel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2001 06:33 AM
03-05-2001 06:33 AM
Re: Changing Network Printer on Unix
if the printer was configured with jetadmin you could change IP address in the file:
/etc/lp/interface/
Look there for the line
PERIPH=
and add/replace your address ie:
PERIPH=192.1.1.1
If the printer is not setup with jetadmin you have to delete and recreate the printer.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2001 07:43 AM
03-05-2001 07:43 AM
Re: Changing Network Printer on Unix
files are empty. The old network printer was
created with lpadmin, I just have never setup
a network printer on a unix box before.
The former unix person said he used lpadmin
and I am trying to setup a new network printer.
I have the ip address but I can't seem to use
the command correctly.
Laurie Brown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2001 07:50 AM
03-05-2001 07:50 AM
Re: Changing Network Printer on Unix
if your laserjet has an internal Networkcard (Jetdirect) or is connected via external JetDirect-Box i would recommend installing jetadmin for HP-UX.
Generally the use of SAM would be much easier to configure a printer.
This will work for standard remote and jetadmin printers.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2001 08:01 AM
03-05-2001 08:01 AM
Re: Changing Network Printer on Unix
I agree Andreas...you talk about an ip-number, so I believe the printer has an NIC. My advice is to install jetadmin. Is it not possible to speak wtih your unix-person, maybe he can explain what he did. If there is no NIC and the printer is parallel on your hp-ux system,
you can use sam for installing printers.
Marcel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2001 09:45 PM
03-05-2001 09:45 PM
Re: Changing Network Printer on Unix
##############################################
/usr/sbin/lpshut
sleep 2
/usr/sbin/lpadmin -xprinter_name
/usr/sbin/lpadmin -pprinter_name -v/dev/null -ormprinter_name -orptext -ocmrcmodel -o osmrsmmodel
sleep 2
/usr/sbin/lpsched
sleep 2
accept printer_name
sleep 2
enable printer_name
/usr/sbin/lpadmin -dprinter_name
############################################
Note , the printer_name is the printer name you used in your network , and it can be resolved to IP address ( so you should include it in you /etc/hosts file or in the nis Host map )
Hope this helps.( and it works in our env , HP8100 printer , whith unix workstations )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2001 04:55 AM
03-06-2001 04:55 AM
Re: Changing Network Printer on Unix
Using JetDirect software, the printer can easily be defined in one step once the printer has an IP address, subnet mask and gateway. The command is addqueue. The advantage to using JetDirect software is that all the options listed in man net_lj5x will function.
However, as many sysadmins for HP-UX have discovered, non-HP-UX systems such as NT or other Unix boxes cannot handle any -o options and every job from HP-UX must be preformatted (especially ASCII files) before sending the job to a remote print server (which is what port 515 on the JetDirect card is using with lpr).
So you have two choices:
1. Use JetDirect software (always download the latest copy from www.hp.com) and have controls such as duplex, paper trays, fonts, image rotation, etc), or
2. Use the previous post about setting up a remote print server using lpadmin and then write wrappers to handle the stairstep effects seen when printing HP-UX ASCII files.
Bill Hassell, sysadmin