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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

solaris printing

Status
Not open for further replies.

ac325ci

MIS
Jan 16, 2004
128
US
how do i add a network printing in either solaris 8 or 10 .. tried many times with no luck.. thanks for the help
 
did a...

lpadmin -p printername -s IP
lpadmin -d printername
lpstat -a
lp -dprintername /tmp/file_to_print

nothing happened
 
I assume the printers are defined in the hosts file and you can ping the printer?
 
The way I've done it previously:

lpsystem -t bsd -y "Comment" printername (lpsystem -l shows you printers registered)

lpadmin -p queuename -s axisboxname!pr1

accept printername

enable printername

This assumes use of an Axis box with the printer haning off port 1, but presumably the same principle should apply if you just use the name of the interface defined in /etc/hosts.
 
hmm i didnt add it to hosts file.. lemme try those things and report back.. thanks
 
i added the printer name to the /etc/hosts file and no luck.. anyone else have any ideas ? tia
 
Code:
[i]Make sure the entry in your /etc/nsswitch.conf shows:[/i]

[b]hosts: files name_service (ie:nis) dns
printers: user files name_service (ie:nis)[/b]

[i]Also check your /etc/printers.conf file:[/i]

Usually with those commands it would do this:

printername:\
           :bsdaddr=Server Name,Printer Name, Solaris:

I have had to change it to read like this:

[b]printername:\
           :bsdaddr=Printer Name, Solaris:[/b]

It would add the local machine as a printer server and would never work when I tried printing.
 
search this forum for "lpadmin" and "netstandard" and follow the instructions. This used to work fine in Sol7*,8,9 and propably in 10 (*this feature was introduced with Sol 7, that's why I havent mentiened releases before Sol7)

Best Regards, Franz
--
UNIX System Manager from Munich, Germany
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top