Forum Replies Created

Viewing post 1 (of 1 total)

  • Reply To: WMI query to calculate disk latency

    $counter_read_latency = "\PhysicalDisk(*)\Avg. Disk sec/Read"

    $counter_write_latency = "\PhysicalDisk(*)\Avg. Disk sec/Write"

    $counter_read_IOPS = "\PhysicalDisk(*)\Disk Reads/sec"

    $counter_write_IOPS = "\PhysicalDisk(*)\Disk Writes/sec"

    while ($true)

    {

    Clear

    Get-Counter -Counter $counter_read_IOPS -ComputerName $args[0]

    Get-Counter -Counter $counter_write_IOPS -ComputerName $args[0]

    Get-Counter -Counter $counter_read_latency -ComputerName $args[0]

    Get-Counter -Counter $counter_write_latency...

Viewing post 1 (of 1 total)