Closed brianredbeard closed 8 years ago
Currently there is no subdirectory created within the tarable which contains all of the assets. When this is unpacked it pollutes the current directory, e.g.:
core@redbeard-2gb-2-3 ~ $ tar zxvf /tmp/mayday201607192145.573323796.tar.gz proc/vmstat proc/meminfo meminfo proc/mounts mounts etc/os-release os-release mayday_commands/hostname hostname mayday_commands/date date mayday_commands/systemd-cgls mayday_commands/systemd-cgtop_-n1 mayday_commands/ps_fauxwww ps mayday_commands/lsmod lsmod mayday_commands/lspci lspci mayday_commands/lsof_-b_-M_-n_-l lsof mayday_commands/blkid mayday_commands/btrfs_fi_show mayday_commands/df_-al df mayday_commands/ip_-o_addr_show ip_addr_show mayday_commands/ip_-o_link_show ip_link_show mayday_commands/ip_-o_route_show ip_route_show mayday_commands/netstat_-neopa netstat mayday_commands/df_-ali mayday_commands/free_-m free mayday_commands/systemctl_list-units_-a all_units mayday_commands/systemctl_list-units_--state=running running_units mayday_commands/systemctl_status_etcd.service etcd_status mayday_commands/systemctl_status_etcd2.service etcd2_status mayday_commands/systemctl_status_fleet.service fleet_status mayday_commands/systemctl_status_flanneld.service flanneld_status journals/update-ca-certificates.service.log journals/systemd-remount-fs.service.log journals/addon-run@usr-share-oem.service.log journals/systemd-importd.service.log journals/update-engine-stub.service.log journals/systemd-update-done.service.log journals/systemd-journald.service.log journals/systemd-hwdb-update.service.log journals/system-cloudinit@usr-share-oem-cloud\\x2dconfig.yml.service.log journals/motdgen.service.log journals/rescue.service.log journals/kmod-static-nodes.service.log journals/setup-nsswitch.service.log journals/systemd-journal-flush.service.log journals/ldconfig.service.log journals/coreos-setup-environment.service.log journals/systemd-ask-password-console.service.log journals/locksmithd.service.log journals/systemd-journal-catalog-update.service.log journals/addon-config@usr-share-oem.service.log journals/systemd-machine-id-commit.service.log journals/sshd@9484-45.55.248.49:22-50.250.250.45:39608.service.log journals/systemd-tmpfiles-setup-dev.service.log journals/systemd-udev-trigger.service.log journals/getty@tty1.service.log journals/systemd-localed.service.log journals/ssh-key-proc-cmdline.service.log journals/sshd.service.log journals/emergency.service.log journals/systemd-networkd.service.log journals/systemd-machined.service.log journals/serial-getty@ttyS0.service.log journals/rkt-metadata.service.log journals/systemd-sysctl.service.log journals/audit-rules.service.log journals/sshd-keygen.service.log journals/systemd-resolved.service.log journals/issuegen.service.log journals/systemd-logind.service.log journals/user-cloudinit@var-lib-coreos\\x2dinstall-user_data.service.log journals/etcd2.service.log journals/systemd-vconsole-setup.service.log journals/rkt-gc.service.log journals/systemd-hostnamed.service.log journals/coreos-tmpfiles.service.log journals/xenserver-pv-version.service.log journals/systemd-binfmt.service.log journals/systemd-timesyncd.service.log journals/systemd-modules-load.service.log journals/logrotate.service.log journals/systemd-fsck-root.service.log journals/remount-root.service.log journals/user-cloudinit-proc-cmdline.service.log journals/update-engine.service.log journals/systemd-initctl.service.log journals/systemd-update-utmp.service.log journals/dbus.service.log journals/systemd-tmpfiles-clean.service.log journals/systemd-timedated.service.log journals/sshd@9432-45.55.248.49:22-50.250.250.45:38650.service.log journals/clean-ca-certificates.service.log journals/systemd-tmpfiles-setup.service.log journals/systemd-sysusers.service.log journals/etcd.service.log journals/tcsd.service.log journals/systemd-random-seed.service.log journals/systemd-udev-settle.service.log journals/docker.service.log journals/sshd@9525-45.55.248.49:22-116.31.116.52:44710.service.log journals/systemd-udevd.service.log journals/extend-filesystems.service.log journals/systemd-user-sessions.service.log journals/systemd-ask-password-wall.service.log core@redbeard-2gb-2-3 ~ $ ls -ltr total 17560 -rwxr-xr-x. 1 core core 17832416 Jul 19 21:38 mayday -rw-r--r--. 1 core core 1942 Jul 19 21:45 config.json lrwxrwxrwx. 1 core core 52 Jul 19 21:45 running_units -> 'mayday_commands/systemctl_list-units_--state=running' lrwxrwxrwx. 1 core core 26 Jul 19 21:45 ps -> mayday_commands/ps_fauxwww lrwxrwxrwx. 1 core core 14 Jul 19 21:45 os-release -> etc/os-release lrwxrwxrwx. 1 core core 30 Jul 19 21:45 netstat -> mayday_commands/netstat_-neopa lrwxrwxrwx. 1 core core 11 Jul 19 21:45 mounts -> proc/mounts lrwxrwxrwx. 1 core core 12 Jul 19 21:45 meminfo -> proc/meminfo lrwxrwxrwx. 1 core core 21 Jul 19 21:45 lspci -> mayday_commands/lspci lrwxrwxrwx. 1 core core 32 Jul 19 21:45 lsof -> mayday_commands/lsof_-b_-M_-n_-l lrwxrwxrwx. 1 core core 21 Jul 19 21:45 lsmod -> mayday_commands/lsmod lrwxrwxrwx. 1 core core 32 Jul 19 21:45 ip_route_show -> mayday_commands/ip_-o_route_show lrwxrwxrwx. 1 core core 31 Jul 19 21:45 ip_link_show -> mayday_commands/ip_-o_link_show lrwxrwxrwx. 1 core core 31 Jul 19 21:45 ip_addr_show -> mayday_commands/ip_-o_addr_show lrwxrwxrwx. 1 core core 24 Jul 19 21:45 hostname -> mayday_commands/hostname lrwxrwxrwx. 1 core core 23 Jul 19 21:45 free -> mayday_commands/free_-m lrwxrwxrwx. 1 core core 22 Jul 19 21:45 df -> mayday_commands/df_-al lrwxrwxrwx. 1 core core 20 Jul 19 21:45 date -> mayday_commands/date lrwxrwxrwx. 1 core core 39 Jul 19 21:45 all_units -> mayday_commands/systemctl_list-units_-a lrwxrwxrwx. 1 core core 46 Jul 19 21:45 fleet_status -> mayday_commands/systemctl_status_fleet.service lrwxrwxrwx. 1 core core 49 Jul 19 21:45 flanneld_status -> mayday_commands/systemctl_status_flanneld.service lrwxrwxrwx. 1 core core 45 Jul 19 21:45 etcd_status -> mayday_commands/systemctl_status_etcd.service lrwxrwxrwx. 1 core core 46 Jul 19 21:45 etcd2_status -> mayday_commands/systemctl_status_etcd2.service drwxr-xr-x. 2 core core 4096 Jul 19 21:45 proc drwxr-xr-x. 2 core core 4096 Jul 19 21:45 mayday_commands drwxr-xr-x. 2 core core 4096 Jul 19 21:45 journals drwxr-xr-x. 2 core core 4096 Jul 19 21:45 etc core@redbeard-2gb-2-3 ~ $ pwd /home/core
It's better to put these into a subdirectory to make it easier for a user to clean up when they're done analyzing the output. Possibly reusing now.
now
Currently there is no subdirectory created within the tarable which contains all of the assets. When this is unpacked it pollutes the current directory, e.g.:
It's better to put these into a subdirectory to make it easier for a user to clean up when they're done analyzing the output. Possibly reusing
now
.