python 2.7 - command output in flat manner using run -
i know based on putty row,colms settings command output differs , sometime in flat manner , time in taller structure. here using putty , ssh when login remote machine command output coming in flat way on other hand using script local machine using run command output coming @ home machine in taller structure want know how control "fab run" have output in taller way.
example after command execution remote machine (ssh remote) , command :
cluster slot cpu admin ha cpu id number number type personality model state state state ------------------------------------------------------------------------ 102 1 1 v-csm csm vcsm enabled active 2 1 v-csm csm vcsm enabled active
from script having output = run(command, shell=false, pty=false)
output coming below :
cluster 102 summary 1 1 type v-csm personality csm model vcsm admin state enabled ha state active cpu state cpu uptime "d:042 h:00 m:06 s:49"
Comments
Post a Comment