Code Monkey home page Code Monkey logo

ibswinfo's People

Contributors

kcgthb avatar otter-chief avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ibswinfo's Issues

SB7790 switch support

ibswinfo supports Mellanox SB7790 unmanaged switches running firmware 11.1100.0072 or greater with 1 exception. The '-T' flag is unsupported. All other info and vitals are captured.
Thanks!
Mark

Sample output:
`...

temperature (C) | 50
max temp (C) | 56
QSFP#01 (C) | 0
QSFP#02 (C) | 0
QSFP#03 (C) | 0
QSFP#04 (C) | 0
QSFP#05 (C) | 0
QSFP#06 (C) | 0
QSFP#07 (C) | 0
QSFP#08 (C) | 0
QSFP#09 (C) | 0
QSFP#10 (C) | 0
QSFP#11 (C) | 0
QSFP#12 (C) | 0
QSFP#13 (C) | 0
QSFP#14 (C) | 0
QSFP#15 (C) | 0
QSFP#16 (C) | 0
QSFP#17 (C) | 0
QSFP#18 (C) | 0
QSFP#19 (C) | 0
QSFP#20 (C) | 0
QSFP#21 (C) | 0
QSFP#22 (C) | 0
QSFP#23 (C) | 0
QSFP#24 (C) | 0
QSFP#25 (C) | 0
QSFP#26 (C) | 0
QSFP#27 (C) | 0
QSFP#28 (C) | 0
QSFP#29 (C) | 0
QSFP#30 (C) | 0
QSFP#31 (C) | 0
QSFP#32 (C) | 0
QSFP#33 (C) | 0
QSFP#34 (C) | 0
QSFP#35 (C) | 0
QSFP#36 (C) | 0

...`

Support for FDR switches

Hello!

we have several MSX6025F-1SF in use and MSX6036F-1SF (also SwitchX but managed)
Is there a chance that they will be supported in the future?

best regards

QMQ9790 support

could you help compatible with QMQ9790 switch model ?
here is what i get information when get transcever information output:
sudo bash ibswinfo.sh -d lid-7 -T
ibwarn: [409902] ib_path_query_via: sa call path_query failed
ibswinfo.sh: line 51: 16#: invalid integer constant (error token is "16#")
ibswinfo.sh: line 411: /8: syntax error: operand expected (error token is "/8")

Quantum-2 Mellanox Technologies

part number | MQM9790-NS2F
serial number | xxxxxxxxxxx
product name | Gorilla Unmng IB 400
revision | AF
ports | 0
PSID | MT_0000000579
GUID | 0xfc6a1c03004fd4c0
firmware version | 31.2012.1024

uptime (d-h:m:s) | 6d-17:10:51

PSU0 status | OK
P/N | MTEF-PSF-AC-K
S/N | MT2339T005M8
DC power | OK
fan status | OK
power (W) | 748
PSU1 status | OK
P/N | MTEF-PSF-AC-K
S/N | MT2339T005M9
DC power | ERROR
fan status | ERROR

temperature (C) | 48
max temp (C) | 54

fan status | OK

SwitchIB support and issues

Hi,

The unmanaged EDR Switch-IB based switches (SB7790) appear to mostly work. The PSID is reported incorrectly; it appears to be transposed?

# flint -d /dev/mst/SW_MT52000_SwitchIB_Mellanox_Technologies_lid-0x0005 q | grep PSID
PSID:                  HP_1880110032

versus

# ./ibswinfo.sh -d lid-5 | grep PSID
PSID               | 1_PH108830012

It also only reports 35 instead of 36 ports.

MQM8790-HS2F PSU status

Hi,

Thank you for this very useful tool!

With our MQM8790-HS2F switches, I have the issue that none of them reports the presence of two PSUs, even though they are physically present. PSU1 reports "ERROR" for all of them (see below).

I wonder whether there is any real problem with them. Do you have any hints to follow up? - Thank you in advance!

Quantum Mellanox Technologies
=================================================
part number        | MQM8790-HS2F
serial number      | MT2006X1....
ports              | 80
GUID               | 0x.....
firmware version   | 0.0000.0000
-------------------------------------------------
uptime (d-h:m:s)   | 389d-18:45:26
-------------------------------------------------
PSU0 status        | OK
     S/N           | MT1951X0....
     DC power      | OK
     fan status    | OK
     power (W)     | 198
PSU1 status        | ERROR
     DC power      | ERROR
     fan status    | ERROR

Setting nodename fails when the name is shorter than 5 characters

When setting a switch description to a string 4 characters or shorter, the script fails to execute:

# ./ibswinfo.sh -d lid-801 -S test
Device: lid-801
  Current node description: Quantum Mellanox Technologies
  Set node description to : test
>> Confirm? (y/N) y
Setting new node description... 
# echo $?
1

Using a longer node description works as expected:

# ./ibswinfo.sh -d lid-801 -S test1
Device: lid-801
  Current node description: Quantum Mellanox Technologies
  Set node description to : test1
>> Confirm? (y/N) y
Setting new node description...
done!
# echo $?
0

Support for HDR and NDR switches

We have found that the ibswinfo.sh script handles HDR (MQM8790-HS2F) and NDR (MQM9790-NS2F) IB switches just fine, except that only 9 fan speeds are reported instead of 14 (6x2 + 2 PSUs) on the HDR switches and 16 (7x2 + 2 PSUs) on the NDR switches. We have not yet been able to determine a cause for this.

CS7500 Switch Support

FYI, we've able to run ibswinfo.sh to query information on CS7500 (648x100G framed switch).
From the output we may identify the switch unit is acting as spine or leaf. However, the PSU status is wrong, as the CS7500 switch has a bunch of PSUs and these PSUs weren't bonded to specific switch units.

=================================================
MF0;XXXXXX:CS7500/S01/U1
=================================================
part number        | MSB7520-E
serial number      | MT1533XXXXXX
product name       | Barracuda SwitchIB spine
revision           | A6
ports              | 36
PSID               | MT_2090XXXXXX
GUID               | 0xXXXXXX0300f87da0
firmware version   | 11.2008.3336
-------------------------------------------------
uptime (d-h:m:s)   | 208d-19:33:46
-------------------------------------------------
PSU0 status        | ERROR
     DC power      | ERROR
     fan status    | ERROR
PSU1 status        | ERROR
     DC power      | ERROR
     fan status    | ERROR
-------------------------------------------------
temperature (C)    | 69
max temp (C)       | 76
-------------------------------------------------
fan status         | OK
fan#1 (rpm)        | 9633
fan#2 (rpm)        | 8287
fan#3 (rpm)        | 9842
fan#4 (rpm)        | 8389
-------------------------------------------------

=================================================
MF0;XXXXXX:CS7500/L01/U1
=================================================
part number        | MSB7510-E
serial number      | MT1646XXXXXX
product name       | Barracuda SwitchIB leaf
revision           | A9
ports              | 36
PSID               | MT_2080XXXXXX
GUID               | 0xXXXXXX03007ee7c0
firmware version   | 11.2008.3336
-------------------------------------------------
uptime (d-h:m:s)   | 209d-00:34:22
-------------------------------------------------
PSU0 status        | ERROR
     DC power      | ERROR
     fan status    | ERROR
PSU1 status        | ERROR
     DC power      | ERROR
     fan status    | ERROR
-------------------------------------------------
temperature (C)    | 69
max temp (C)       | 70
-------------------------------------------------
fan status         | OK


=================================================
MF0;XXXXXX:CS7500/L02/U1
=================================================
part number        | 843193-B21
serial number      | IL29XXXXXX
product name       | Barracuda SwitchIB leaf
revision           | A2
ports              | 36
PSID               | HP_2080XXXXXX
GUID               | 0xXXXXXX03006b2480
firmware version   | 15.2010.1202
-------------------------------------------------
uptime (d-h:m:s)   | 208d-20:19:43
-------------------------------------------------
PSU0 status        | ERROR
     DC power      | ERROR
     fan status    | ERROR
PSU1 status        | ERROR
     DC power      | ERROR
     fan status    | ERROR
-------------------------------------------------
temperature (C)    | 72
max temp (C)       | 77
-------------------------------------------------
fan status         | OK


read the FW version not corrcet in MST 4.16 version on MSB7790

hi ,Sir
I have update the MFT version to 4.16.and it looks tha the FW version is not correctly show in the output

see the code change to work in 4.16
[root@n1041 ]# diff myibcheck ibswinfo.sh
237c237
< [[ $mft_cur =
4.16 ]] && add_idx="slot_index=0x0" || add_idx=""

[[ $mft_cur =~ 4.15 ]] && add_idx="slot_index=0x0" || add_idx=""

and the result ,highlight line with ====================

[root@n1041 ~]# ./myibcheck -d lid-0x00009 -o inventory
node_desription : SwitchIB Mellanox Technologies
part_number : MSB7790-ES2R
serial : MT1520X02370
fw_version : 0.0000.0000 ====================
psu0.serial : MT151 =====================

[root@n1041 ~]# flint -d lid-0x00047 q
Image type: FS3
FW ISSU Version: 1
FW Version: 15.2008.2402
FW Release Date: 12.2.2021
Description: UID GuidsNumber

[root@n1041 ~]# flint -d lid-0x00009 q
Image type: FS3
FW ISSU Version: 1
FW Version: 11.2008.2402 ====================
FW Release Date: 12.2.2021
Description: UID GuidsNumber Step

mft-4.15.1-100.x86_64 and slot_index=0x0

After update to RHEL7.9 mft package changed from mft-4.14.0-105.x86_64 to mft-4.15.1-100.x86_64 and began seeing,
error: Index: slot_index was not provided

Added slot_index=0x0 to MTMP and MTCAP as workaround and it's working fine, we call the script with only -d dev.

diff of our local copy and the original with the changes,

diff /usr/local/sbin/ibswinfo.sh ibswinfo-master/ibswinfo.sh
227,228c227
< rid[MTMP]="sensor_index=0x0,slot_index=0x0"
< rid[MTCAP]="slot_index=0x0"
---
> rid[MTMP]="sensor_index=0x0"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.