IPNetwork
Gather information regarding CIDR - 1. Broadcast_address 2. CIDR 3. First_address 4. Last address 5. Max prefix len 6. Num addresses 7. Private 8. Version.
python · Common Scripts
Details
| ID | IPNetwork |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | ip |
README
Gather information regarding CIDR -
1. Broadcast_address
2. CIDR
3. First_address
4. Last address
5. Max prefix len
6. Num addresses
7. Private
8. Version
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | ip |
| Cortex XSOAR Version | 5.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| cidr | IP/CIDR, e.g. 192.168.0.0/24 |
Outputs
| Path | Description | Type |
|---|---|---|
| Network.CIDR | Network CIDR. | String |
| Network.Num_addresses | Number of availble addresses in the CIDR. | Number |
| Network.First_address | First address in the network CIDR. | String |
| Network.Last_address | Last address in the network CIDR. | String |
| Network.Version | Version of IP. | Number |
| Network.Private | True if IP is private. | Boolean |
| Network.Max_prefix_len | Max prefix length of CIDR. | Number |
| Network.Broadcast_address | Broadcast address of CIDR. | String |
args: - description: IP/CIDR, e.g. 192.168.0.0/24. name: cidr required: true commonfields: id: IPNetwork version: -1 name: IPNetwork comment: | Gather information regarding CIDR - 1. Broadcast_address 2. CIDR 3. First_address 4. Last address 5. Max prefix len 6. Num addresses 7. Private 8. Version. outputs: - contextPath: Network.CIDR description: Network CIDR. type: String - contextPath: Network.Num_addresses description: Number of availble addresses in the CIDR. type: Number - contextPath: Network.First_address description: First address in the network CIDR. type: String - contextPath: Network.Last_address description: Last address in the network CIDR. type: String - contextPath: Network.Version description: Version of IP. type: Number - contextPath: Network.Private description: True if IP is private. type: Boolean - contextPath: Network.Max_prefix_len description: Max prefix length of CIDR. type: Number - contextPath: Network.Broadcast_address description: Broadcast address of CIDR. type: String script: '-' subtype: python3 tags: - ip timeout: '0' type: python dockerimage: demisto/python3:3.12.13.10404775 runas: DBotWeakRole fromversion: 5.0.0 tests: - No tests (auto formatted)