root@OPNsense:~ # fetch https://www.mellanox.com/downloads/MFT/mft-4.22.0-96.tgzmft-4.22.0-96.tgz 92 MB 35 MBps 02sroot@OPNsense:~ # tar xvfz mft-4.22.0-96.tgzx mft-4.22.0-96/x mft-4.22.0-96/READMEx mft-4.22.0-96/install.shx mft-4.22.0-96/mft-4.22.0-96.freebsd10_amd64.tgzx mft-4.22.0-96/LICENSE.txtroot@OPNsense:~ # cd mft-4.22.0-96root@OPNsense:~/mft-4.22.0-96 # ls5.2.9 LICENSE.txt README install.sh mft-4.22.0-96.freebsd10_amd64.tgzroot@OPNsense:~/mft-4.22.0-96 # pkg install bashUpdating OPNsense repository catalogue...OPNsense repository is up to date.All repositories are up to date.Checking integrity... done (0 conflicting)The most recent versions of packages are already installedroot@OPNsense:~/mft-4.22.0-96 # bash install.shinstall.sh: line 16: cd: install.sh: Not a directory-I- Detecting previous version of MFT ...-I- Running /usr/bin/mft_uninstall.sh ...install.sh: line 21: /usr/bin/mft_uninstall.sh: cannot execute: required file not found-E- Install failedroot@OPNsense:~/mft-4.22.0-96 #
root@OPNsense:~/mft-4.22.0-96 # nano install.sh GNU nano 6.4 install.sh#!/bin/bashtar --version >/dev/null 2>&1if [ $? != 0 ]; then echo "-E- There is no 'tar' on your system. Please install 'tar' and try again" exit 1fig_os_release=""rel=$(uname -r)arch=$(uname -p)install_python_bins=0python_bins=("mlxfwreset" "fwtrace")MLXFWRESET="mlxfwreset"BIN_PATH="/usr/bin"cd "${0%*/*}"echo "-I- Detecting previous version of MFT ..."uninstaller="`which mft_uninstall.sh`"if [[ -f ${uninstaller} ]] ; then echo "-I- Running ${uninstaller} ..." ${uninstaller} if [ $? != 0 ]; then echo "-E- Install failed" exit 1 fifiif [[ "$rel" == *9.1* ]];then g_os_release="9.1_$arch";elif [[ "$rel" == *10.1* ]];
root@OPNsense:~/mft-4.22.0-96 # /usr/bin/mst status-E- No MST devices were found or MST modules are not loaded. You may need to run 'mst server start' to load MST modules.root@OPNsense:~/mft-4.22.0-96
root@OPNsense:~ # ifconfig -v mlxen0mlxen0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 description: WAN options=8c00a8<VLAN_MTU,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE> ether [b]REMOVED[/b] inet6 [b]REMOVED[/b]%mlxen0 prefixlen 64 scopeid 0x6 inet [b]REMOVED[/b] netmask 0xfffffff8 broadcast [b]REMOVED[/b] media: Ethernet autoselect (10Gbase-CX4 <full-duplex,rxpause,txpause>) status: active nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> plugged: SFP/SFP+/SFP28 10G Base-SR (LC) vendor: OEM PN: SFP-10G-SR SN: CSF101L34485 DATE: 2021-03-05root@OPNsense:~ #
root@OPNsense:~ # ifconfig -v mlxen0mlxen0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 description: WAN options=8c00a8<VLAN_MTU,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE> ether [b]REMOVED[/b] inet6 [b]REMOVED[/b]%mlxen0 prefixlen 64 scopeid 0x6 inet [b]REMOVED[/b] netmask 0xfffffff8 broadcast [b]REMOVED[/b] media: Ethernet autoselect (10Gbase-CX4 <full-duplex,rxpause,txpause>) status: active nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> plugged: SFP/SFP+/SFP28 10G Base-SR (LC) vendor: OPSTRAN PN: SFP-10G-T-ME SN: FS2210260290 DATE: 2022-10-27 module temperature: 0.00 C voltage: 0.00 Volts lane 1: RX power: 0.00 mW (-inf dBm) TX bias: 0.00 mAroot@OPNsense:~ #
Got this:Code: [Select]root@OPNsense:~ # ifconfig -v mlxen0mlxen0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 description: WAN options=8c00a8<VLAN_MTU,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE> ether [b]REMOVED[/b] inet6 [b]REMOVED[/b]%mlxen0 prefixlen 64 scopeid 0x6 inet [b]REMOVED[/b] netmask 0xfffffff8 broadcast [b]REMOVED[/b] media: Ethernet autoselect (10Gbase-CX4 <full-duplex,rxpause,txpause>) status: active nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> plugged: SFP/SFP+/SFP28 10G Base-SR (LC) vendor: OEM PN: SFP-10G-SR SN: CSF101L34485 DATE: 2021-03-05root@OPNsense:~ #But I would like temperature and power usage. Are there any Mellanox tools commands that can provide my missing info. Do I need a Mellanox coded transceiver?