Experimental

Download 671
Last updated Nov 4, 2026

sonar-matchnet-by-ip

Find the network subnets that contain an IP address, searching every subnet group at once.

Unlike matchnet, which needs a group guid or name up front, this looks the group up for you. One row per matching subnet, carrying the group it belongs to. Sonar stores subnets as IPv4 only.

Syntax

sonar-matchnet-by-ip [ip=IP] [keywords=KEYWORDS] [limit=NUM]

Options

ip=IP
Optional. IPv4 address to look up. Omit to search without an address condition
keywords=KEYWORDS
Optional. Space separated search terms, matched against the subnet group name and description, or against the subnet description
limit=NUM
Optional. Maximum number of rows to return (default: no limit)

Output Fields

FieldTypeNameDescription
ipIP addressIPAddress that was looked up
subnet_group_guidStringGroup GUIDSubnet group GUID
subnet_group_nameStringGroup nameSubnet group name
subnet_group_descriptionStringGroup descriptionSubnet group description
subnet_idIntegerSubnet IDSubnet entry ID
subnet_start_ipIP addressStart IPFirst address of the subnet
subnet_end_ipIP addressEnd IPLast address of the subnet, computed from the prefix when stored as a CIDR block
subnet_cidrIntegerCIDRPrefix length, or null when the subnet was stored as a range
subnet_descriptionStringDescriptionSubnet description
subnet_app_codeStringApp codeCode of the app that owns the subnet, or null when it was added by hand