Hi buddy,
Please follow the below procedure.
1]First put the entry of IP and hostname of printer in /etc/hosts file.
2]check telnet& ping is working foer that printer.
3] IF all above things are through, go to SAM
4]SAM - >printer & plotters - > LP spooler ->
printer & plotters
-> Add Network-Based Printer/Plotter -> It will ask Do you want to proceed with the task?
give option - yes
then select option 1]Spooler Administration (super-user only)
again select 1) Add printer to local spooler
Enter the network printer name or IP address (q - quit):"hostname/IP "
After this give the option 2.
"here is your problem occuring"
you need to give option 58 - > give "0" -> q .
I think your prob will be resolve.
5]Test it with
# lp -d /test >printername>;lpstat
Cheers!!!!
rgds
YOgesh