31
Programming / Re: [Classic REXX] Network Map
« on: March 28, 2025, 09:16:52 am »
Updated
OS2World.com Forum is back !!!
Remember to visit OS2World at:
http://www.os2world.com
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
OK, using your version of the script returns,Code: [Select]Scan started using env parameters: WOL(1) and NET(1)
Computer (from sockets): ARCAOS-44454C4.lan 192.168.0.106
ARCAOS-44454C4: 192.168.0.106: 70:20:84:0e:35:53
wake on lan sent: 7020840e35537020840e35537020840e35537020840e35537020840
e35537020840e35537020840e35537020840e35537020840e35537020840e35537020840e3553702
0840e35537020840e35537020840e35537020840e35537020840e3553
With a 25 second delay between the Computer line and the rest. The line wrap was left. And your last idea shows in the .lan suffix.
OK, did that, rebooted to be sure. Still nothing detected by macaddr.cmd unless I have my machine in the hosts file.
Hi Dave,
A last and final suggestion trying to use rexxsocket
Can you give a try adding following codes just under the STC =Code: [Select]DO
X = TRANSLATE( 'abcdefghijkl', host.i.macaddr, 'ab:cd:ef:gh:ij:kl' )
SCT = SockSocket( 'AF_INET', 'SOCK_DGRAM', 'IPPROTO_UDP' );
/* experimental */
TerminalAddr.!addr=host.i.ipaddr
Call SockGetHostByAddr TerminalAddr.!addr, "TerminalAddr.!"
If strip(TerminalAddr.!name)\='' then do
say "SockGetHost: "||TerminalAddr.!name||':' host.i.ipaddr||':' MAC;
host.i.name = TerminalAddr.!name
End
/* end experimental */
If a name is returned, it should display SockGetHost: ....
No STC= here
Funny thing is that I had it running a few months back without loading any DLL's high.
Is there a list of needed DLL's somewhere?
Tried PM DLL but it hangs forever with "Building tree..................".
Just installed Dooble Qt5 using ANPM. Seems like all libraries are in place but Dooble won't start.
No trap file and nothing in popuplog, ideas anyone?
OK, did that, rebooted to be sure. Still nothing detected by macaddr.cmd unless I have my machine in the hosts file.
DO
X = TRANSLATE( 'abcdefghijkl', host.i.macaddr, 'ab:cd:ef:gh:ij:kl' )
SCT = SockSocket( 'AF_INET', 'SOCK_DGRAM', 'IPPROTO_UDP' );
/* experimental */
TerminalAddr.!addr=host.i.ipaddr
Call SockGetHostByAddr TerminalAddr.!addr, "TerminalAddr.!"
If strip(TerminalAddr.!name)\='' then do
say "SockGetHost: "||TerminalAddr.!name||':' host.i.ipaddr||':' MAC;
host.i.name = TerminalAddr.!name
End
/* end experimental */
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....
Into your router as seen on the picture which I think has the DNS server.
Are you able to set a name to a connected @macaddr under setting ?
No, it doesn't even show my machine, only the ones connected by WiFi. It does figure out the Roku stickQuoteIf yes, set to your ArcaOS @macaddr name to the one you set under config.sys (hostname)
Issue netstat -r and check the default router is your router as seen into the picture.
e.g. My internet box is at 192.168.1.254
netstat -r
destination router netmask metric flags intrf
default 192.168.1.254 0.0.0.0 0 UGP lan0
May be you could use nsupdate to update your server ! not sure it will work, never tried...
Yes, the router is at 192.168.0.1, resolv2 shows 192.168.0.1 as the DNS server. It is a crappy router thingy and doesn't have much that can be changed in the settings. I'm stuck with it as the SIM card is tied to the router thingy as well as the local and only cell tower.
There's another layer of NAT too,Code: [Select]
WAN IP Address
10.13.117.231
I could change the DNS server by editing resolv2 but I doubt it would make a difference.
Probably have to ping the whole sub-net to find everything connected.
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 )
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.
Hello Remy
I think you found it.
Joomla let me create a "child" of the template that overrides the father, so I quickly put your template.css (I can also revert it very fast if there is some problem) and I think it worked. You are a genius
It works fine on Dooble Qt5, but not our old Firefox. But it is very good, it is a step forward.
Everybody, please test the site further, visit the pages and let me know.
Regards
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 )
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.
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 ...?
Hello
Someone at the Joomla forum gave me hint, but still do know if that can be.
With the firefox inspector (on Windows) if I disable "<div class="site-grid">" I get the similar issue on Firefox for Windows. He told me that it is possible that the other browsers does not implement "<div class="site-grid">" correctly but I'm still not sure about it.
Regards