Skip to main content
Version: Next

Get system info

Get system info -> Function result

ParameterTypeDescription
Function resultObject🡐System information

Description

The Get system info command returns an object containg information about the operating system and the characteristics of the system hardware and software from the machine it's executed on.

The command returns the following information:

PropertySubpropertyTypeDescriptionExample
accountNamestringThe name of the account for the current user. Typically used to identify an account in the directory."msmith"
coresnumberTotal number of cores. In the case of virtual machines, the total number of cores allotted to it.4
cpuThreadsnumberTotal number of threads.8
machineNamestringThe name of the machine as set in the network parameters of the operating system."LAPTOP-M3BLHGSG"
macRosettabooleanTrue if 4D is emulated through Rosetta on macOS, False otherwise (not emulated or on Windows).True
modelstringName of the computer model."iMac12,2", "Dell", "Acer", "VMware", etc.
networkInterfacescollectionPhysical and active network addresses only
ipAddressescollection
ipstringThe address of the network interface"129.186.81.80"
typestringThe type of the network interface"ipv4", "ipv6"
namestringThe name of the interface."Intel(R) 82574L Gigabit Network Connection"
typestringThe type of interface (note that "ethernet" type is provided for bluetooth interfaces)."wifi", "ethernet"
osVersionstringThe operating system version and build number(*)."Windows 10 Pro 1809 (17763.1577)"
osLanguagestringLanguage set by the current user of the system. Expressed in the standard defined by the RFC 3066. See Language codes in the Design Reference manual for a complete list."fr", "en", "ja", "de", etc.
physicalMemorynumberThe volume of memory storage (in kilobytes) available on the machine.16777216
processorstringThe name, type, and speed of the processor."Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz"
uptimenumberThe total time (in seconds) since the machine was started.3600
userNamestringThe current user on the machine. Typically used as the display name (i.e., when logging into your computer)."Mary Smith"
volumescollection
availablenumberThe remaining space that can be used.524288
capacitynumberThe total volume (in kilobytes) possible.1048576
diskobject | collection (Mac only)
descriptionstringA brief summary describing the disk."HP LOGICAL VOLUME SCSI Disk Device"
identifierstringID of disk(s) (UUID on Mac and physical drive on Windows)Mac - "87547BDD-EA75-4F48-8BFA-9A7E393EEAB0", Windows - "\\\\.\\PHYSICALDRIVE0"
sizenumberThe total capacity (in kilobytes) of the disk104857600
interfacestringThe type of interface on the machine."USB", "network", ,"SATA", "SCSI", "cd/dvd", "PCI"
fileSystemstringThe file system used by the operating system for storing and retrieving files on the hard disk."NTFS", "Journaled HFS+", "GPFS", etc.
mountPointstringThe directory in the currently accessible file system on which an additional file system is mounted (i.e., logically attached). Note that this is in POSIX format for Macs.Mac - "/Volumes/Free HD", Windows - "C:"
namestringonly on Mac - name of the volume"iMac-27-Program6"

(*) To determine only the platform being used, there are two commands available: Is macOS and Is Windows.

Note: In the case of virtual machines, the information returned will be that of the virtual machine.

Example

The following code on a Windows machine:

 var $systemInfo : Object
 $systemInfo:=Get system info

returns an object that contains, for example, the following information:

{        "machineName":"LAPTOP-M3BLHGSG",        "osVersion":"Windows 10 Pro 1809 (17763.1577)",        "osLanguage":"fr",        "accountName":"msmith",        "userName":"mary smith",        "processor":"Intel(R) Core(TM) i7-2600 CPU @ 3.40GH 3.39GHz",        "cores":4,        "cpuThreads":8,        "networkInterfaces": [                   {"type":"ethernet", "name":"Intel(R) 82574L Gigabit Network Connection",                   "ipAddresses": [                     {"type":"ipV4", "ip":"129.138.10.17"},                      {"type":"ipV6","ip":"z1009:0yxw:0000:85v6:0000:0000:ut1s:8001"}                      ]                   },                   {"type":"wifi", "name":"Wi-Fi",                   "ipAddresses": [                     {"type":"ipV4", "ip":"129.138.50.8"},                      {"type":"ipV6","ip":"a1002:0bc8:0000:85d6:0000:0000:ef1g:7001"}                      ]                   }            ],        "uptime":3600,        "model":"HP",        "macRosetta":False,        "physicalMemory":16777216,        "volumes": [          {              "mountPoint": "C:",              "capacity": 1048576,                "available": 524288,              "fileSystem": "NTFS",              "disk": {                  "identifier": "\\\\.\\PHYSICALDRIVE0",                            "interface": "SCSI",                                "size": 157284382,                  "description": "Lecteur de disque"                       }           },          {              "mountPoint": "E:",              "capacity": 51198972,                "available": 51025280,              "fileSystem": "NTFS",              "disk": {                  "identifier": "\\\\.\\PHYSICALDRIVE0",                            "interface": "SCSI",                                "size": 157284382,                  "description": "Lecteur de disque"                       }           }                           ]}

See also

_o_Gestalt
Get application info
Is macOS
Is Windows