4D v17 goes a step further to let you create a customized server administration dialog. Following the ability to retrieve information about users & processes, getting all runtime information about 4D Web server, as well as details about the active license, you now have the ability to also retrieve all of the hardware and system details for the machine running your 4D server.
Do you need to know what OS is being used, what processor(s), how much RAM is available, etc.? Just call the new Get system info command, locally or remotely! And that’s not all, this command can be extremely useful for quickly diagnosing and solving any problems that may arise.
Get information about the system
The Get system info command returns an object that contains the information shown below:
{ "machineName": "iMac27-Program6", "accountName": "marie-sophie", "userName": "Marie-Sophie", "osVersion":"macOS Version 10.12.6 (Build 16G29)", "uptime": 376254, "physicalMemory": 16777216, "osLanguage": "fr", "processor": "Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz", "cores": 4, "cpuThreads": 8, "networkInterfaces": [ { "type": "ethernet", "name": "Ethernet", "ipAddresses": [ { "ip": "fe80::433:3543:bb7a:89f5", "type": "ipv6" }, { "ip": "192.168.18.7", "type": "ipv4" }] }, { "type": "wifi", "name": "Wi-Fi", "ipAddresses": [ { "ip": "fe80::1c30:3e27:fc9e:a37e", "type": "ipv6" }, { "ip": "192.168.1.112", "type": "ipv4" }] } ], "model": "iMac12,2", "volumes": [ { "mountPoint": "/", "capacity": 975922976, "available": 781188216, "filesystem": "hfs", "name": "iMac-27-Program6", "disk": { "identifier": "87547BDD-EA75-4F48-8BFA-9A7E393EEAB0", "interface": "SATA", "description": "WDC WD1001FALS-403AA0", "size": 975922976 }}] }
Mac or Windows?
Two new commands have been added to allow you to know which platform (macOS or Windows) your code is actually running on: Is macOS and Is Windows. As a consequence, the _o_PLATFORM PROPERTIES command is no longer needed for that purpose.
Note: the _o_Gestalt command is now deprecated and the Current machine owner has been renamed to Current system user.