FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
os:linux:check:index.html [2018/02/04 23:27] kurihara ↷ Page moved from os:check:index.html to os:linux:check:index.html |
os:linux:check:index.html [2019/02/11 00:41] (current) kurihara |
||
---|---|---|---|
Line 1: | Line 1: | ||
[[: | [[: | ||
- | ====== Check OS Status (check.py) ====== | + | ====== Check Linux Status |
$FHHOME/ | $FHHOME/ | ||
Line 7: | Line 7: | ||
\\ | \\ | ||
- | ===== Operation ===== | + | ===== Operation |
==== Print list of possible commands | ==== Print list of possible commands | ||
Line 13: | Line 13: | ||
$ fab -l |grep -F check. | $ fab -l |grep -F check. | ||
check.check_ssh_hostname | check.check_ssh_hostname | ||
- | check.nmap | + | check.nmap |
check.ntpsync | check.ntpsync | ||
check.ping_gw | check.ping_gw | ||
Line 25: | Line 25: | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | $ fab -H $H auth.pro | + | $ fab -H $H |
</ | </ | ||
- | ==== Ref. Remote Shell Commands | + | \\ |
+ | ==== Fabric one-line Task Examples | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | $ fab -H $H auth.pro | + | $ fab -H $H -- systemctl get-default |
- | $ FAB -H $H auth.pro | + | $ FAB -H $H -- systemctl set-default multi-user.target |
</ | </ | ||
Line 44: | 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=os.environ[" | ||
Line 59: | Line 61: | ||
# | # | ||
# check.nmap | # check.nmap | ||
- | # | + | # |
# | # | ||
@task | @task | ||
Line 133: | Line 135: | ||
|<100% 200px ->| | |<100% 200px ->| | ||
- | | [[os: | + | | [[os:linux: |
- | | [[os: | + | | [[os:linux: |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.