FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Sidebar


Top     SiteMap

Manager Server

Target Server

$FHHOME/bin/xxx.sh | xxxx.exp













.

preparation:fhhome:test.py.html



This is an old revision of the document!


test.py

test.py

Change login user and password and publickkey.

import sys
from fabric.api import *
from fabric.contrib import files


@task
def hostname():
    local('hostname')




Configuration Test

$ echo xx.xx.xx.xx | fab -- hostname
$ echo xx.xx.xx.xx | fab -- sudo cat /etc/shadow



preparation/fhhome/test.py.html.1511456252.txt.gz ยท Last modified: 2017/11/24 01:57 by kurihara