Skip to content

Adding missing xcvr debug CLIs to showtech dump #4000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gbhatt07
Copy link

What I did

Added few xcvr debug CLIs to the showtech dump

How I did it

Modified the generate_dump script to include the CLIs

How to verify it

Run "show techsupport" and check the generated dump:

Previous command output (if the output of a command-line utility has changed)

root@sonic:/var/dump/sonic_dump_sonic_20250625_025020/dump# ls -l interface.xcvrs.*
-rw-r--r-- 1 root root 61624 Jun 25 02:51 interface.xcvrs.eeprom
-rw-r--r-- 1 root root 95633 Jun 25 02:51 interface.xcvrs.eeprom.raw
-rw-r--r-- 1 root root   751 Jun 25 02:51 interface.xcvrs.presence

New command output (if the output of a command-line utility has changed)

root@sonic:/var/dump/sonic_dump_sonic_20250625_025020/dump# ls -l interface.xcvrs.*
-rw-r--r-- 1 root root 61624 Jun 25 02:51 interface.xcvrs.eeprom
-rw-r--r-- 1 root root 95633 Jun 25 02:51 interface.xcvrs.eeprom.raw
-rw-r--r-- 1 root root   622 Jun 25 02:51 interface.xcvrs.error-status
-rw-r--r-- 1 root root 33814 Jun 25 02:51 interface.xcvrs.info
-rw-r--r-- 1 root root   600 Jun 25 02:51 interface.xcvrs.lpmode
-rw-r--r-- 1 root root  6668 Jun 25 02:51 interface.xcvrs.pm
-rw-r--r-- 1 root root   751 Jun 25 02:51 interface.xcvrs.presence
-rw-r--r-- 1 root root 61812 Jun 25 02:51 interface.xcvrs.status

Time taken by the new CLI dumps:
[ save_cmd:show interface transceiver status ] : 3244 msec
[ save_cmd:show interface transceiver pm ] : 3270 msec
[ save_cmd:show interface transceiver info ] : 4691 msec
[ save_cmd:show interface transceiver error-status ] : 4884 msec
[ save_cmd:show interface transceiver lpmode ] : 12836 msec

Total added time on a 32 port chassis with 24 optics present: 28925 msec (28.925 seconds)

Copy link

linux-foundation-easycla bot commented Jul 24, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

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