[SOLVED] Re: How to get the ip address of a network printer by the an uri like ..

Joachim Backes joachim.backes at rhrk.uni-kl.de
Thu Nov 25 06:35:27 UTC 2010


On 11/24/2010 04:10 PM, Robert Moskowitz wrote:
> On 11/24/2010 09:24 AM, Joachim Backes wrote:
>> I have attached a lexmark network printer e120n by the zeroconf protocol
>> (avahi).
>>
>> My problem: For some reasons, I need the printer's IP address.
>>
>> The uri is "dnssd://Lexmark%20E120n._pdl-datastream._tcp.local"
> 

Thanks to all who replied to the above question. But the avahi-tools did
not solve my problem. I found another solution: Because the MAC address
of the printer is known (and does not change), the *arping* program gave
me the solution: arping -I eth0 <the printer's MACaddress>

There was only one problem: The Fedora version of arping did not allow
MAC addresses as destination, but I found a version in freshmeat.net
working for me (arping-2.09) :

sudo /usr/local/sbin/arping -i eth0 00:04:00:f9:b0:f9

ARPING 00:04:00:f9:b0:f9
60 bytes from 192.168.100.107 (00:04:00:f9:b0:f9): icmp_seq=0 time=1.506
msec
60 bytes from 192.168.100.107 (00:04:00:f9:b0:f9): icmp_seq=1
time=794.000 usec
60 bytes from 192.168.100.107 (00:04:00:f9:b0:f9): icmp_seq=2
time=865.000 usec
60 bytes from 192.168.100.107 (00:04:00:f9:b0:f9): icmp_seq=3
time=802.000 usec
...
...

Kind regards

-- 
Joachim Backes <joachim.backes at rhrk.uni-kl.de>

http://www.rhrk.uni-kl.de/~backes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6131 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20101125/35a55efb/attachment.bin 


More information about the users mailing list