OS/2, eCS & ArcaOS - Technical > Programming

[Classic REXX] Network Map

<< < (6/10) > >>

Remy:
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
   

Dave Yeo:
OK, did that, rebooted to be sure. Still nothing detected by macaddr.cmd unless I have my machine in the hosts file.

Jan-Erik Lärka:
SAY '>'STG'<'
is there to say it sent that as a Wake on Lan call to that machine.
But since the mac address isn't there it can't create a proper call to wake it up.

Remy:

--- Quote from: Dave Yeo on March 27, 2025, 03:21:23 am ---OK, did that, rebooted to be sure. Still nothing detected by macaddr.cmd unless I have my machine in the hosts file.

--- End quote ---

Hi Dave,

A last and final suggestion trying to use rexxsocket
Can you give a try adding following codes just under the STC = 


--- Code: ---    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 */


--- End code ---

If a name is returned, it should display SockGetHost: ....   

Jan-Erik Lärka:
Feel free to modify the code and post it here, both for testing purposes and to improve it.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version