Scan network for printers

My stupid D-Link DIR-320 router does not give the user the IP address of the printer attached to it's USB port. Instead, it provides a Windows EXE file for printer configuration, which is not an option for use Debian users. Is there a script that can scan the network looking for network printers in the 192.168.0.* range, just to get me the right address?

Thanks!

It may not give the printer a seperate IP, the gateway address would be the obvious one to try... For that matter the printer may not have an IP at all, just a name via netbeui

> It may not give the printer a seperate IP, the gateway
> address would be the obvious one to try...

You're right! The IP of the router is the IP of the print server. I did not expect that.

> For that matter the printer may not have an IP at all, just
> a name via netbeui

I had to google netbeui to figure out what that is. But I could not figure out how to scan for netbeui names. Can that even be done in Linux?

Thanks!

Samba might be a good starting point. It's a daemon and set of utilities used for dealing with netbeui/SMB/CIFS/whatever marketing calls it these days. Unfortunately I don't know too much more.

Thanks!