Kaushal Shriyan
2016-07-18 12:24:04 UTC
My fabric python script is here
######################################################
from fabric.api import *
env.hosts = ['192.168.1.215','192.168.1.168','192.168.1.99']
def checkconn():
run('w')
def checkdisk():
run('df -hT --total')
######################################################
$*fab checkconn* should write to a file in the local system instead of
stdout on the console. For example output of "w" command run on the remote
server should be written to a file locally.
Any help will be highly appreciable
Regards,
Kaushal
######################################################
from fabric.api import *
env.hosts = ['192.168.1.215','192.168.1.168','192.168.1.99']
def checkconn():
run('w')
def checkdisk():
run('df -hT --total')
######################################################
$*fab checkconn* should write to a file in the local system instead of
stdout on the console. For example output of "w" command run on the remote
server should be written to a file locally.
Any help will be highly appreciable
Regards,
Kaushal