coreos / mayday

A diagnostics tool for capturing system state.
Apache License 2.0
80 stars 27 forks source link

mayday: add basic frameworks #7

Closed jonboulle closed 9 years ago

jonboulle commented 9 years ago

fixes #4, #5

jonboulle commented 9 years ago

@brianredbeard want to take this for a spin and see what you think? @crawford review?

brianredbeard commented 9 years ago

@jonboulle LGTM

brianredbeard commented 9 years ago

Wow Such speed Amazing launch

brianredbeard commented 9 years ago

Symlink Errs:

2014/10/15 18:28:45 Using workspace directory "/tmp/mayday201410151828-673385921"
2014/10/15 18:28:45 Collecting file "/proc/vmstat"
2014/10/15 18:28:45 Creating link (/tmp/mayday201410151828-673385921 -> /tmp/mayday201410151828-673385921/proc/vmstat)
error creating link: symlink /tmp/mayday201410151828-673385921/proc/vmstat /tmp/mayday201410151828-673385921: file exists
2014/10/15 18:28:45 Collecting file "/proc/meminfo"
2014/10/15 18:28:45 Creating link (/tmp/mayday201410151828-673385921/meminfo -> /tmp/mayday201410151828-673385921/proc/meminfo)
2014/10/15 18:28:45 Collecting file "/proc/mounts"
2014/10/15 18:28:45 Creating link (/tmp/mayday201410151828-673385921/mounts -> /tmp/mayday201410151828-673385921/proc/mounts)
2014/10/15 18:28:45 Running Command: "blkid"
2014/10/15 18:28:45 Saving output to /tmp/mayday201410151828-673385921/mayday_commands/blkid
2014/10/15 18:28:45 Creating link (/tmp/mayday201410151828-673385921 -> /tmp/mayday201410151828-673385921/mayday_commands/blkid)
error creating link: symlink /tmp/mayday201410151828-673385921/mayday_commands/blkid /tmp/mayday201410151828-673385921: file exists
2014/10/15 18:28:45 Running Command: "btrfs fi show"
2014/10/15 18:28:45 Saving output to /tmp/mayday201410151828-673385921/mayday_commands/btrfs_fi_show
2014/10/15 18:28:45 Creating link (/tmp/mayday201410151828-673385921 -> /tmp/mayday201410151828-673385921/mayday_commands/btrfs_fi_show)
error creating link: symlink /tmp/mayday201410151828-673385921/mayday_commands/btrfs_fi_show /tmp/mayday201410151828-673385921: file exists
2014/10/15 18:28:45 Running Command: "df -al"
2014/10/15 18:28:45 Saving output to /tmp/mayday201410151828-673385921/mayday_commands/df_-al
2014/10/15 18:28:45 Creating link (/tmp/mayday201410151828-673385921/df -> /tmp/mayday201410151828-673385921/mayday_commands/df_-al)
2014/10/15 18:28:45 Running Command: "df -ali"
2014/10/15 18:28:45 Saving output to /tmp/mayday201410151828-673385921/mayday_commands/df_-ali
2014/10/15 18:28:45 Creating link (/tmp/mayday201410151828-673385921 -> /tmp/mayday201410151828-673385921/mayday_commands/df_-ali)
error creating link: symlink /tmp/mayday201410151828-673385921/mayday_commands/df_-ali /tmp/mayday201410151828-673385921: file exists
2014/10/15 18:28:45 Running Command: "free -m"
2014/10/15 18:28:45 Saving output to /tmp/mayday201410151828-673385921/mayday_commands/free_-m
2014/10/15 18:28:45 Creating link (/tmp/mayday201410151828-673385921/free -> /tmp/mayday201410151828-673385921/mayday_commands/free_-m)
Output saved in /tmp/mayday201410151828-673385921.tar.gz
All done!
jonboulle commented 9 years ago

Derr, swapped arguments. Fixed.

crawford commented 9 years ago

Looks like a solid start.

crawford commented 9 years ago

:shaved_ice: