Table of Contents

Top#Preparation

Directory Structure



FastHandle Manager Server

$FHHOME Top Directory

Choose a HOME directory.

Example:
/home/$USER/fhhome        # $FHHOME
/home/fasthandle/fhhome   # $FHHOME
/home/fasthandle/fabric   # $FHHOME

                    fh.env
                    fhscripts/
                    linux/
                    windows/
                    others/


FastHand Scripts Directory

$FHHOME/fhscripts/

          fhscripts/      # This is FastHandle Scripts for execute from manager server.
               fhhelp.sh     # fhhelp.sh |less

               fhghost.sh    # fhghost.sh hosts/xxxx

               fhssh.sh      # fhssh.sh  -H x.x.x.x auth.test
               fhping.sh     # echo x.x.x.x | fhping.sh
               fhfping.sh    # echo x.x.x.x | fhfping.sh
               
               check_loginpass.exp
               check_rootpass.exp

Fabric Directory for Linux

$FHHOME/linux/

          fabfile/
              __init__.py

              test.py    # fab  test.test01

              user.py    # fab  user.useradd_user01
              centos.py  # fab  centos.init
              httpd.py   # fab  httpd.install_yum
              nginx.py   # fab  nginx.install_yum
              squid.py   # fab  squid.install_yum

              test-web.py  # fab  test-web.createfile
              test-ap.py   # fab  test-ap.createfile
              test-db.py   # fab  test-db.createfile

              20180620_user1.py   # fab  20180620_user1.xxxxx
              20180925_user2.py   # fab  20180925_user2.xxxxx

          hosts/
               test
               pro_linux
               pro_win
               pro_vmware
               stg_linux
               dev_linux

          key/
              id_rsa.fasthandle.pro-fasthandle-1
              id_rsa.fasthandle.stg-fasthandle-1
              id_rsa.fasthandle.dev-fasthandle-1


          target/

              key/
                  id_rsa.USER.HOSTNAME
                  id_rsa.user01.test-server-01
                  id_rsa.user02.test-server-02


              linux/
                  etc/sysctl.conf_centos6
                  etc/sysctl.conf_centos7
                  etc/selinux/config
                  etc/cron.d/performance

              named/
                  named.conf.HOSTNAME.YYYYMMDD
                  named.conf.test-server-01.20161115
                  named.conf.test-server-01.20171202

              httpd/
                  httpd.conf.HOSTNAME.YYYYMMDD
                  httpd.conf.test-server-01.20170815
                  httpd.conf.test-server-01.20171205

              scripts/       # this scripts is for remote server's scripts.
                  df.sh      # Remote Server : /home/fasthandle/scripts/xxx.xh
                  ps.sh
                  top.sh
                  netstat-s.sh
                  netstat-i.sh
                  ...

              bin/
                  nc
                  xpinfo

              src/
                  xxxx.tar.gz

              rpm/
                  xxxx.rpm

              deb/
                  xxxx.deb


          output/
              201712
                  systeminfo.test-server1.20171129_1039    # sdiff -w 200  file1 file2
                  systeminfo.test-server2.20171129_1039

          log/
              history.yyyymm.log
              history.201701.log
              history.201702.log

          release/
              2015/
              2016/
              2017/
                  20171105/
                      operation_user01.txt
                      hosts_user1.txt
                      user1.py
          tmp/

Fabric Directory for Windows

$FHHOME/windows/

          fabfile/
              __init__.py

              test.py    # fab  test.test01
              
              xxxx.py    # fab  xxx.yyyy


              20180620_user1.py   # fab  20180620_user1.xxxxx
              20180925_user2.py   # fab  20180925_user2.xxxxx

          hosts/
               test
               pro_win
               stg_win

          key/
              id_rsa.fasthandle.pro-fasthandle-1
              id_rsa.fasthandle.stg-fasthandle-1
              id_rsa.fasthandle.dev-fasthandle-1


          target/

              key/
                  id_rsa.USER.HOSTNAME
                  id_rsa.user01.test-server-01
                  id_rsa.user02.test-server-02


              windows/
                  hosts_20201112

          output/
              201712
                  systeminfo.test-server1.20171129_1039    # sdiff -w 200  file1 file2
                  systeminfo.test-server2.20171129_1039

          log/
              history.yyyymm.log
              history.201701.log
              history.201702.log

          release/
              2015/
              2016/
              2017/
                  20171105/
                      operation_user01.txt
                      hosts_user1.txt
                      user1.py
          tmp/




FastHandle Target Server

Example:
/home/$USER/fhhome/
/home/fasthandle/fhhome/

    scripts/
        xxx.sh
        xxx.py

    output/
        systeminfo.test-server1.20171129_1039
        systeminfo.test-server1.20171129_1750

    tmp/


Top#Preparation



Top#Preparation