File: uesensor.8

package info (click to toggle)
powerpc-utils 1.3.13-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,044 kB
  • sloc: ansic: 18,549; sh: 4,697; perl: 980; makefile: 239
file content (112 lines) | stat: -rw-r--r-- 2,413 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
.\"
.\" Copyright (C) 2004 International Business Machines
.\" Michael Strosaker <strosake@us.ibm.com>
.\"
.TH UESENSOR 8 "May 2004" Linux "Linux on Power Service Tools"
.SH NAME
uesensor \- view the state of system environmental sensors
.SH SYNOPSIS
.nf
\fB/usr/sbin/uesensor -l \fR| \fB -a
\fB/usr/sbin/uesensor -t \fItoken \fB-i \fIindex \fR[\fB-v\fR]
.fi
.SH DESCRIPTION
.P
The \fIuesensor\fR utility is used to view the state of environmental
sensors on PowerPC-64 machines.

.P
There are 4 types of system sensors that can be retrieved with
\fIuesensor\fR; each sensor has an identifying token:

.TP
.B 3
Thermal sensor
.TP
.B 9001
Fan speed sensor
.TP
.B 9002
Voltage sensor
.TP
.B 9004
Power supply sensor

.P
Each sensor is uniquely identified by a combination of token and
index number; index numbers start at 0 and are contiguous.  For example,
the second fan on the system would be identified by token number 9001
and index 1.

.P
The state of each sensor consists of a status and a measured value.
The status value is one of the following:

.TP
.B 9
Critical low
.TP
.B 10
Warning low
.TP
.B 11
Normal
.TP
.B 12
Warning high
.TP
.B 13
Critical high

.P
The measured value depends on the type of sensor.  Thermal sensors are
measured in degrees Celcius; fan speed is measured in revolutions per
minute; voltage is measured in millivolts; power supply measurements are
defined as follows:

.TP
.B 0
Not present
.TP
.B 1
Present and not operational
.TP
.B 2
Status unknown
.TP
.B 3
Present and operational

.P
Each sensor is also associated with a location code; this location code
may not be unique (for example, there may be multiple voltage sensors on
a planar).

.SH OPTIONS
.TP
.B \-l
List all the sensors in human-readable format.
.TP
.B \-a
List all the sensors in a tabular, numerical format.  One line will be
printed for each sensor in the following format:
.nf
.I <token> <index> <status> <measured_value> <location_code>
.fi
.TP
\fB\-t \fItoken
Specify the token of a specific sensor to query.  Also requires the
\fB\-i\fR option to be specified.
.TP
\fB\-i \fIindex
Specify the index of a specific sensor to query.  Also requires the
\fB\-t\fR option to be specified.
.TP
.B \-v
Print the measured value rather than the sensor status, which is the
default value printed.  Requires both the \fB\-t\fR and \fB-i\fR options
to be specified.

.SH "SEE ALSO"
.BR usysident (8),
.BR usysattn (8)