Skip to main content

IPCalcReturnSubnetAddresses

This Script is part of the Community Common Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

An automation script to return subnet addresses

Script Data#


NameDescription
Script Typepython3
Tags
Cortex XSOAR Version6.0.0

Inputs#


Argument NameDescription
subnetSubnet to use

Outputs#


PathDescriptionType
IPCalc.IP.AddressSubnet addressesString

Script Example#

!IPCalcReturnSubnetAddresses subnet=192.168.20.90/28

Context Example#

{
"IPCalc": {
"IP": {
"Address": [
"192.168.20.81",
"192.168.20.82",
"192.168.20.83",
"192.168.20.84",
"192.168.20.85",
"192.168.20.86",
"192.168.20.87",
"192.168.20.88",
"192.168.20.89",
"192.168.20.90",
"192.168.20.91",
"192.168.20.92",
"192.168.20.93",
"192.168.20.94"
]
}
}
}

Human Readable Output#

List Addresses#

IP Addresses:
192.168.20.81
192.168.20.82
192.168.20.83
192.168.20.84
192.168.20.85
192.168.20.86
192.168.20.87
192.168.20.88
192.168.20.89
192.168.20.90
192.168.20.91
192.168.20.92
192.168.20.93
192.168.20.94