Jun-06-2017, 01:18 AM
(This post was last modified: Jun-06-2017, 12:39 PM by sparkz_alot.)
I can find the disk space for the host I am on using this script
#!/usr/bin/env python3
import shutil
total, used, free = shutil.disk_usage(__file__)
print( int(total/1024), int(used/1024), int(free/1024))
What I need is to find the disk space ON A REMOTE HOST.
I want to replace a bash script with a python script
I want to go through a list of hosts and determine the disk space usage.
We use redhat 5/6/7
#!/usr/bin/env python3
import shutil
total, used, free = shutil.disk_usage(__file__)
print( int(total/1024), int(used/1024), int(free/1024))
What I need is to find the disk space ON A REMOTE HOST.
I want to replace a bash script with a python script
I want to go through a list of hosts and determine the disk space usage.
We use redhat 5/6/7