Forum Discussion

IT_GUY's avatar
7 years ago

Auto Assign Device group based on IPs

Has anybody had any success in creating a device group that's populated based on what ips are in system.ips? thanks.

  • You could hypothetically use dynamic groups and helluva lot of regex to do that. The system.ips property appears to be one of those array properties, so use the join( ) function to combine them. Then use regular expression equality---

    join(system.ips, ",") =~ "192\\.168\\.0\\.[0-2]?[0-9](?:,|$)"

    This should filter the group's membership to only include devices with IPs from 192.168.0.0 to 192.168.0.29.