#!/usr/bin/env python
# _*_ coding:utf-8 _*_
# Author:Mazhenkai
#import os
import paramiko
def cat_ip_host_disk():
stdin,stdout,stderr = ssh.exec_command(" ifconfig eth0|grep 'inet '|awk -F '[ :]' '{print $13}';hostname;df -hT",get_pty=True)
res,err = stdout.read(),stderr.read()
result = res if res else err
print(result.decode())
def Svn_listen():
stdin,stdout,stderr = ssh.exec_command("ifconfig eth0|grep 'inet '|awk -F '[ :]' '{print $13}';hostname;df -hT",get_pty=True)
result = stdout.read()
print(result.decode())
print("