Skip to content

Add "rif" subcommand description to interfaces counters#3

Closed
noaOrMlnx wants to merge 1 commit into201911from
rif_cli
Closed

Add "rif" subcommand description to interfaces counters#3
noaOrMlnx wants to merge 1 commit into201911from
rif_cli

Conversation

@noaOrMlnx
Copy link
Owner

- What I did
Added "rif" subcommand to CLI reference guide
- How I did it
Edited command_reference.md file
- How to verify it
N/A
- Previous command output (if the output of a command-line utility has changed)
N/A
- New command output (if the output of a command-line utility has changed)
N/A

@liat-grozovik
Copy link

@noaOrMlnx was this already upstreamed or should i review it?

@noaOrMlnx
Copy link
Owner Author

@liat-grozovik
you should review

@liat-grozovik
Copy link

@noaOrMlnx once you can please send it CI and then to public PR

@noaOrMlnx
Copy link
Owner Author

@liat-grozovik you already merged it to Azure/201911 :) - sonic-net#1373

@noaOrMlnx noaOrMlnx closed this Jan 28, 2021
noaOrMlnx pushed a commit that referenced this pull request Jul 17, 2024
…aidump_by_route_size (sonic-net#2972)

* * [saidump]
•	Saidump for DNX-SAI sonic-net/sonic-buildimage#13561

Solution and modification:
To use the redis-db SAVE option to save the snapshot of DB each time and recover later, instead of looping through each entry in the table and saving it.

(1) Updated sonic-buildimage/build_debian.sh, to install Python library rdbtools into the host.
(2) Updated sonic-buildimage/src/sonic-sairedis/saidump/saidump.cpp, add a new option -r, which updates the rdbtools's output-JSON files' format.
(3) Add a new script file: files/scripts/saidump.sh, to do the below steps
  For each ASIC0, such as ASIC0,

  #1. Save the Redis data.
  sudo sonic-db-cli -n asic$1 SAVE > /dev/null

  #2. Move dump files to /var/run/redisX/
  docker exec database$1 sh -c "mv /var/lib/redis/dump.rdb /var/run/redis$1/"

  #3. Run rdb command to convert the dump files into JSON files
  sudo python /usr/local/bin/rdb --command json  /var/run/redis$1/dump.rdb | sudo tee /var/run/redis$1/dump.json > /dev/null

  #4. Run saidump -r to update the JSON files' format as same as the saidump before. Then we can get the saidump result in standard output.
  docker exec syncd$1 sh -c "saidump -r /var/run/redis$1/dump.json"

  #5. clear
  sudo rm -f /var/run/redis$1/dump.rdb
  sudo rm -f /var/run/redis$1/dump.json

(4) Update sonic-buildimage/src/sonic-utilities/scripts/generate_dump, replace saidump with saidump.sh
* * [saidump]
•	Saidump for DNX-SAI sonic-net/sonic-buildimage#13561
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