FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools



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:windows:winope:index.html [2018/02/02 10:17]
os:windows:winope:index.html [2018/02/22 23:29] (current)
kurihara [How to Check to Use Fabric in Windows]
Line 1: Line 1:
 [[:index.html#OS Management|Top#OS Management]] [[:index.html#OS Management|Top#OS Management]]
-====== Windows Operation ( Windows Operation with Fabric (
 $FHHOME/fabfile/ $FHHOME/fabfile/
Line 7: Line 7:
 \\ \\
-===== Operation =====+===== Operation with Fabric =====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
Line 15: Line 15:
 </sxh> </sxh>
-==== RefRemote Shell Commands ====+\\ 
 +==== How to Check to Use Fabric in Windows ==== 
 +<sxh bash toolbar:false gutter:false> 
 +$ ssh user01@xx.xx.xx.xx hostname 
 +$ ssh user01@xx.xx.xx.xx "PowerShell.exe -Command Get-Host" 
 +==== Fabric one-line Task Examples ====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ fab -H xx.xx.xx.xx -u USER -p PASSWORD --shell="Cmd.exe /C" --no-pty -- hostname $ fab -H xx.xx.xx.xx -u USER -p PASSWORD --shell="Cmd.exe /C" --no-pty -- hostname
Line 27: Line 35:
 <sxh python toolbar:false gutter:false> <sxh python toolbar:false gutter:false>
-import sys+import sys, os
 from fabric.api import * from fabric.api import *
 from fabric.contrib import files from fabric.contrib import files

os/windows/winope/index.html.1517534257.txt.gz · Last modified: 2018/02/02 10:17 by kurihara