| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
SystemInfo.LinuxSystemInfo
Queries Linux system information details.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| SystemInfo | 11.2 | ❌ No | ❌ No | ✅ Yes | ✅ Yes, on Linux | ❌ No |
MBS( "SystemInfo.LinuxSystemInfo" )
Parameters
none
Result
Returns JSON or error.
Description
Queries Linux system information details.Returns JSON with various information about the linux environment.
Values include:
| UpTime | Seconds since boot |
| Loads | 1, 5, and 15 minute load averages |
| TotalRAM | Total usable main memory size |
| FreeRAM | Available memory size |
| SharedRAM | Amount of shared memory |
| BufferRAM | Memory used by buffers |
| TotalSwap | Total swap space size |
| FreeSwap | Swap space still available |
| Processes | Number of current processes |
| TotalHigh | Total high memory size |
| FreeHigh | Available high memory size |
| MemoryUnit | Memory unit size in bytes |
| ConfiguredProcessors | How many CPU cores. |
| AvailableProcessors | How many available to you. |
| TotalPhysicalPages | Total physical memory pages |
| AvailablePhysicalPages | Available memory pages. |
Usually RAM numbers are in bytes and since page size is usually 4096 bytes, TotalPhysicalPages * 4096 is TotalRAM.
For loads, you may need to divide by core count if you like to present it as percentage of CPU usage.
If loads are > AvailableProcessors, you may have not enough CPU power.
If FreeSwap is below TotalSwap, you have not enough RAM.
Examples
Run it on a Linux server with Ubuntu:
Exit Script [ Text Result: MBS("SystemInfo.LinuxSystemInfo") ]
Example result:
{ "UpTime": 708, "Loads": [0.023873, 0.048828, 0.067382], "TotalRAM": 4112195584, "FreeRAM": 1589587968, "SharedRAM": 1622016, "BufferRAM": 20881408, "TotalSwap": 4111462400, "FreeSwap": 4111462400, "Processes": 1010, "TotalHigh": 0, "FreeHigh": 0, "MemoryUnit": 1, "ConfiguredProcessors": 4, "AvailableProcessors": 4, "TotalPhysicalPages": 1003954, "AvailablePhysicalPages": 388083 }
Example result:
{ "UpTime": 708, "Loads": [0.023873, 0.048828, 0.067382], "TotalRAM": 4112195584, "FreeRAM": 1589587968, "SharedRAM": 1622016, "BufferRAM": 20881408, "TotalSwap": 4111462400, "FreeSwap": 4111462400, "Processes": 1010, "TotalHigh": 0, "FreeHigh": 0, "MemoryUnit": 1, "ConfiguredProcessors": 4, "AvailableProcessors": 4, "TotalPhysicalPages": 1003954, "AvailablePhysicalPages": 388083 }
Run it on a Linux server with CentOS:
Exit Script [ Text Result: MBS("SystemInfo.LinuxSystemInfo") ]
Example result:
{ "UpTime": 803, "Loads": [0.049316, 0.04345, 0.045898], "TotalRAM": 2964705280, "FreeRAM": 275378176, "SharedRAM": 0, "BufferRAM": 1105920, "TotalSwap": 2147479552, "FreeSwap": 2147479552, "Processes": 1150, "TotalHigh": 0, "FreeHigh": 0, "MemoryUnit": 1, "ConfiguredProcessors": 2, "AvailableProcessors": 2, "TotalPhysicalPages": 723805, "AvailablePhysicalPages": 67231 }
Example result:
{ "UpTime": 803, "Loads": [0.049316, 0.04345, 0.045898], "TotalRAM": 2964705280, "FreeRAM": 275378176, "SharedRAM": 0, "BufferRAM": 1105920, "TotalSwap": 2147479552, "FreeSwap": 2147479552, "Processes": 1150, "TotalHigh": 0, "FreeHigh": 0, "MemoryUnit": 1, "ConfiguredProcessors": 2, "AvailableProcessors": 2, "TotalPhysicalPages": 723805, "AvailablePhysicalPages": 67231 }
See also
Release notes
- Version 11.2
- Added SystemInfo.LinuxSystemInfo function.
Blog Entries
- New in MBS FileMaker Plugin 11.2
- Neues MBS FileMaker Plugin 11.2
- MBS FileMaker Plugin 11.2 - More than 6500 Functions In One Plugin
- MBS FileMaker Plugin, version 11.2pr7
- Linux System Info
This function is free to use.
Created 8th May 2021, last changed 28th January 2023