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:package:cmd.html [2017/12/06 01:09] kurihara |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | [[: | ||
| - | ~~NOTOC~~ | ||
| - | ====== Commands Management====== | ||
| - | |||
| - | |||
| - | ===== Operation ===== | ||
| - | |||
| - | <sxh bash toolbar: | ||
| - | $ echo a |fab -l |grep cmd. | ||
| - | $ echo a |fab auth.pro -- hostname | ||
| - | |||
| - | $ echo xx.xx.xx.xx | fab auth.pro | ||
| - | $ echo xx.xx.xx.xx | fab auth.pro | ||
| - | </ | ||
| - | |||
| - | \\ | ||
| - | ===== cmd.py ===== | ||
| - | |||
| - | <sxh python toolbar: | ||
| - | import sys | ||
| - | from fabric.api import * | ||
| - | |||
| - | # | ||
| - | # Common | ||
| - | # | ||
| - | @task | ||
| - | def common(): | ||
| - | put(" | ||
| - | sudo(" | ||
| - | |||
| - | |||
| - | # | ||
| - | # Server | ||
| - | # | ||
| - | |||
| - | |||
| - | # | ||
| - | # PC | ||
| - | # | ||
| - | |||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | \\ | ||
| - | ===== Scripts ===== | ||
| - | <sxh bash toolbar: | ||
| - | #!/bin/sh | ||
| - | |||
| - | |||
| - | which rsync >/ | ||
| - | which vim >/ | ||
| - | which tree >/ | ||
| - | which wget >/ | ||
| - | |||
| - | # | ||
| - | #Netowrk | ||
| - | # | ||
| - | which ifconfig | ||
| - | which netstat | ||
| - | which dig >/ | ||
| - | which host >/ | ||
| - | which nmap >/ | ||
| - | which nc >/ | ||
| - | which traceroute | ||
| - | which tcpdump | ||
| - | which snmpget | ||
| - | which snmpwalk | ||
| - | |||
| - | # | ||
| - | #Peformance | ||
| - | # | ||
| - | which dstat >/ | ||
| - | which iperf >/ | ||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | \\ | ||
| - | <WRAP box 90%> | ||
| - | [[: | ||
| - | <catlist -noAddPageButton -noHead> | ||
| - | </ | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.