Skip to content

Commit

Permalink
[generate_dump] Dump systemd specific information (sonic-net#602)
Browse files Browse the repository at this point in the history
- dump: dumps the entire state of all the units
 - blame: provides startup time for each service
 - plot: generate a svg of the boot order

Co-authored-by: lguohan <[email protected]>
  • Loading branch information
2 people authored and abdosi committed Aug 3, 2020
1 parent 9c547eb commit f39704f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,10 @@ main() {
/proc/zoneinfo \
|| abort "${ERROR_PROCFS_SAVE_FAILED}" "Proc saving operation failed. Aborting for safety."

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

0 comments on commit f39704f

Please sign in to comment.