Skip to content

Instantly share code, notes, and snippets.

@NamPNQ
Created December 30, 2015 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NamPNQ/7330e124daafaaa2bfbe to your computer and use it in GitHub Desktop.
Save NamPNQ/7330e124daafaaa2bfbe to your computer and use it in GitHub Desktop.
from fabric.api import run
def check_status():
run('df -h')
run('service --status-all | grep running')
# How to use
# pip install fabric
# fabric check_status -H root@xxx.xxx.xxx.xxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment