Skip to content

Commit

Permalink
[showtech]: add knet dump information in show tech (sonic-net#925)
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <[email protected]>
  • Loading branch information
lguohan authored May 28, 2020
1 parent b37135c commit fab196e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ main() {
save_cmd "systemd-analyze blame" "systemd.analyze.blame"
save_cmd "systemd-analyze dump" "systemd.analyze.dump"
save_cmd "systemd-analyze plot" "systemd.analyze.plot.svg"

save_platform "syseeprom" "platform"
save_platform "psustatus" "platform"
save_platform "ssdhealth" "platform"
Expand Down Expand Up @@ -440,6 +440,12 @@ main() {
save_cmd "bcmcmd -t5 version" "broadcom.version"
save_cmd "bcmcmd -t5 soc" "broadcom.soc"
save_cmd "bcmcmd -t5 ps" "broadcom.ps"
save_cmd "cat /proc/bcm/knet/debug" "broadcom.knet.debug"
save_cmd "cat /proc/bcm/knet/dma" "broadcom.knet.dma"
save_cmd "cat /proc/bcm/knet/dstats" "broadcom.knet.dstats"
save_cmd "cat /proc/bcm/knet/link" "broadcom.knet.link"
save_cmd "cat /proc/bcm/knet/rate" "broadcom.knet.rate"
save_cmd "cat /proc/bcm/knet/stats" "broadcom.knet.stats"
save_cmd "bcmcmd \"l3 nat_ingress show\"" "broadcom.nat.ingress"
save_cmd "bcmcmd \"l3 nat_egress show\"" "broadcom.nat.egress"
fi
Expand Down Expand Up @@ -512,7 +518,7 @@ main() {
done

# run 'hw-management-generate-dump.sh' script and save the result file
/usr/bin/hw-management-generate-dump.sh
/usr/bin/hw-management-generate-dump.sh
save_file "/tmp/hw-mgmt-dump*" "hw-mgmt" false
rm -f /tmp/hw-mgmt-dump*

Expand Down

0 comments on commit fab196e

Please sign in to comment.