User Manual
Rev 1.50
Mellanox Technologies
47
set_gpio <gpio_name> <pin_name> <value> - Set the output value of the given GPIO pin.
set_fan <fan_name> <Tach_num> <power_persent> - Set the power percent of the given fan.
set_power <module_name> <off/on> - Power on/off the specified module. Supported modules: MTS3610_LEAF,
MTS3610_SPINE.
set_led <led_name> <color> - Change the color of the specify led to the given color.
scan - Scan the i2c slave addresses
show <info_type> - Show information about the system or specific subsystem module (related
to -m flag). The information types are:
devs [-v]: List the i2c components. (-v) adds detailed information to the list.
modules: List the detachable subsystems modules.
temp: The temperatures of the components: ADM1024, LM075, PCF8591.
volt: The voltage values of: ADM1024, PCF8591.
ports: The present qsfp ports on the system.
fans: The speed of fans.
power: The power/voltage/current values of the power supplies.
slot_num: The slot number of the system (only for: FJ_SWITCH).
leds: The current colors of the LEDs.
inventory: The inventory of the present modules.
Examples:
1. Point to an InfiniScale IV device to enable accessing it directly by firmware utilities.
2. Display the temperature values of InfiniScale IV or BridgeX temperature sensors in the sys-
tem.
3. Display the addresses of all I2C-accessible devices.
C.4 i2c Utility
The i2c utility provides low level access to the I2C bus on any Mellanox switch platform, enabling
the user to read or write data.
C.4.1 Operation
The MST driver must be started prior to running i2c tool. To start i2c:
1. Start the MST driver (mst start
1
or mst restart
1
).
mlxi2c -d /dev/mst/mtusb-1 p /IS4_PRIM
mlxi2c -d /dev/mst/mtusb-1 show temp
mlxi2c -d /dev/mst/mtusb-1 scan
1. This step in not required in Windows.