Erlang --

User's Guide
Reference Manual
Release Notes
PDF
Top

Runtime_Tools
Reference Manual
Version 1.10

Expand All
Contract All

Table of Contents

- runtime_tools (App)
- dbg
  - Top of manual page
  - c/3
  - c/4
  - cn/1
  - ctp/0
  - ctp/1
  - ctp/2
  - ctp/3
  - ctp/1
  - ctpe/1
  - ctpg/0
  - ctpg/1
  - ctpg/2
  - ctpg/3
  - ctpg/1
  - ctpl/0
  - ctpl/1
  - ctpl/2
  - ctpl/3
  - ctpl/1
  - dtp/0
  - dtp/1
  - flush_trace_port/0
  - flush_trace_port/1
  - fun2ms/1
  - get_tracer/0
  - get_tracer/1
  - h/0
  - h/1
  - i/0
  - ln/0
  - ltp/0
  - n/1
  - p/1
  - p/2
  - rtp/1
  - stop/0
  - stop_clear/0
  - stop_trace_client/1
  - tp/4
  - tp/3
  - tp/2
  - tp/2
  - tpe/2
  - tpl/4
  - tpl/3
  - tpl/2
  - tpl/2
  - trace_client/2
  - trace_client/3
  - trace_port/2
  - trace_port_control/2
  - trace_port_control/1
  - tracer/0
  - tracer/3
  - tracer/2
  - wtp/1
- dyntrace
  - Top of manual page
  - available/0
  - get_tag/0
  - get_tag/0
  - p/0
  - p/1
  - p/2
  - p/3
  - p/4
  - p/5
  - p/6
  - p/7
  - p/8
  - put_tag/1
  - restore_tag/1
  - spread_tag/1
- erts_alloc_config
  - Top of manual page
  - make_config/0
  - make_config/1
  - save_scenario/0
  - stop/0
- msacc
  - Top of manual page
  - available/0
  - from_file/1
  - print/0
  - print/1
  - print/2
  - print/3
  - reset/0
  - start/0
  - start/1
  - stats/0
  - stats/2
  - stop/0
  - to_file/1
- system_information
  - Top of manual page
  - sanity_check/0
  - to_file/1

# system_information

### MODULE

system_information

### MODULE SUMMARY

System Information

### DESCRIPTION

### EXPORTS

sanity_check() -> ok | {failed, Failures}

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]

Performs a sanity check on the system. If no issues were found, ok is returned. If issues were found, {failed, Failures} is returned. All failures found will be part of the Failures list. Currently defined Failure elements in the Failures list:

InvalidAppFile

  An application has an invalid .app file. The second element identifies the application which has the invalid .app file.

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.

  Note that this check use application versions that are loaded, or will be loaded when used. You might have application versions that satisfies 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 identifing 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

An ok return value only means that sanity_check/0 did not find any issues, not that no issues exist.

to_file(FileName) -> ok | {error, Reason}

Types:

FileName = file:name_all()
Reason = file:posix() | badarg | terminated | system_limit

Writes miscellaneous system information to file. This information will typically be requested by the Erlang/OTP team at Ericsson AB when reporting an issue.