Skip to content

Support gearbox temperature sensor polling - #4973

Open
byu343 wants to merge 1 commit into
sonic-net:masterfrom
byu343:gearbox-sensors
Open

byu343 wants to merge 1 commit into
sonic-net:masterfrom
byu343:gearbox-sensors

Conversation

@byu343

@byu343 byu343 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Description of PR

Summary: Support gearbox temperature sensor polling
Fixes # (issue)

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Documentation update
  • Test improvement

Approach

What is the motivation for this PR?

This change will support polling the gearbox temperature sensors using PAI API.

How did you do it?

The change follows the existing procedure of ASIC temperature polling. With certain refactoring, the temperature polling for ASIC and gearbox share some code.

How did you verify/test it?

Tested that after enabling the temperature polling by
sonic-db-cli CONFIG_DB hset 'GEARBOX_SENSORS|GEARBOX_SENSORS_POLLER_INTERVAL' interval 10
sonic-db-cli CONFIG_DB hset 'GEARBOX_SENSORS|GEARBOX_SENSORS_POLLER_STATUS' admin_status enable

The temperature per phy could be shown by
root@ctd303:/home/admin# sonic-db-cli STATE_DB hgetall 'GEARBOX_TEMPERATURE_INFO|phy:1'
{'temperature_0': '47', 'maximum_temperature': '47', 'average_temperature': '47'}

Any platform specific information?

This change will apply to all platforms using gbsyncd. Depending the specific type of the gearbox or phy, the number of sensors showing up could be different.

Documentation

@byu343
byu343 requested a review from prsunny as a code owner October 2, 2026 23:56
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

The change follows the existing procedure of ASIC temperature polling

Signed-off-by: Boyang Yu <byu@arista.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants