Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to fire a print job on a printer at DHCP network?? Post 71904 by pankajgupta on Tuesday 17th of May 2005 02:33:57 AM
Old 05-17-2005
Question How to fire a print job on a printer at DHCP network??

Hi All,
I have an issue related to printing on a printer at DHCP network.

We have n numbers of printers which can be attached to n numbers of telnet clients of a server. Telnet sessions can be obtained from any machine and any available printer will be attached to that machine. Our aim is to get a printout from the same machine (telnet client) from which it was fired to the UNIX server. Now as soon as the printer is attached to the dummy machine (telnet client), an IP is assigned to it by the DHCP network. Since this IP is dynamic in nature, we are unable to fire a print to that particular printer.
lpd command doesn't work as IP is dynamic in nature. It asks for the queue name which can not be prepared at run time(its the task of system administrator to configure queues) even if we know the printer's run time IP address.

Please tell me if there is any way to solve this issue. I heard that by directly writing to the printer port I could resolve the printer queue issue but I am not sure how to send text files directly to a printer port. I can send data in a form of strings but not as a text file.

Thanks a lot in advance.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

print a file on a network printer from one lan to another

Hi, I have 2 different lan, each with a pc an a network printer. I can access both lan using ssh. how do I print a file from the first lan to a network printer on the second one. Thanks in advance Philippe sorry it was suposed to go to the dummies forum (3 Replies)
Discussion started by: amazilia
3 Replies

2. IP Networking

Connecting to DHCP network with Realtek interface

I have a Realtek 8139 interface in one of my machines and it will not connect to the network. /etc/rc.conf contains ifconfig_rl0="DHCP" and "rl0" was obtained from a dmesg. A network interface restart yields the following: # /etc/rc.d/netif restart Stopping network: lo0 rl0 fwe0 plip0. rl0: no... (3 Replies)
Discussion started by: figaro
3 Replies

3. IP Networking

How to resolve hostnames on DHCP home network

Hi, I have a PC running Solaris 10 (hostname MARKUNIX) and a laptop running WinXP (hostname MARK-LAPTOP). Both are connected to broadband via a router. IP addresses for each are determined via DHCP (192.168.1.nn) and I do not leave either on, 24x7. I am running Oracle on MARKUNIX and... (1 Reply)
Discussion started by: ksdmnv
1 Replies

4. Solaris

Configure network in unix with dynamic ip on my DHCP server?

can anyone tell me how can i configure network in unix with dynamic ip on my DHCP server?? (7 Replies)
Discussion started by: Reham.Donia
7 Replies

5. IP Networking

DHCP and DNS on a home network

Let's say I have a home network containing a server that acts as the resident gateway and serves dhcp and dns requests. Laptop A is frequently connected and disconnected from the network as it is used as a travel computer. Is there a secure way to make sure that whenever laptop A is connected to... (3 Replies)
Discussion started by: Zygomorph
3 Replies

6. UNIX for Dummies Questions & Answers

Print to a network printer on DG/UX

i need to print a file on a network printer with an ip 128.233.1.6 (for example) on a DG/UX (System V) Release 5.4R3.10 so that when telnet from windows client can print on the network printer. (2 Replies)
Discussion started by: kamwa
2 Replies

7. Ubuntu

Ubuntu Install on Sun Fire X4100 network issues

Hi I have two Sun Fire X4100 machines with Ubuntu 12.04 installed on them. I am able to configure the Net Mgt port with an IP address and access the ILOM from the browser. I can also boot the Ubuntu installed and redirect the output. The issue i have is that when i configure the network... (0 Replies)
Discussion started by: kaf3773
0 Replies

8. Solaris

Sun-Fire-V490 Printer Issue After Upgrade of Solaris

Hey Guys I am new here, dont know if any one can assist me with this issue. I have a Sun-Fire-V490 machine that was upgraded to version 9 and patched a few months back. Problem is a few network printers managed by the server is printing an extra page that comes out before and after every print... (0 Replies)
Discussion started by: mprogams
0 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 08:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy