OS/2, eCS & ArcaOS - Technical > Programming
[Classic REXX] Network Map
Greg Pringle:
My experience is that a number of devices do not respond to a broadcast ping. They will respond to a direct ping unless the device blocks it. So directly ping each address from 1 to 254 as in
ping 192.168.0.1
ping 192.168.0.2
ping 192.168.0.3
etc.
Dave Yeo:
--- Quote from: Jan-Erik Lärka on March 25, 2025, 06:33:46 am ---It is supposed to find all machines on the network, and here it does!
My hosts file on this newlt installed ArcaOS 5.0.7, read
127.0.0.1 localhost
and nothing else.
My router thus provide my machines with the information and ip-number through dhcp as the vacuum cleaner was introduced just days ago... and when the script run again it update the info (and icons, if SET NET=1 is active) and show that 2 devices has gone offline over the night.
So the question remain... why host command behave the way it does.
"DHCP Monitor" of course list the ip-address on LAN0 for you?
( Desktop\Computer\System Setup\Network\TCP/IP\DHCP Monitor )
--- End quote ---
DHCP Monitor shows my address as 192.168.0.106. My router doesn't show this. Possibly due the weird router/web thingy. I'm on a LTE connection and the router thing has a sim card and mostly uses WiFi for the local connections. MY OS/2 computer is plugged into the one lan port on the router thing.
I see the router doesn't list this computer on the device page. Later I should dig out my T42 and test with it as it does connect through wireless.
I can ping most of the machines on my net, perhaps the broadcast ping that Greg mentioned gets filtered.
Andi B.:
I've also seen it many times that a lot of devices do not respond to pings on broadcast address. OS/2 boxes are the only ones which always answers. But most other computers do not. I think no even all of my SoHo printers do.
There's a utility which pings every address. LanScan? Of course it takes time to get a full list especially with a network bigger than /24 (f.i. /16 - netmask 255.255.0.0).
Remy:
--- Quote from: Jan-Erik Lärka on March 24, 2025, 10:45:00 pm ---If the host command in TCP/IP say it is unknown, then one can't do much about it in the script.
Anyone know why host can't retrieve it?
Is it some security setting in the router, a missing setting or ...?
--- End quote ---
Same result as Daven nothing !
ArcaOS 5.1.1 default dhcp settings
What should ACTIVE be into 'OS2ENVIRONMENT' ? nothing here
Should the ArcaOS be shared on the network or included into some workgroup ?
Only have my PC - internet box on which other equipement are connected through ethernet or wifi on the same host network
Remy:
Seen.
I have a specific ARCAOS host_name under config.sys
Into my box and because my PC can be booted OS/2 or Windows using same interface, I have set a name to the corresponding @ip / macaddr
Using nslookup on my PC @ip I could see that my computer_name set into the box differs from the config.sys and after updating config.sys, it works
With WOL=0 and NET=0, it display all local equipments.
When I set WOL=1, I have all equipment but also many
(icoplte (icoplte (icoplte (icoplte (icoplte (icoplte ....
With NET=1, I have the folder created as well all found equipment but none have an icon !
Where are icon found ?
I would suggest a change into the rexx which could prevent this kind of no returned result.
Check the interface used and look for its @ip followed by a nslookup on the @ip which will return the hostname and then run into the process like if the
the host_name was found into os2env variables....
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version