Using BEMCLI to list current storage state ?
I need to determine current state of storage devices in a storage pool, i.e. online or offline, using BEMCLI.
The following command does not list this information and I can't find the way to resolve the issue.
PS H:\> Get-BEDiskStorageDevice -Name "*samedi*"
Name StorageType Active Paused Disabled Servers
---- ----------- ------ ------ -------- -------
USB dernier samedi de l'an DiskStorageDevice False False False {FOR-MGMT}
USB dernier samedi du trimestre DiskStorageDevice False False False {FOR-MGMT}
USB 1er samedi DiskStorageDevice False False False {FOR-MGMT}
USB 3e samedi DiskStorageDevice False False False {FOR-MGMT}
USB 4e samedi DiskStorageDevice False False False {FOR-MGMT}
USB 5e samedi DiskStorageDevice False False False {FOR-MGMT}
USB 2e samedi DiskStorageDevice False False False {FOR-MGMT}
In abvove example the 3rd disk listed is in effect online and I need a specific command to determine this via a script.
This command will return the State of the device:
Get-BEDiskStorageDevice "<insert_disk_storage_name_here>" | Select-Object -ExpandProperty Servers
Third from the top of the return data will be 'IsOnline'.