http://qa.mandrakesoft.com/show_bug.cgi?id=6053
Product: drakxtools
Component: printerdrake
Summary: problem in detection routine for network printer
Product: drakxtools
Version: 9.2-9mdk
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: printerdrake
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
I've got 2 network printers, a Konica 7830n ( 192.168.1.40 ) and a Lanier 5227
( 192.168.1.30 ) with static IP.
I noticed that when using autodetection, printerdrake is unable to detect them. I have
to specify the IP adress manually, the same applies also sometimes for diskdrake
concerning NFS server detection.
So I dig a little in /usr/lib/libDrakX/printer/detect.pm
Note : my broadcast is 192.168.1.255.
1�/ Is the detection routine ( getIPsInLocalNetworks() ) is very right ?
-> If I cut & paste it on shell, I have this :
[EMAIL PROTECTED] admin]# ping -w 1 -b -n 192.168.1.255 | cut -f 4 -d ' ' |
sed s/:// | egrep '^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+' | uniq | sort
WARNING: pinging broadcast address
-> If I omit the \\ for \
[EMAIL PROTECTED] admin]# ping -w 1 -b -n 192.168.1.255 | cut -f 4 -d ' ' |
sed s/:// | egrep '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | uniq | sort
WARNING: pinging broadcast address
192.168.1.10
192.168.1.101
192.168.1.102
192.168.1.103
192.168.1.104
192.168.1.105
192.168.1.151
192.168.1.152
192.168.1.153
192.168.1.154
192.168.1.160
192.168.1.254
192.168.1.40
-> As the warning is annoying and should not appear :
[EMAIL PROTECTED] admin]# ping -w 1 -b -n 192.168.1.255 2>/dev/null | cut -f
4 -d ' ' | sed s/:// | egrep '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | uniq |
sort
192.168.1.10
192.168.1.101
192.168.1.102
192.168.1.103
192.168.1.104
192.168.1.105
192.168.1.151
192.168.1.152
192.168.1.153
192.168.1.154
192.168.1.160
192.168.1.254
192.168.1.40
-> So this is fine. Now what's about the routine which scan the differents host
( whatNetPrinter ) ?
nmap -r -P0 --host_timeout 400 --initial_rtt_timeout 200 -p 9100
192.168.1.40
First time I test I had nothing and nmap failed with "skipping host
192.168.1.40 due to host timeout" . When I removed --host_timeout 400,
or If I do it a second time it works. So maybe host_timeout value should
be increase ... Don't forget it's milliseconds !
But even by increasing these value, printerdrake still don't give me the
list of network printer printers in my LAN. So what's wrong ? There's
must be something wrong after ...
I expect that printerdrake could give me the list of network printers in
my LAN if I check autodetect printers and select TCP/IP/Socket printers
... And from this list I choose a printer and then configure it ... AM
--
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.