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:windows:wincheck:index.html [2018/02/02 23:07] kurihara |
os:windows:wincheck:index.html [2018/05/13 23:19] (current) kurihara |
||
---|---|---|---|
Line 1: | Line 1: | ||
[[: | [[: | ||
- | ====== Windows Check (wincheck.py)===== | + | ====== Windows Check with Fabric |
$FHHOME/ | $FHHOME/ | ||
Line 7: | Line 7: | ||
\\ | \\ | ||
- | ===== Operation ===== | + | ===== Operation |
<sxh bash toolbar: | <sxh bash toolbar: | ||
Line 14: | Line 14: | ||
</ | </ | ||
- | ==== Ref. Remote Shell Commands | + | \\ |
+ | ==== How to Check to Use Fabric in Windows ==== | ||
+ | <sxh bash toolbar: | ||
+ | $ ssh user01@xx.xx.xx.xx hostname | ||
+ | $ ssh user01@xx.xx.xx.xx " | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | ==== Fabric one-line Task Examples | ||
==Cmd.exe== | ==Cmd.exe== | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
Line 23: | Line 31: | ||
==PowerShell.exe== | ==PowerShell.exe== | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | $ fab -H xx.xx.xx.xx -u USER -p PASSWORD --set shell=False --no-pty -- $PSVersionTable | + | $ fab -H xx.xx.xx.xx -u USER -p PASSWORD --shell="" |
- | $ fab -H xx.xx.xx.xx -u USER -p PASSWORD --set shell=False, | + | $ fab -H xx.xx.xx.xx -u USER -p PASSWORD --shell=" |
+ | </ | ||
+ | |||
+ | <sxh bash toolbar: | ||
+ | ## This isn't work well. Why? Please tell me. | ||
+ | $ fab -H xx.xx.xx.xx -u USER -p PASSWORD --shell="" | ||
+ | $ fab -H xx.xx.xx.xx -u USER -p PASSWORD --shell=" | ||
</ | </ | ||
Line 65: | Line 79: | ||
def netstat_rn(): | def netstat_rn(): | ||
run(" | run(" | ||
+ | |||
+ | # | ||
+ | # wincheck.test_netconnection: | ||
+ | # | ||
+ | @task | ||
+ | def test_netconnection(host, | ||
+ | """ | ||
+ | run(' | ||
+ | run(" | ||
+ | |||
Line 90: | Line 114: | ||
@task | @task | ||
def net_user_active(user): | def net_user_active(user): | ||
- | """ | + | |
run(" | run(" | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.