- Linux

Overview is a command-line tool used to retrieve system information in the form of key-value pairs. It is primarily employed for gathering diagnostic data and facilitating troubleshooting for babeltrace-related issues.

Syntax [options...] <command> <variable-or-property>


  • -h, –help: Display help information and exit.
  • -v, –verbose: Enable verbose output, providing additional details about the query process.
  • –machine-readable: Output results in a machine-readable format suitable for parsing by scripts or other programs.
  • –quiet: Suppress all non-error output.


Retrieve the value of a specific variable

Query the value of the arch variable: variable arch

Retrieve the value of a property

Query the value of the target_kernel property: property target_kernel

Retrieve all variables and properties in a specific category

Query all variables and properties in the system category: variable system.* property system.*

Common Issues

Missing information

If certain variables or properties are not available, the command may return an empty value or an error message. This typically indicates that the corresponding information is not collected or supported by the system.

Sensitive information exposure

Some retrieved variables or properties may contain sensitive information, such as system passwords or user data. Exercise caution when sharing or using such information.

Integration can be integrated with other Linux commands to facilitate troubleshooting and data analysis. For example, it can be combined with grep to filter specific variables or properties of interest: variable * | grep my_variable_of_interest

Related Commands

  • babeltrace2-query-babeltrace.trace: Query information from a babeltrace trace file.
  • babeltrace2-filter-babeltrace.trace: Filter a babeltrace trace file based on specified criteria.
  • babeltrace2-view-babeltrace.trace: View the contents of a babeltrace trace file in a human-readable format.