# Sensor Command

The sensor command reports or sets the value of an environmental sensor or control.

The following sensor subcommands are available:

Subcommand | Description
--- | ---
sensor get | Returns all data associated with a sensor.
sensor set | Allows you to set some of the data associated with a specific sensor or a class of sensors.

Notes

- Every command returns an exit code upon completion.
- There are some sensors who's value either does not change, are there to provide information in the event of a problem, or facilitate the proper operation of the software. Many of these sensors do not have a related component (parent) associated with them (for example, a CPU's die temperature sensor has the CPU as its parent component, and a fan speed sensor has the fan as its parent component, but the product-id sensor only reports a static value and has no parent relationship). This relationship establishes which component(s) are affected by changes in the sensor's value. You cannot modify the thresholds for sensors without a parent relationship since an event will never occur for these threshold crossings.

Related Topics

System Management Commands