#!/user/bin/python
import os
max_host_number = 102
host_list = ["n0{:03d}.mhg".format(x) for x in range(30, max_host_number)]

print("there are {} MHG nodes".format(max_host_number))
for host in host_list:
   os.system("echo {}".format(host))
   #os.system("ssh {} \"df -h \" ".format(host))
   os.system("ssh {} \"du -sh /scratch/* \" ".format(host))

9d2b53bd50472590ba984b8c0c1a439cce67313c
<mask token>

<mask token>
print('there are {} MHG nodes'.format(max_host_number))
for host in host_list:
    os.system('echo {}'.format(host))
    os.system('ssh {} "du -sh /scratch/* " '.format(host))

<mask token>
max_host_number = 102
host_list = ['n0{:03d}.mhg'.format(x) for x in range(30, max_host_number)]
print('there are {} MHG nodes'.format(max_host_number))
for host in host_list:
    os.system('echo {}'.format(host))
    os.system('ssh {} "du -sh /scratch/* " '.format(host))

import os
max_host_number = 102
host_list = ['n0{:03d}.mhg'.format(x) for x in range(30, max_host_number)]
print('there are {} MHG nodes'.format(max_host_number))
for host in host_list:
    os.system('echo {}'.format(host))
    os.system('ssh {} "du -sh /scratch/* " '.format(host))

#!/user/bin/python
import os
max_host_number = 102
host_list = ["n0{:03d}.mhg".format(x) for x in range(30, max_host_number)]

print("there are {} MHG nodes".format(max_host_number))
for host in host_list:
   os.system("echo {}".format(host))
   #os.system("ssh {} \"df -h \" ".format(host))
   os.system("ssh {} \"du -sh /scratch/* \" ".format(host))
