PAN-OS-GetDeviceDiskSpace

Fetches disk space info from the target device and returns all information or a subset as specified in command arguments.

python · PAN-OS by Palo Alto Networks

Details

IDPAN-OS-GetDeviceDiskSpace
Languagepython
From Version6.10.0
Docker Imagedemisto/python3:3.12.13.10116658

README

This script fetches disk space info from the target device and returns all information or a subset as specified in command arguments.

Script Data


Name Description
Script Type python3
Cortex XSOAR Version 6.10.0

Dependencies


This script uses the following commands and scripts.

  • Panorama
  • pan-os

Used In


This script is used in the following playbooks and scripts.

  • PAN-OS - Firewall Upgrade Readiness Checks

Inputs


Argument Name Description
target The serial number of the device to get disk space info from.
panos_instance_name The instance name of the PAN-OS Integration to use. Specify only one instance.
disk_space_units  

Outputs


Path Description Type
PANOS.DiskSpace.hostid Serial number of the device. string
PANOS.DiskSpace.FileSystems.FileSystem The device file system. string
PANOS.DiskSpace.FileSystems.Size The size of the file system. number
PANOS.DiskSpace.FileSystems.Used The amount of used space on the file system. number
PANOS.DiskSpace.FileSystems.Avail The amount of free space on the file system. number
PANOS.DiskSpace.FileSystems.Used% The percentage of total size used. string
PANOS.DiskSpace.FileSystems.MountedOn The path where the file system is mounted. string
PANOS.DiskSpace.FileSystems.Units The unit used to represent disk space values. string
args:
- description: The serial number of the device to get disk space info from. Required on Panorama instances.
  name: target
- description: The instance name of the PAN-OS Integration to use. Specify only one instance.
  name: panos_instance_name
- auto: PREDEFINED
  description: The units to represent disk space.
  name: disk_space_units
  defaultValue: G
  predefined:
  - T
  - G
  - M
  - K
comment: Fetches disk space info from the target device and returns all information or a subset as specified in command arguments.
commonfields:
  id: 'PAN-OS-GetDeviceDiskSpace'
  version: -1
dependson:
  must:
  - '|||pan-os'
dockerimage: demisto/python3:3.12.13.10116658
enabled: true
engineinfo: {}
name: PAN-OS-GetDeviceDiskSpace
outputs:
- contextPath: PANOS.DiskSpace.hostid
  description: Serial number of the device.
  type: string
- contextPath: PANOS.DiskSpace.FileSystems.FileSystem
  description: The device file system.
  type: string
- contextPath: PANOS.DiskSpace.FileSystems.Size
  description: The size of the file system.
  type: number
- contextPath: PANOS.DiskSpace.FileSystems.Used
  description: The amount of used space on the file system.
  type: number
- contextPath: PANOS.DiskSpace.FileSystems.Avail
  description: The amount of free space on the file system.
  type: number
- contextPath: PANOS.DiskSpace.FileSystems.Used%
  description: The percentage of total size used.
  type: string
- contextPath: PANOS.DiskSpace.FileSystems.MountedOn
  description: The path where the file system is mounted.
  type: string
- contextPath: PANOS.DiskSpace.FileSystems.Units
  description: The unit used to represent disk space values.
  type: string
runas: DBotWeakRole
runonce: false
script: ''
scripttarget: 0
subtype: python3
tags: []
type: python
tests:
- No tests (auto formatted)
fromversion: 6.10.0
supportedModules:
- agentix
- xsiam
- cloud_posture
marketplaces:
- platform