Ask The Experts

How to view exact value from columns from Invoke-NaSysstat in powershell

Nikhileshwar
734 Views

Hi Team ,

Below is the command output .

PS C:\Windows\System32\WindowsPowerShell\v1.0> Invoke-NaSysstat -C 10 -i 1

CPU NFS CIFS HTTP FCP iSCSI RdOps WrOps TotOps NetRcvd NetSent DiskRd DiskWr RdLat WrLat TotLat
— — —- —- — —– —– —– —— ——- ——- —— —— —– —– ——
20% 0 0 0 0 3k 2k 2k 3k 119 MB 25 MB 94 MB 84 MB 3.7 1.2 2.5
16% 0 0 0 0 3k 2k 860 3k 55 MB 35 MB 123 MB 105 MB 2.0 1.0 1.7
18% 0 0 0 0 3k 2k 1k 3k 76 MB 60 MB 90 MB 96 MB 1.2 1.2 1.2

When i execute the below command am getting the values converted into the decimal formats

PS C:\Windows\System32\WindowsPowerShell\v1.0> Invoke-NaSysstat -C 3 -i 1 | select -Property CPU,RdOps,TotOps,RdLat,WrLat,TotLat |ft -AutoSize

CPU RdOps TotOps RdLat WrLat TotLat
— —– —— —– —– ——
16.608434020506442770739977520 426 786 00:00:00.0031901 00:00:00.0003528 00:00:00.0018906
7.7836471545454169987981315300 142 505 00:00:00.0053873 00:00:00.0002204 00:00:00.0016713
9.180171280928607237464662560 361 1057 00:00:00.0040748 00:00:00.0008290 00:00:00.0019385

1)How to get the exact original columns from the initial output without converting them to decimal format ?

0 REPLIES 0
Public