Git Product home page Git Product logo

collect-exec's Introduction

Technical overview | Installation | Configuration | Running | License

This shell script collects configuration and diagnostic information from *nix operation systems.


Installation

Fork and give permission.

cd /var/tmp && git clone https://github.com/kdiegorsantos/collect-exec
chmod u+x /var/tmp/collect-exec/bin/collect-exec.sh

Configuration

  • cron job

Create a cron job to execute the script every day.

cat <<EOF>> /var/spool/cron/crontabs/root
00 22 * * * timeout 30m /var/tmp/collect-exec/bin/collect-exec.sh
EOF
  • ansible-playbook

If you want to automate the deploy of this shell script, feel free to use these ansible playbooks.

Deploy the shell script to your servers.

ansible-playbook /var/tmp/collect/ansible/deploy_collect-exec.yml

Fetch tar files from your servers.

ansible-playbook /var/tmp/collect/ansible/fetch_collect-exec.yml

Running

To run the shell script.

./var/tmp/collect-exec/bin/collect-exec.sh

Uncompress the tar file and check the collected information.

tar -xvf /var/tmp/collect/collect_ubuntu_09122016.tar.bz2 -C /var/tmp/collect
ls /var/tmp/collect/ubuntu_09122016
arp_a.txt                haclus_engineversion.txt     last_boot.txt       ps_alxwww.txt               vxddladm_listsupport.txt
cfscluster_status.txt    had_version.txt              lltconfig_W.txt     ps_auxwwwm.txt              vxddladm_namingscheme.txt
chkconfig.txt            hares_list.txt               lltstat.txt         pstree.txt                  vxdg_list.txt
crontab.txt              hastatus_summ.txt            lltstat_active.txt  pvs.txt                     vxdisk_e_list.txt
date.txt                 hasys_list.txt               lltstat_n.txt       pvscan.txt                  vxdisk_list.txt
df_alP.txt               hasys_nodeid.txt             lsblk.txt           redhat-release.txt          vxdisk_o_alldgs_list.txt
df_h.txt                 hasys_state.txt              lsmod.txt           rhncfg-client_channels.txt  vxdisk_s_list.txt
df_i.txt                 hatype_display.txt           lsof_bMnl.txt       route.txt                   vxdmpadm_gettune_all.txt
df_k.txt                 hatype_list.txt              lspci.txt           rpcinfo_p_localhost.txt     vxdmpadm_listapm_all.txt
dmesg.txt                hauser_display.txt           lspci_v.txt         rpm_qa.txt                  vxdmpadm_listctlr_all.txt
dmidecode.txt            hauser_list.txt              lsscsi.txt          rpm_qai.txt                 vxdmpadm_listenclosure_all.txt
dmsetup_info.txt         hostid.txt                   lvm_dumpconfig.txt  runlevel.txt                vxdmpadm_stat_restored.txt
dmsetup_ls.txt           hostname.txt                 lvm_version.txt     showmount.txt               vxdmpdbprint.txt
dmsetup_status.txt       ifconfig.txt                 lvmdiskscan.txt     swapon.txt                  vxfenadm_d.txt
dmsetup_table.txt        ifenslave_a.txt              lvs.txt             ulimit.txt                  vxlicense_p.txt
exportfs_v.txt           ip_address.txt               lvs_segments.txt    uname.txt                   vxlicrep.txt
fdisk.txt                ip_link.txt                  multipath.txt       vgdisplay.txt               vxlicrep_e.txt
files                    ip_link_show.txt             netstat_agn.txt     vgs.txt                     vxlist.txt
free.txt                 ip_maddr_show.txt            netstat_antpl.txt   vgscan.txt                  vxprint_AGts.txt
gabconfig_W.txt          ip_mroute_show.txt           netstat_anupl.txt   vxclustadm_nidmap.txt       vxprint_Athq.txt
gabconfig_a.txt          ip_neigh_show.txt            netstat_neopa.txt   vxclustadm_nodestate.txt    vxprint_ht.txt
getconf_long_bit.txt     ip_route_show_table_all.txt  netstat_nr.txt      vxclustadm_v_nodestate.txt  vxprint_m_rootdg.txt
getconf_page_size.txt    ipcs_a.txt                   netstat_s.txt       vxdctl_c_mode.txt           yum_repolist.txt
hacf_verify_display.txt  java.txt                     nfsstat.txt         vxdctl_mode.txt
haclus_display.txt       java_version.txt             ntpstat.txt         vxddladm_listjbod.txt

License

This project is licensed under the MIT license. See included LICENSE.md.

collect-exec's People

Contributors

kdiegorsantos avatar

Watchers

 avatar

Forkers

ilqp-sysinfo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.