Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psshlib/cli.py #2

Open
aresnasa opened this issue Aug 23, 2018 · 0 comments
Open

psshlib/cli.py #2

aresnasa opened this issue Aug 23, 2018 · 0 comments

Comments

@aresnasa
Copy link

_DEFAULT_PARALLELISM default 32

if _DEFAULT_PARALLELISM < hostslist

syscheck.sh cli:
sys_check.sh
----------------------split line----------------------
sar 1 10 | grep Average | sed -s "s/.* //"
free | grep Mem
df -k | sed 's/%./%/; s/. //'|xargs
----------------------split line----------------------
pssh cli:
----------------------split line----------------------
pssh -h hostslist -P 'syscheck.sh' > result.log

#error result.log like below
host_ip: 99.92
Mem: 264483252 226775872 37707380 0 488104 213974680
Use% 73% 1% 9% 2%

#right result.log like below
hostip: 99.92
hostip: Mem: 264483252 226775872 37707380 0 488104 213974680
hostip: Use% 73% 1% 9% 2%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant