Skip to content

Instantly share code, notes, and snippets.

@tomgullo
Created August 14, 2012 18:17
Show Gist options
  • Save tomgullo/3351423 to your computer and use it in GitHub Desktop.
Save tomgullo/3351423 to your computer and use it in GitHub Desktop.
get ips from subnet
def s = new org.apache.commons.net.util.SubnetUtils(<cidr>)
println s.getInfo().getAllAddresses()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment