• 0
Sign in to follow this  
IT GUY

Auto Assign Device group based on IPs

Question

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

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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. 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this