User Manual
Rev 1.50
Mellanox Technologies
49
C.4.2 Exit Return Values
The following exit values are returned:
y
0 - successful completion
y
>0 - an error occurred
C.5 mget_temp Utility
The mget_temp utility reads the hardware temperature from Mellanox Technologies devices with
temperature sensors (ConnectX®, ConnectX®-2, ConnectX®-3, BridgeX devices, and 4th gener-
ation switches), and prints the reading in Celsius degrees.
C.5.1 Operation
The MST driver must be started prior to running mget_temp. To start mget_temp:
1. Start the MST driver (mst start
1
or mst restart).
2. Run mget_temp with the following command line syntax:
where [OPTIONS] are:
-h - Print this message.
-d <dev> - mst device name
-i - activate and initiate thermal diodes for temperature measurement (intru-
sive)
On some systems, the thermal sensors are not activated by default. To initiate the thermal sensors,
run "mget_temp -i"once after device power up. Then wait for at least half a second before running
"mget_temp" for reading the temperature.
Examples:
The following steps show how to initialize and then read temperature sensors.
1. Initiate thermal sensors:
2. Wait half a second and then read the temperature by running:
1. This step in not required in Windows.
mget_temp [OPTIONS]
mget_temp -d /dev/mst/SW_MT48438_lid-0x000F -i
mget_temp -d /dev/mst/SW_MT48438_lid-0x000F