Show Posts

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.


Messages - Remy

Pages: 1 2 [3] 4 5 ... 59
31
Programming / Re: [Classic REXX] Network Map
« on: March 28, 2025, 09:16:52 am »
Updated

32
Programming / Re: [Classic REXX] Network Map
« on: March 28, 2025, 05:34:48 am »
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.

No more need to add your hosname and @ip into hosts file which has @localip only
The lan is taken because you intrf is on a lan (this is a commun default domain used for home domain when on lan)
All my equipment have ".lan" set by my internet router DNS when on, lan interface 

The 25s may be normal with WOL set to 1 making it scans all @ip up to  .255
I tried a litle modification to set as "UNDEFINEDxxx" equipment not having a hostname (could not try)
My last modification is to add UNDEFINEDxxx (xxx is the last qualifier of the @ip) for registered equipment without hostname and add into WPS parms of this UNDEFINED hostname the corresponding found @ip following hostname
I changed some process to use @ip if hostname has UNDEFINED into its name

I comment the 2 initial SET line into de macaddr.cmd and use those from config.sys
uncomment bof lines if you would like set these two vars without config.sys update
e.g.  remove /* and */ of both lines and set value to 1 or 0
/* 'SET WOL=1' */   
/* 'SET NET=1' */

Curious to know if undefined equipment are found with this update ?
(restriction, changing an equipment without the hostname with an other equipment without hostname and using the same @ip may be indicated using same icon title)

Update: NO good, have to review (a litle better but undefined didn't work as expected)     

33
Programming / Re: [Classic REXX] Network Map
« on: March 28, 2025, 01:23:51 am »
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

Hi well seen ! I did a finger check ( SCT and not STC )

I just tried to modify some codes, I could test it under my system with good result but I always have a hosname and couldn't test my updates fully yet.
Here is my macaddr.cmd

PS:  Computer (from host) means that host command was used while Computer (from sockets) means that hostname wasn't return and was build using sockets information to complete system hostname with intrf info used as default local home domaine 

You can add icons from following os2world link
https://www.os2world.com/forum/index.php/topic,3867.msg47719.html#msg47719

34
Setup & Installation / Re: Dooble Qt5
« on: March 27, 2025, 08:58:35 pm »
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..................".

e.g. QTwebengine

35
Setup & Installation / Re: Dooble Qt5
« on: March 27, 2025, 08:27:16 pm »
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?

Often, when a program doesn't start, missing DLLs but this can be seen or not enough shared memory below 512M needed to load dlls
Try setting Dooble QT5 dlls to be loaded high, use mem /V command to check: Shared low memory available size   

36
Programming / Re: [Classic REXX] Network Map
« on: March 27, 2025, 08:20:15 pm »
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: ....   

37
Programming / Re: [Classic REXX] Network Map
« on: March 27, 2025, 02:20:48 am »
Your dhcp config file under mptn\etc

should have:
# The following are requested for interoperability with some servers which
# need explicit requests.
 
option 1                                 # Subnet Mask
option 3                                 # Router
option 6                                 # Domain Name Server
option 12 "ARCAOS-44454C4"               # host name
option 15                                # Domain Name
option 28                                # Broadcast Address
option 33                                # Static Routes
option 60 "IBMWARP_V4.1"                 # Vendor Class
option 77 "IBMWARP_V4.1"                 # User Class
 
#updateDNSA "nsupdate -h%s -d%s -s"d;a;*;a;a;%s;s;%s;3110400;q" -q"

(I have lan as domain name but this can differ - do not use local)
Adding the domain name and enable the updateDNSA will generate a command to the server to update entries if recognized by it.
The used @ip will then have a hostname
   

38
Programming / Re: [Classic REXX] Network Map
« on: March 27, 2025, 01:26:40 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....

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

39
Programming / Re: [Classic REXX] Network Map
« on: March 26, 2025, 11:34:32 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 ?

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

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.

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.

40
Programming / Re: [Classic REXX] Network Map
« on: March 26, 2025, 10:03:07 pm »
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.

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


41
General Discussion / Re: OS2World Site Update
« on: March 26, 2025, 09:29:30 pm »
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

Hi Martin,

As I wrote it, Firefox doesn't support grid gap etc...  firefox, too old yet but it should fallback to flexbox as I can see it.

I just found having left a  "height <=" on a @media entry. I would suggest you to replace all occurances of
"height <="  to  "max-height:"  and  "height >="  to  "min-height:"   too.

(the second case seems not to exist but, it is easy to do a replace all)     

42
Programming / Re: [Classic REXX] Network Map
« on: March 26, 2025, 07:58:57 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 )

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.

Hi!

What is the name returned from a nslookup 192.168.0.106 ?
Is it the one under nostname from config.sys ?

43
Programming / Re: [Classic REXX] Network Map
« 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....


44
Programming / Re: [Classic REXX] Network Map
« on: March 26, 2025, 06:53:16 am »
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 ...?

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   

45
General Discussion / Re: OS2World Site Update
« on: March 26, 2025, 05:58:48 am »
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

I updated template.css for a try only  (the not compressed css file)
replaced all occurences of width >= or width <=

Pages: 1 2 [3] 4 5 ... 59