system_information(3erl)
πΈ NAME πΈ
This is the system_information(3erl) page, an Erlang Module Definition β aka system_information, aka System Information. Main character energy for your runtime system. π
π¦ DESCRIPTION π¦
Okay so the original DESCRIPTION section is literally just a header with no prose β it rolls straight into EXPORTS. That's where the actual tea is, bestie. π
π EXPORTS π
β¨ sanity_check() β¨
sanity_check() -> ok | {failed, Failures}β performs a sanity check on the system. If no issues were found,okis returned. If issues were found,{failed, Failures}is returned. Every failure it finds gets packed into theFailureslist. π«Ά
Types:
Application = atom()
ApplicationVersion = string()
MissingRuntimeDependencies =
{missing_runtime_dependencies, ApplicationVersion,
[ApplicationVersion]}
InvalidApplicationVersion =
{invalid_application_version, ApplicationVersion}
InvalidAppFile = {invalid_app_file, Application}
Failure =
MissingRuntimeDependencies | InvalidApplicationVersion |
InvalidAppFile
Failures = [Failure]
These are the currently defined Failure elements that can show up in Failures:
InvalidAppFileβ an application has an invalid.appfile. The second element identifies the application which has the invalid.appfile.InvalidApplicationVersionβ an application has an invalid application version. The second element identifies the application version that is invalid.MissingRuntimeDependenciesβ an application is missing runtime dependencies. The second element identifies the application (with version) that has missing dependencies. The third element contains the missing dependencies.- Heads up, bestie: this check uses application versions that are loaded, or will be loaded when used. You might have application versions that satisfy all dependencies installed in the system, but if those are not loaded this check will fail. The system will of course also fail when used like this. This may happen when you have multiple branched versions of the same application installed in the system, but you do not use a boot script identifying the correct application version.
Currently the sanity check is limited to verifying runtime dependencies found in the .app files of all applications. More checks will be introduced in the future. This implies that the return type will change in the future. π₯
Note: anokreturn value only means thatsanity_check/0did not find any issues, not that no issues exist. No cap. π«Ά
π to_file(FileName) π
to_file(FileName) -> ok | {error, Reason}β writes miscellaneous system information to file. This information will typically be requested by the Erlang/OTP team at Ericsson AB when reporting an issue. π
Types:
FileName = file:name_all()
Reason = file:posix() | badarg | terminated | system_limit
Sign-off tea: Ericsson AB, runtime_tools 1.19, system_information(3erl) β date? not on this footer, so no date given, bestie. π
β¨
π¦ where this page comes from
- debian bookworm: erlang-manpages 1:25.2.3+dfsg-1+deb12u1 Β· Apache-2.0
- debian bookworm: erlang-manpages 1:25.2.3+dfsg-1+deb12u4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms