/build/static/layout/Breadcrumb_cap_w.png

How to: Create a machine based smart label based on IP Subnet?

Hi,

We're trying to use the K1000 for managed install using their local replica server, however some our sites are split up via DHCP so for example:

10.61.41.0 to 10.61.41.30 is a different site / smart label than:
10.61.41.31 to 10.61.41.38

I tried using IP address is '<' '>' to no avail.

Is there any solution for this?

0 Comments   [ + ] Show comments

Answers (7)

Posted by: omallem 9 years ago
Senior Yellow Belt
1
I'm not sure exactly which release the change was made, but you can now use the > and < to define the IP address sequence.  I tested with 6.3.


Posted by: airwolf 13 years ago
Red Belt
0
You would need to do a "matches regex" and use regular expressions like 10\.61\.41\.[0-3][0-9]? and 10\.61\.41\.3[1-8].
Posted by: craig.thatcher 13 years ago
Orange Belt
0
or you could use the built in mysql function
inet_aton like so....

select *
from MACHINE
WHERE INET_ATON(IP) BETWEEN INET_ATON('162.114.75.1') AND INET_ATON('162.114.75.255')


INET_ATON FUNCTION
Posted by: AndrewPa 13 years ago
Orange Belt
0
ORIGINAL: airwolf

You would need to do a "matches regex" and use regular expressions like 10\.61\.41\.[0-3][0-9]? and 10\.61\.41\.3[1-8].


Love your work...
but one last thing: in testing I noticed that expression also had items 10.61.41.145 come up... :(

Anyway to limit the last quadrant to just 2 numbers for instance?
Posted by: scottlutz 13 years ago
Orange Senior Belt
0
If you want to stick with a RegEx, give the following URL a look. Just enter the start and end IP addresses, and it spits out the RegEx:
http://www.analyticsmarket.com/freetools/ipregex
Posted by: AndrewPa 13 years ago
Orange Belt
0
ORIGINAL: scottlutz

If you want to stick with a RegEx, give the following URL a look. Just enter the start and end IP addresses, and it spits out the RegEx:
http://www.analyticsmarket.com/freetools/ipregex




Amazing!! Works perfect. Thank you :)
Posted by: GillySpy 13 years ago
7th Degree Black Belt
0
In addition to whatever expression you are using make sure you know which IP address of the machine you are interested in. Based on your question I'm guessing that you are only interested in the IP of the NIC that the machine is currently using to connect to kbox with. See this post: http://www.appdeploy.com/messageboards/fb.asp?m=63482
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ