FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Sidebar


Top     SiteMap

Manager Server

Target Server

$FHHOME/bin/xxx.sh | xxxx.exp













.

preparation:directory-structure.html



This is an old revision of the document!


Top#Preparation

Directory Structure

FastHandle Manager Server

$FHHOME Top Directory

/home/fasthandle/fhhome   # $FHHOME
    fh.env
    linux/
    others/
    win/

Linux Directory

/home/fasthandle/fhhome/linux/

          fabfile/
              __init__.py

              test.py    # fab auth.pro  test.test01

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

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

              20180620.py   # fab auth.pro 20180620.xxxxx
              20180925.py   # fab auth.pro 20180925.xxxxx



          bin/      # 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

          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/


FastHandle Target Server



preparation/directory-structure.html.1549814602.txt.gz ยท Last modified: 2019/02/11 01:03 by kurihara