import re
ipsearch = re.compile('192\.168\.1\.[0-9]{1,3}')
#for d in dmd.Groups.<groupname>.getSubDevices():
#for d in dmd.Devices.getSubDevices():
for d in dmd.Devices.getSubDevices():
for i in d.os.interfaces():
ipaddress = i.getIpAddress()
if ipaddress == None:
continue
else:
if ipsearch.search(ipaddress):
print d.id+" "+ipaddress