Skip to content

HUA-SFP-10G-DWDM1A #22

@bluecmd

Description

@bluecmd
(vrf:mgmt)bluecmd@ixp-kn7-sw1:~$ sudo sfputil show eeprom -p Ethernet129
Traceback (most recent call last):
  File "/usr/local/bin/sfputil", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/sfputil/main.py", line 673, in eeprom
    output += convert_sfp_info_to_output_string(xcvr_info)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/sfputil/main.py", line 333, in convert_sfp_info_to_output_string
    sfp_type = sfp_info_dict['type']
               ~~~~~~~~~~~~~^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
(vrf:mgmt)bluecmd@ixp-kn7-sw1:~$ hexdump -C /sys/class/i2c-adapter/i2c-35/35-0050/eeprom
00000000  0b 04 07 80 00 00 00 00  00 00 00 03 67 00 50 ff  |............g.P.|
00000010  00 00 00 00 50 72 6f 20  31 30 20 4f 70 74 69 78  |....Pro 10 Optix|
00000020  20 20 20 20 00 00 00 00  48 55 41 2d 53 46 50 2d  |    ....HUA-SFP-|
00000030  31 30 47 2d 44 57 44 4d  31 41 20 20 06 07 49 df  |10G-DWDM1A  ..I.|
00000040  06 1a 00 00 49 4e 45 42  41 30 30 36 30 30 36 31  |....INEBA0060061|
00000050  20 20 20 20 31 36 30 36  32 31 20 20 68 f0 05 29  |    160621  h..)|
00000060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000100  4e 00 f8 00 4b 00 fb 00  90 88 71 70 8c 70 75 48  |N...K.....qp.puH|
00000110  f4 24 1d 4c ea 60 27 10  7b 87 13 94 62 1f 1f 07  |.$.L.`'.{...b...|
00000120  0c 5a 00 19 07 cb 00 20  ff ff ff ff ff ff ff ff  |.Z..... ........|
00000130  ff ff ff ff ff ff ff ff  00 00 00 00 00 00 00 00  |................|
00000140  00 00 00 00 3f 80 00 00  00 00 00 00 01 00 00 00  |....?...........|
00000150  01 00 00 00 01 00 00 00  01 00 00 00 00 00 00 b4  |................|
00000160  22 83 83 ba a8 b4 37 aa  01 4b 00 00 00 00 30 00  |".....7..K....0.|
00000170  00 00 00 00 00 00 00 00  00 41 24 00 00 00 00 00  |.........A$.....|
00000180  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
000001f0  ff ff ff ff ff ff ff ff  00 00 00 00 00 00 00 00  |................|
00000200
(vrf:mgmt)bluecmd@ixp-kn7-sw1:~$ ./sfputil -file /sys/class/i2c-adapter/i2c-35/35-0050/eeprom
2025/09/10 22:31:10 Failed to read transceiver: eeprom unknown type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions