IPCalcReturnSubnetAddresses
An automation script to return subnet addresses.
python · Community Common Scripts
Details
| ID | IPCalcReturnSubnetAddresses |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.11879924 |
README
An automation script to return subnet addresses
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | |
| Cortex XSOAR Version | 6.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| subnet | Subnet to use |
Outputs
| Path | Description | Type |
|---|---|---|
| IPCalc.IP.Address | Subnet addresses | String |
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
args: - description: Subnet to use. name: subnet required: true comment: An automation script to return subnet addresses. commonfields: id: IPCalcReturnSubnetAddresses version: -1 name: IPCalcReturnSubnetAddresses outputs: - contextPath: IPCalc.IP.Address description: Subnet addresses. type: String script: '-' subtype: python3 timeout: '0' type: python dockerimage: demisto/python3:3.12.13.11879924 tests: - No tests fromversion: 6.0.0