4D Blog

Home Product Get machine hardware information

Get machine hardware information

May 9, 2018

Product

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.

Discuss

Tags Administration, Objects, Programming, v17

Latest related posts

  • December 3, 2025

    Give AI to a 30 years old 4D application

  • November 28, 2025

    ORDA – Handle an event-driven logic during database operations

  • November 27, 2025

    ORDA – Permissions – Restrict / allow web access to the resources in one click

Avatar
Marie-Sophie Landrieu-Yvert
- Product Owner - Marie-Sophie Landrieu-Yvert joined the 4D Product team as a Product Owner in 2017. In this role, she is responsible for writing user stories and translating them into functional specifications. She also ensures that the delivered feature implementation meets the customer's needs. Marie-Sophie graduated from the engineering school ESIGELEC and began her career as an engineer at IBM in 1995. She took part in various projects (maintenance and development projects) and worked as a COBOL developer. She then moved on to work as a UML designer and Java developer. More recently, her main responsibilities included analyzing and writing functional requirements, and coordinating business and development teams.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy