open-horizon / anax

Horizon agent control system
https://open-horizon.github.io/docs/anax/docs/
Apache License 2.0
73 stars 98 forks source link

Include a 'mustgather' in the hzn CLI #1714

Open cgiroua opened 4 years ago

cgiroua commented 4 years ago

We should include a CLI command for gathering all relevant information that one would need to send off for a support request when encountering an issue on an edge node.

Something like hzn mustgather (whether it's called mustgather or something else entirely is not a concern) ... just a single command that would generate a tarball containing all relevant information.

The following is what commands/functionality should be run to gather information (please do include anything else that might be worth gathering)

1. hzn eventlog list -a -l 
2. hzn node list
3. hzn agreement list
4. /var/log/syslog (and/or docker log horizon1)
bmpotter commented 4 years ago

Could we call the cmd something like hzn debuginfo gather

IntelliJIN commented 4 years ago

@joewxboy please assign this issue to me.