Help available disk space attached physical drives
import argparse
import os
parser.add_argument('--system-name', action='store_true', help='display system name')
parser.add_argument('--ip-addresses', action='store_true', help='display IP addresses by interface')
parser.add_argument('--printers', action='store_true', help='display list of configured printers')
args = parser.parse_args()
print('IP Addresses:')
for interface, addresses in psutil.net_if_addrs().items():
print('Operating System:')
print(platform.system())
for line in cpuinfo.split('\n'):
if 'model name' in line:
for line in meminfo.split('\n'):
if 'MemTotal' in line:
if 'loop' not in partition.device and 'cdrom' not in partition.device:
usage = psutil.disk_usage(partition.mountpoint)
for line in printers.split('\n'):
if line.startswith('printer '):