Please help! (printing over IP from unix/Telnet session)

Lovepig

Senior member
Nov 27, 2000
279
0
0
I am trying to print to a static ip address (printer) from multiple remote servers. I'd like to log into the server via telnet and print a report to a printer near me...For example, something like "df -k | lp -d xxx.xxx.xxx.xxx (to print a report of the free disk space on that remote server to a printer near me by ip address. The point of this would be to save configuring this printer on 80+ servers manually.

I am new to Unix and not sure if this can be done without 3rd party software. Since I dont need to print reports all that often i'd like to just do it by command line as needed. I think i am using solaris 6.8 if that matters.

Thanks in advance for any insights!!

-Jeremy the LovePig
 

Lovepig

Senior member
Nov 27, 2000
279
0
0
A little clarification:

when i type in the command (above) i get an "unknown printer" response. I COULD do this by manually adding the printer to each server, or perhaps figuring out how to write a script to do this, but since the printing will be infrequent i was hoping to only print as needed.

I think my problem is really iun the ip address resolution. Either unix or perhaps the telnet session is not attempting to resolve the ip address before returning the "unknown printer" error.

Thanks again!
 

Supergax

Senior member
Aug 6, 2000
639
0
0
If you are entering in the IP address then there is nothing to resolve. It would only have a problem if you were entering a domain and it couldn't resolve it to an IP.
 

rahvin

Elite Member
Oct 10, 1999
8,475
1
0
Did you bother to look at what I posted? Do you know what a printcap file is? You can't use LP if you don't have a printcap file to define how to talk to the printer!

The link I posted it how to print to a printer using the IP address.