FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:linux:check:index.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
os:linux:check:index.html [2018/02/22 23:22]
kurihara
os:linux:check:index.html [2019/02/11 00:41] (current)
kurihara
Line 13: Line 13:
 $ fab -l |grep -F check. $ fab -l |grep -F check.
     check.check_ssh_hostname                check_ssh_hostname:localuser,key,...     check.check_ssh_hostname                check_ssh_hostname:localuser,key,...
-    check.nmap                              fab auth.pro ope.nmap:22,x.x.x.x+    check.nmap                              fab  ope.nmap:22,x.x.x.x
     check.ntpsync     check.ntpsync
     check.ping_gw                           use  %s/scripts/check_ping_gw.sh     check.ping_gw                           use  %s/scripts/check_ping_gw.sh
Line 25: Line 25:
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-$ fab -H $H auth.pro  check.xxxx+$ fab -H $H   check.xxxx
 </sxh> </sxh>
  
Line 31: Line 31:
 ==== Fabric one-line Task Examples ==== ==== Fabric one-line Task Examples ====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-$ fab -H $H auth.pro -- systemctl get-default +$ fab -H $H  -- systemctl get-default 
-$ FAB -H $H auth.pro -- systemctl set-default multi-user.target  # CUI+$ FAB -H $H  -- systemctl set-default multi-user.target  # CUI
 </sxh> </sxh>
  
Line 45: Line 45:
 from fabric.api import * from fabric.api import *
 from fabric.contrib import files from fabric.contrib import files
 +from datetime import datetime
  
 FHHOME=os.environ["FHHOME"] FHHOME=os.environ["FHHOME"]
Line 60: Line 61:
 #------------------------------------------------------------------ #------------------------------------------------------------------
 # check.nmap # check.nmap
-#     fab auth.pro check.nmap:22,x.x.x.x+#     fab  check.nmap:22,x.x.x.x
 #------------------------------------------------------------------ #------------------------------------------------------------------
 @task @task


os/linux/check/index.html.1519309365.txt.gz · Last modified: 2018/02/22 23:22 by kurihara