http://qa.mandrakesoft.com/show_bug.cgi?id=6053





------- Additional Comments From [EMAIL PROTECTED]  2003-10-30 15:55 -------
both support this, the problems seems to comes from host_timeout values ( 400ms )

see :
1°/ default printerdrake setting :


[EMAIL PROTECTED] admin]$ nmap -r -P0 --host_timeout 400 --initial_rtt_timeout 200
-p 9100
 
Starting nmap 3.30 ( http://www.insecure.org/nmap/ ) at 2003-10-30 15:50 UTC
WARNING: No targets were specified, so 0 hosts scanned.
Nmap run completed -- 0 IP addresses (0 hosts up) scanned in 0.021 seconds
[EMAIL PROTECTED] admin]$ nmap -r -P0 --host_timeout 400 --initial_rtt_timeout 200
192.168.1.30 192.168.1.40
 
Starting nmap 3.30 ( http://www.insecure.org/nmap/ ) at 2003-10-30 15:50 UTC
Skipping host 192.168.1.30 due to host timeout
 
Skipping host 192.168.1.40 due to host timeout
 
Nmap run completed -- 2 IP addresses (2 hosts up) scanned in 1.933 seconds


2°/ with host_timeout = 4000 ( 4000ms -> 4s )

[EMAIL PROTECTED] admin]$ nmap -r -P0 --host_timeout 4000 --initial_rtt_timeout 200
192.168.1.30 192.168.1.40
 
Starting nmap 3.30 ( http://www.insecure.org/nmap/ ) at 2003-10-30 15:50 UTC
Skipping host 192.168.1.30 due to host timeout
 
Strange read error from 192.168.1.40 (104): Operation now in progress
Interesting ports on 192.168.1.40:
(The 1635 ports scanned but not shown below are in state: closed)
Port       State       Service
21/tcp     open        ftp
23/tcp     open        telnet
25/tcp     open        smtp
80/tcp     open        http
113/tcp    open        auth
515/tcp    open        printer
631/tcp    open        ipp
1024/tcp   open        kdm
9100/tcp   open        jetdirect
 
Nmap run completed -- 2 IP addresses (2 hosts up) scanned in 5.832 seconds


3°/ complete nmpa :

[EMAIL PROTECTED] admin]$ nmap 192.168.1.30
 
Starting nmap 3.30 ( http://www.insecure.org/nmap/ ) at 2003-10-30 15:54 UTC
Interesting ports on 192.168.1.30:
(The 1637 ports scanned but not shown below are in state: closed)
Port       State       Service
21/tcp     open        ftp
23/tcp     open        telnet
80/tcp     open        http
514/tcp    open        shell
515/tcp    open        printer
631/tcp    open        ipp
9100/tcp   open        jetdirect
 
Nmap run completed -- 1 IP address (1 host up) scanned in 9.072 seconds


4°/ something interesting :

[EMAIL PROTECTED] admin]$ nmap -r -P0 --host_timeout 400 --initial_rtt_timeout 200
-p 9100 192.168.1.30 192.168.1.40
 
Starting nmap 3.30 ( http://www.insecure.org/nmap/ ) at 2003-10-30 15:54 UTC
Interesting ports on 192.168.1.30:
Port       State       Service
9100/tcp   open        jetdirect
 
Interesting ports on 192.168.1.40:
Port       State       Service
9100/tcp   open        jetdirect
 
Nmap run completed -- 2 IP addresses (2 hosts up) scanned in 0.088 seconds

I suspect it's because I run nmap several or someone print to this laser just
before ...

-- 
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.


------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: UNCONFIRMED
creation_date: 
description: 
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

Reply via email to