Telnet to usb device on interface usb0 (and find IP of device)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270
Rep:
Telnet to usb device on interface usb0 (and find IP of device)
Hello! I recently read this article about changing the ready message on HP printers. In order to do so, one must connect to port 9100 on a HP printer. My printer is USB, and I thought I'd try to figure out how to telnet into it. I setup a usb0 interface by running "ifconfig usb0 10.1.0.1" Wireshark confirms that I usb0 is a usb network interface. (WOOT!) However...
From here, I'm not sure how to:
a. tell if this is even remotely possible
b. find the ip of my printer
c. connect to it by telnet over my usb0 interface
If this is impossible or massively time consuming or not even worth it - please let me know. I'd appreciate any help, as I've never done ANYTHING like this before. I just need a little advice on where to go.
What is the model number of your printer?
At first glance since your printer is connected via USB and not ethernet it is not possible using the method from the article. Depending on what language your printer uses (PCL etc) you might be able to send the commands by just writing to its device.
A quick look at the specification shows the print language as Lightweight Imaging Device Interface Language (LIDIL) so I would not expect that message trick to work on your printer. I know nothing about the printer language or if it has similar commands used by the printers in the article. So I would say its not worth the effort but others might have more knowledge.
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270
Original Poster
Rep:
Well, thanks, that's a perfect answer to my question. I'll give it a shot anyway, but you're probably right, it's not worth my time. I've got a friend who has a networked one that I'm almost sure will work who I'll ask if I can use his, I'd just use one of those "net use lpt1" commands or something similar to connect to it, and work from there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.