Skip to content

[202012] [generate_dump] allow to extend dump with plugin scripts#8

Closed
noaOrMlnx wants to merge 1 commit into202012from
202012_plugins_techsupport
Closed

[202012] [generate_dump] allow to extend dump with plugin scripts#8
noaOrMlnx wants to merge 1 commit into202012from
202012_plugins_techsupport

Conversation

@noaOrMlnx
Copy link
Copy Markdown
Owner

Signed-off-by: Noa Or noaor@nvidia.com

What I did

Added support for tech support extension scripts,
by cherry-picking of sonic-net#1335 to branch 202012

The purpose is to have dumps of extensions in SONiC techsupport, even without App Extension infrastructure.
The new application will write a file that contains the dump command into /usr/bin/debug-dump folder, and it will appear in the output of show techsupport command.

How I did it

It looks at /usr/bin/debug-dump for scripts, if it finds one it will execute them and save the output to dump/ folder.

How to verify it

Write a simple scripts with an output and place it under /usr/bin/debug-dump/

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

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

@noaOrMlnx noaOrMlnx closed this Jul 19, 2022
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