{"id":16895761,"url":"https://github.com/ytti/sfp_eeprom","last_synced_at":"2025-06-17T23:02:26.342Z","repository":{"id":25496916,"uuid":"28928092","full_name":"ytti/sfp_eeprom","owner":"ytti","description":"ruby object + parser for SFP EEPROM","archived":false,"fork":false,"pushed_at":"2015-01-07T18:40:18.000Z","size":104,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T14:36:15.256Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ytti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-07T18:39:49.000Z","updated_at":"2023-07-11T05:57:59.000Z","dependencies_parsed_at":"2022-08-06T04:15:49.852Z","dependency_job_id":null,"html_url":"https://github.com/ytti/sfp_eeprom","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ytti/sfp_eeprom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytti%2Fsfp_eeprom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytti%2Fsfp_eeprom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytti%2Fsfp_eeprom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytti%2Fsfp_eeprom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ytti","download_url":"https://codeload.github.com/ytti/sfp_eeprom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytti%2Fsfp_eeprom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260453717,"owners_count":23011572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T17:25:56.726Z","updated_at":"2025-06-17T23:02:21.316Z","avatar_url":"https://github.com/ytti.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SFP EEPROM\nTool to parse SFP eeprom contents\n\n## Libray use\n    [1] pry(#\u003cSFPEEPROM\u003e)\u003e transceiver\n    =\u003e          Transceiver =\u003e Ethernet - 1000BASE-LX (8859418881)\n                         =\u003e FC Link Length - long distance (L)\n                         =\u003e FC Technology - Longwave Laser (LL)\n                         =\u003e FC Media - Single Mode (SM)\n                         =\u003e FC Speed - 100 MBytes/sec\n    \n    [2] pry(#\u003cSFPEEPROM\u003e)\u003e transceiver.bit31\n    =\u003e false\n    [3] pry(#\u003cSFPEEPROM\u003e)\u003e transceiver.bit31 = true\n    =\u003e true\n    [4] pry(#\u003cSFPEEPROM\u003e)\u003e transceiver\n    =\u003e          Transceiver =\u003e Infiniband - 1X Copper Active (144115196935274753)\n                         =\u003e Ethernet - 1000BASE-LX\n                         =\u003e FC Link Length - long distance (L)\n                         =\u003e FC Technology - Longwave Laser (LL)\n                         =\u003e FC Media - Single Mode (SM)\n                         =\u003e FC Speed - 100 MBytes/sec\n    \n## CLI use\n    [ytti@ytti.fi ~/sfp_eeprom]% ./bin/sfp_eeprom data\n              Identifier =\u003e SFP or SFP+ (3)\n     Extended_Identifier =\u003e GBIC/SFP function is defined by two-wire interface ID only (4)\n               Connector =\u003e LC (Lucent Connector) (7)\n             Transceiver =\u003e Ethernet - 1000BASE-LX (8859418881)\n                         =\u003e FC Link Length - long distance (L)\n                         =\u003e FC Technology - Longwave Laser (LL)\n                         =\u003e FC Media - Single Mode (SM)\n                         =\u003e FC Speed - 100 MBytes/sec\n    [ytti@ytti.fi ~/sfp_eeprom]% cat data\n    2-wire device address 0x50\n      0x00:   03 04 07 00 . 00 00 02 10 - 10 01 01 01 . 0d 00 50 ff\n      0x10:   00 00 00 00 . 46 4c 45 58 - 4f 50 54 49 . 58 20 20 20\n      0x20:   20 20 20 20 . 00 10 00 00 - 53 2e 31 36 . 31 32 2e 32\n      0x30:   35 2e 4b 44 . 20 20 20 20 - 41 20 20 20 . 05 be 00 c3\n      0x40:   00 1a 00 00 . 46 37 38 31 - 55 52 30 20 . 20 20 20 20\n      0x50:   20 20 20 20 . 31 32 31 31 - 30 37 20 20 . 68 b0 01 7c\n      0x60:   37 34 30 2d . 30 31 31 37 - 38 34 20 43 . 57 44 4d 34\n      0x70:   37 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0x80:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0x90:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0xa0:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0xb0:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0xc0:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0xd0:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0xe0:   46 37 38 31 . 55 52 30 20 - 20 20 20 20 . 20 20 20 20\n      0xf0:   98 e2 29 b1 . 88 27 54 b0 - bb 86 57 c1 . 3f 05 58 34\n    \n    2-wire device address 0x51\n      0x00:   6e 00 d3 00 . 5f 00 d6 00 - 8c a0 75 30 . 88 b8 77 24\n      0x10:   af c8 03 e8 . 9c 40 05 dc - c3 c7 18 a6 . 9b 83 1f 07\n      0x20:   18 a6 00 19 . 13 94 00 20 - 00 00 00 00 . 00 00 00 00\n      0x30:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0x40:   00 00 00 00 . 3f 80 00 00 - 00 00 00 00 . 01 00 00 00\n      0x50:   01 00 00 00 . 01 00 00 00 - 01 00 00 00 . 00 00 00 00\n      0x60:   23 d0 7f 18 . 28 b0 3f fe - 09 c9 00 00 . 00 00 00 00\n      0x70:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0x80:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0x90:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0xa0:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0xb0:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0xc0:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0xd0:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0xe0:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n      0xf0:   00 00 00 00 . 00 00 00 00 - 00 00 00 00 . 00 00 00 00\n    [ytti@ytti.fi ~/sfp_eeprom]% \n\n## Todo\nAdd all of the datafields in datafields directory. All of the datafields are\nloaded auomatically, so no need to touch other parts of the code when adding\nnew datafield, just add new datafields file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytti%2Fsfp_eeprom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fytti%2Fsfp_eeprom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytti%2Fsfp_eeprom/lists"}