Back to the list of connectors

Windows - DiskPart

Description

Discovers and monitors the logical disks in a Microsoft Windows system through the DISKPART.EXE utility, notably the software RAID volumes.

Connector ID: DiskPart

This connector is superseded by:

Target

Typical platform: Any system

Operating system: Microsoft Windows

Prerequisites

Leverages: The DISKPART.EXE command-line utility

Technology and protocols: System Commands

This connector is not available for remote hosts (it is applicable to the local host only).

Examples

CLI

hws HOSTNAME -t win -f DiskPart --wmi -u USER

hws-config.yaml

hosts:
- host:
    hostname: <HOSTNAME> # Change with actual host name
    type: win
  selectedConnectors: [ DiskPart ] # Optional, to load only this connector
  wmi:
    username: <USERNAME> # Change with actual credentials
    password: <PASSWORD> # Encrypted using hws-encrypt

Connector Activation Criteria

The Windows - DiskPart connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:

  • Operating System is Microsoft Windows
  • The command below succeeds on the monitored host
    • Command: CHCP 437&&DISKPART.EXE /S %EmbeddedFile(3)%
    • Output contains: Leaving DiskPart (regex)

Metrics

Type Collected Metrics Specific Attributes (Labels)
Logical Disk, RAID
  • hw.logical_disk.limit
  • hw.status{hw.type="logical_disk",state="ok|degraded|failed"}
  • hw.status{hw.type="logical_disk",state="present"}
  • info
  • raid_level
No results.