Using labels with IP-adress
We have a problem with using IP-adress as source for a label. The way we have done it is to put all people in one geografical place with the same subnet. We then tried to create a label filtering on the first 3 sets of numbers in the IP omitting the last 3 (eg. Beginning with 192.168.0. But when people connect through VPN from home it is their home IP that is used in this filtering. How can we solve this problem?
I have started looking at LDAP Labels and thinks that must be where to go!?
Answers (3)
There's not an easy way that I can think of. First off, how are you creating the IP label? Are you using regex? If not, you will need to do so: http://www.kace.com/support/resources/kb/article/Tool-to-assist-in-building-REGEX-Inventory
If you can get the VPN address from a script, I think you could write it to a custom inventory field and use that. I don't have a way to test it currently, so I can't say if it would work or not for sure.
Something like this might work: http://superuser.com/questions/113271/how-to-find-my-vpn-client-ip-in-windows
Custom inventory field:
http://www.kace.com/support/resources/kb/article/What-are-the-steps-to-create-a-custom-data-field-Inventory?action=artikel&cat=3&id=522&artlang=en
http://www.kace.com/support/resources/kb/article/Writing-Command-Line-Output
This is a pretty interesting problem. If you solve it, make sure to update your question.