Skip to main content

IPCalcCheckSubnetCollision

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 collision result

Script Data#


NameDescription
Script Typepython3
Tags
Cortex XSOAR Version6.0.0

Inputs#


Argument NameDescription
subnet_oneFirst subnet
subnet_twoSecond subnet

Outputs#


PathDescriptionType
IPCalc.IP.Collision.subnet1Collission first subnetString
IPCalc.IP.Collision.subnet2Collission second subnetString
IPCalc.IP.Collision.collisionCollission resultString

Script Example#

!IPCalcCheckSubnetCollision subnet_one=192.169.20.10/28 subnet_two=192.169.20.11

Context Example#

{
"IPCalc": {
"IP": {
"Collision": {
"collision": true,
"subnet1": "192.169.20.0/28",
"subnet2": "192.169.20.11/32"
}
}
}
}

Human Readable Output#

Collision Check#

collisionsubnet1subnet2
true192.169.20.0/28192.169.20.11/32