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

  • May 20, 2025

    Automatic Refresh of OEM Build Licenses

  • May 16, 2025

    New class to handle incoming TCP connections

  • April 29, 2025

    Discover your AI-powered writing assistant in 4D Write Pro

Avatar
Marie-Sophie Landrieu-Yvert
• Product Owner • Marie-Sophie Landrieu-Yvert has joined the 4D Product team as a Product Owner in 2017. As a Product Owner, she is in charge of writing the user stories then translating it to functional specifications. Her role is also to make sure that the feature implementation delivered is meeting the customer need.Marie-Sophie graduated from the ESIGELEC Engineering School and began her career as an engineer at IBM in 1995. She participated on various projects (maintenance or build projects) and worked as a Cobol developer. Then she worked as an UML designer and Java developer. Lately her main roles were analyzing and writing functional requirements, coordinate business and development teams.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • 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-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R8 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail Microsoft 365 Network Objects ORDA PDF Pictures Preemptive Programming Qodly Studio REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R8 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail Microsoft 365 Network Objects ORDA PDF Pictures Preemptive Programming Qodly Studio 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