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:get:index.html [2018/02/04 23:25] kurihara ↷ Links adapted because of a move operation |
os:linux:get:index.html [2019/02/11 00:40] (current) kurihara |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| [[: | [[: | ||
| - | ====== Get OS Conf (get.py) ====== | + | ====== Get Linux Configuration with Fabirc |
| $FHHOME/ | $FHHOME/ | ||
| Line 7: | Line 7: | ||
| \\ | \\ | ||
| - | ===== Operation ===== | + | ===== Operation |
| <sxh bash toolbar: | <sxh bash toolbar: | ||
| $ fab -l |grep get | $ fab -l |grep get | ||
| - | $ fab -H $H auth.pro | + | $ fab -H $H |
| </ | </ | ||
| Line 27: | Line 27: | ||
| 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 75: | Line 76: | ||
| outfile = " | outfile = " | ||
| - | local(" | + | local(" |
| run(" | run(" | ||
| + | run(" | ||
| put(" | put(" | ||
| - | sudo(" | + | sudo(" |
| - | get(" | + | get(" |
| </ | </ | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.