myCmd = os.popen("arp -a").read()
print(myCmd)
for line in myCmd.splitlines():
for item in line.split():
if "-" in item:
if "--" not in item:
try:
print(item + ": " + MacLookup().lookup(item))
except:
print(item + ": not found")
>net accounts
Force user logoff how long after time expires?: Never
Minimum password age (days): 0
Maximum password age (days): 30
Minimum password length: 15
Length of password history maintained: 12
Lockout threshold: 3
Lockout duration (minutes): 45
Lockout observation window (minutes): 45
Computer role: WORKSTATION