WindowsStorageMixin implements napalm-device-types' HostStorageMixin, so
the host reports its storage and stays a host:
- get_disks: Get-PhysicalDisk with medium, bus, Windows' health and the
Storage Spaces pool a disk is in; a Storage Spaces virtual disk is no
physical disk.
- get_disk_smart: Get-StorageReliabilityCounter per disk (temperature,
wear, power-on hours, uncorrected read and write errors). A counter
that cannot be read is no counter, not an error; disks that report
nothing are left out.
- get_disk_pools: Storage Spaces' pools.
- get_volumes: fixed volumes mounted at a drive letter or in a folder,
with file system and health.
A disk whose medium Windows cannot tell and whose counters are empty (a
virtual disk, a RAID controller's logical disk) reads temperature -1 and
health "unknown". Every script probes its cmdlets first. The fixtures
are synthetic; the scripts are in harvest.py for the first real host.