OS/2, eCS & ArcaOS - Technical > Programming

[Classic REXX] Network Map

<< < (5/10) > >>

Remy:

--- Quote from: Dave Yeo on March 25, 2025, 03:55:06 pm ---
--- 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.

--- End quote ---

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

Dave Yeo:

--- Quote from: Remy on March 26, 2025, 10:03:07 pm ---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 ?

--- End quote ---

No, it doesn't even show my machine, only the ones connected by WiFi. It does figure out the Roku stick


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

--- End quote ---

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: ---
WAN IP Address
10.13.117.231

--- End code ---

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.

Remy:

--- Quote from: Dave Yeo on March 26, 2025, 10:34:27 pm ---
--- Quote from: Remy on March 26, 2025, 10:03:07 pm ---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 ?

--- End quote ---

No, it doesn't even show my machine, only the ones connected by WiFi. It does figure out the Roku stick


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

--- End quote ---

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: ---
WAN IP Address
10.13.117.231

--- End code ---

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.

--- End quote ---

hum!

Into your ZTE MF275R, what do you have set under setting -> connection mode ?
I suppose automatic.
Do you have more available option under manual ?
- e.g. an option to set a specific @ip (and/or hostname) to a @macaddr or any other usefull option ?

Under my box, I added a setting to always use the same @ip (reserved from ip pool address) when my PC @macaddr is requesting a connection (dhcp) - the @ip set is returned to ArcaOS dhcp

Can you give a try and check result:
- tracerte 192.168.0.1
- tracerte 192.168.0.104
- tracerte 192.168.0.xxx (xxx, an other connected equipment)
- tracerte ARCAOS-44454C4

note: TRACERTE, PING can be ignored by some equipment for security issue or else.

Remy:

--- Quote from: Remy on March 26, 2025, 07:21:13 am ---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....

--- End quote ---

Hi Jan-Erik,
The  (icoplte  is the result going through  X = TRANSLATE( 'abcdefghijkl', host.i.macaddr, 'ab:cd:ef:gh:ij:kl' ) with host.i.macaddr set to "(incomplete)"
Than, T has the X (supposed @macaddr) copied 16 times.
finally:
        STG = S||T||G;
        SAY '>' STG '<'

Changing the X= to
        IF DATATYPE( STRIP( host.i.macaddr ), 'X' ) THEN X = TRANSLATE( 'abcdefghijkl', host.i.macaddr, 'ab:cd:ef:gh:ij:kl' )
   Else X=host.i.macaddr

Will result into (incomplete) repeated 16 times

Dave Yeo:

--- Quote from: Remy on March 26, 2025, 11:34:32 pm ---
--- Quote from: Dave Yeo on March 26, 2025, 10:34:27 pm ---
--- Quote from: Remy on March 26, 2025, 10:03:07 pm ---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 ?

--- End quote ---

No, it doesn't even show my machine, only the ones connected by WiFi. It does figure out the Roku stick


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

--- End quote ---

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: ---
WAN IP Address
10.13.117.231

--- End code ---

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.

--- End quote ---

hum!

Into your ZTE MF275R, what do you have set under setting -> connection mode ?
I suppose automatic.
Do you have more available option under manual ?
- e.g. an option to set a specific @ip (and/or hostname) to a @macaddr or any other usefull option ?

--- End quote ---

Disconnected from the internet, changed to manual, let the router restart. No new settings. Just that I have to manually connect to the internet on the home page, so I switched back to automatic


--- Quote ---Under my box, I added a setting to always use the same @ip (reserved from ip pool address) when my PC @macaddr is requesting a connection (dhcp) - the @ip set is returned to ArcaOS dhcp

Can you give a try and check result:
- tracerte 192.168.0.1
- tracerte 192.168.0.104
- tracerte 192.168.0.xxx (xxx, an other connected equipment)
- tracerte ARCAOS-44454C4

note: TRACERTE, PING can be ignored by some equipment for security issue or else.

--- End quote ---

I have no such settings, though what my son did was assign himself an IP address not in the DHCP pool after turning off DHCP on his box. You can see on the image I posted earlier how some devices don't have an address. I might do similar.
tracerte works for some addresses, including ARCAOS-44454C4 with one hop, or times out (* * *)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version