Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enable/restart a printer?

Status
Not open for further replies.

Loonygirl

Technical User
Jun 9, 2004
66
GB
I'm having problems with my work network.
I need to restart a printer, and from my TRU64 box I type:
lpc disable netport1
lpc stop netport1
lpc start netport1
lpc enable netport1
lpc restart netport1

What are the commands for a sco 5 openserver box?
I've tried lpr disable, lpc disable, lpadmin disable, disable, lp disable, and none of them seem to work, and the man lp pages don't seem to be much help to me!!

Thanks,

Sarah
 
It may be that Openserver just needs:

enable <printername>
accept <printername>

ie, none of the lpc stuff.

HTH.
 

# enable netport1
enable: netport1 not enabled : not a valid tty

What's tty? (apologies for it being such a silly question....I've never worked with Unix before, and they've dumped me into this with no training!!)

Thanks,

Sarah
 
Try this utility:
scoadmin

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Ok, fair enough I could look up the tty thing. Not important to me at the moment though!!

Still doesn't help me with the problem on restarting my printers.....does anyone have any clues?

Cheers,

Sarah
 
Sarah,

as PHV suggests, scoadmin (just type scoadmin at the command prompt) should enable you to see the status etc of your printers and to administer them. Can you do a lpstat -p to see what the system thinks your printer(s) are called? A tty is usually a terminal.
 
from root you could do lpstat -t and get a report of printer names and status.

man lpstat will tell you the details of what you can do

scoadmin will allow you to do everything with the printers from the printer section but can be overkill if all you need is to enable.

you get the results of the lpstat and do the appropriate thing, usually a disable printername followed by an enable printername.

tty as returned in the error message refers to serial ports, which can be anything serial, terminals, printers, or modems.

And if anything I suggest doesn't work it will be because I've mixed up the version 4 and version 5 stuff. I don't have 5 available to verify right now.




Ed Fair
Give the wrong symptoms, get the wrong solutions.
 
scoadmin confused me a lot!
I think I restarted the printer, but it still won't print.

I think i have got myself into a pickle anyway....

netport1 is a print server. It serves two printers. Looking at the hosts file shows the IP of netport1. Looking at the printcap file shows that lineprinter and invoiceprinter go via netport1.

I've been in touch with the people who coded our software, and they say that the IPs of the printers are not hard coded into the software.

So now I'm confused...can anyone shed any light onto why netport1 is refusing to print?? If I do an lpstat -t, it shows that jobs are spooling onto the various printers, but aren't printing....

I'm still going with the fact I need ro restart them via Unix, but I'm not sure???

Thanks,

Sarah
 
Ok....I've looke d alittle deepr, and I'm getting more confused!

From windows, I can telnet into the print server - which must mean that a) it's on the right subnet/IP range b) it's powered and accessible.

From the Unix box, I can ping netport1.
However, when I do an lpstat -u, it says that the connection to netport1 has timed out....

I can't think of any reason as to why this would happen?

Sarah
 
And what about this ?
rlpstat lineprinter
rlpstat invoiceprinter

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
rlpstat: ERROR: Printer lineprinter is not configured locally.
Please resubmit the command with a local printer name.

Is it possible because I've migrated the network to a 100MPS network, and the hardware is configured to work only on 10MPS?? Would that cause this problem?!

Sarah
 
Can you please post the contents of /etc/printcap ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
# cat /etc/printcap
# Remote Line Printer (BSD format)
3001: :lp=:rm=netport1:ex:rp=LPT1:sd=/usr/spool/lpd/3001:
sales: :lp=:rm=netport2:ex:rp=LPT1:sd=/usr/spool/lpd/sales:
report: :lp=:rm=netport1:ex:rp=LPT2_PASSTHRU:sd=/usr/spool/lpd/report:
lineprinter: :lp=:rm=netport1:ex:rp=LPT1:sd=/usr/spool/lpd/lineprinter:
invoice: :lp=:rm=netport1:ex:rp=LPT1:sd=/usr/spool/lpd/invoice:
fx2180: :lp=:rm=fx2180:ex:rp=generic:sd=/usr/spool/lpd/fx2180:mx#0:
t6045: :lp=:rm=t6045:ex:rp=MT400:sd=/usr/spool/lpd/t6045:mx#0:

 
that jobs are spooling onto the various printers
lineprinter and/or invoice ?
rlpstat: ERROR: Printer lineprinter is not configured locally
No contradiction with previous assertion ?
What is the result of lpstat -v ?
Anyway, get rid of :ex in your /etc/printcap as this option is only working if the print server is an OSR 5.0.X box.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
so was the printer installed previously or did you install it?

from what I read it is a network printer using IP?
you are trying to connect to it using 100mb when it is a 10mb printer, usually those need to match, but not always.

in /etc/hosts it should have the ip address followed by the printer name

192.168.1.100 printername

like that, but different IP address
 
The printer was installed previously.
We migrated the network onto a different class of subnet, and a different IP range.

So, I changed the hosts file to the new IP, changed the IP of the print server and then rebooted the print server, but it still didn't want to print....

--Sarah
 
No bootptab ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
what does /etc/resolv.conf have in it?
what does "netstat -nr" return?

"From windows, I can telnet into the print server - which must mean that a) it's on the right subnet/IP range b) it's powered and accessible."

b -> yes
a -> no, it just means that the windows machine knows how to get to it.

when you pinged netport1 did you use its' name or ip?
 
I pinged both name and IP....

Anyway....it got sorted in the end (sort of, lol)

Thank you all for your help :eek:)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top