NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

Invoke-NaSysStat vs. SSH sysstat command

JAL
4,633 Views

All,

I'm trying to get the same "Disk Util" statistics that you get when running the "SysStat" command via Putty, when using the PowerShell command of "Invoke-NaSysStat".  Is this a possibilty or, is there another PowerShell command I can use to get the Disk Util stats?  I want to use PowerShell so I can automate and pipe to a DB to extract at a later point in time.

 

Thanks for any help,

 

joe

1 ACCEPTED SOLUTION

J_curl
4,616 Views

Have you tried

 

invoke-nasysstat -Disk *, should give you what you need

 

 

   TypeName: DataONTAP.Types.Perf.DiskPerfInfo

Name                MemberType    Definition
----                ----------    ----------
Busy                AliasProperty Busy = DiskUtilPercent
DiskRd              AliasProperty DiskRd = ReadBytesPerSecond
DiskWr              AliasProperty DiskWr = WriteBytesPerSecond
PendOps             AliasProperty PendOps = AveragePendingOps
QueueOps            AliasProperty QueueOps = AverageQueuedOps
RdLat               AliasProperty RdLat = ReadLatency
RdOps               AliasProperty RdOps = ReadOpsPerSecond
TotOps              AliasProperty TotOps = TotalOpsPerSecond
WrLat               AliasProperty WrLat = WriteLatency
WrOps               AliasProperty WrOps = WriteOpsPerSecond
Equals              Method        bool Equals(System.Object obj)
GetHashCode         Method        int GetHashCode()
GetType             Method        type GetType()
ToString            Method        string ToString()
AveragePendingOps   Property      System.Nullable[decimal] AveragePendingOps {get;set;}
AverageQueuedOps    Property      System.Nullable[decimal] AverageQueuedOps {get;set;}
Controller          Property      string Controller {get;set;}
ControllerTimestamp Property      System.Nullable[datetime] ControllerTimestamp {get;set;
Disk                Property      string Disk {get;set;}
DiskUid             Property      string DiskUid {get;set;}
DiskUtilPercent     Property      System.Nullable[decimal] DiskUtilPercent {get;set;}
ReadBytesPerSecond  Property      System.Nullable[decimal] ReadBytesPerSecond {get;set;}
ReadLatency         Property      System.Nullable[timespan] ReadLatency {get;set;}
ReadOpsPerSecond    Property      System.Nullable[decimal] ReadOpsPerSecond {get;set;}
Timestamp           Property      datetime Timestamp {get;set;}
TotalOpsPerSecond   Property      System.Nullable[decimal] TotalOpsPerSecond {get;set;}
WriteBytesPerSecond Property      System.Nullable[decimal] WriteBytesPerSecond {get;set;}
WriteLatency        Property      System.Nullable[timespan] WriteLatency {get;set;}
WriteOpsPerSecond   Property      System.Nullable[decimal] WriteOpsPerSecond {get;set;}

 

View solution in original post

2 REPLIES 2

J_curl
4,617 Views

Have you tried

 

invoke-nasysstat -Disk *, should give you what you need

 

 

   TypeName: DataONTAP.Types.Perf.DiskPerfInfo

Name                MemberType    Definition
----                ----------    ----------
Busy                AliasProperty Busy = DiskUtilPercent
DiskRd              AliasProperty DiskRd = ReadBytesPerSecond
DiskWr              AliasProperty DiskWr = WriteBytesPerSecond
PendOps             AliasProperty PendOps = AveragePendingOps
QueueOps            AliasProperty QueueOps = AverageQueuedOps
RdLat               AliasProperty RdLat = ReadLatency
RdOps               AliasProperty RdOps = ReadOpsPerSecond
TotOps              AliasProperty TotOps = TotalOpsPerSecond
WrLat               AliasProperty WrLat = WriteLatency
WrOps               AliasProperty WrOps = WriteOpsPerSecond
Equals              Method        bool Equals(System.Object obj)
GetHashCode         Method        int GetHashCode()
GetType             Method        type GetType()
ToString            Method        string ToString()
AveragePendingOps   Property      System.Nullable[decimal] AveragePendingOps {get;set;}
AverageQueuedOps    Property      System.Nullable[decimal] AverageQueuedOps {get;set;}
Controller          Property      string Controller {get;set;}
ControllerTimestamp Property      System.Nullable[datetime] ControllerTimestamp {get;set;
Disk                Property      string Disk {get;set;}
DiskUid             Property      string DiskUid {get;set;}
DiskUtilPercent     Property      System.Nullable[decimal] DiskUtilPercent {get;set;}
ReadBytesPerSecond  Property      System.Nullable[decimal] ReadBytesPerSecond {get;set;}
ReadLatency         Property      System.Nullable[timespan] ReadLatency {get;set;}
ReadOpsPerSecond    Property      System.Nullable[decimal] ReadOpsPerSecond {get;set;}
Timestamp           Property      datetime Timestamp {get;set;}
TotalOpsPerSecond   Property      System.Nullable[decimal] TotalOpsPerSecond {get;set;}
WriteBytesPerSecond Property      System.Nullable[decimal] WriteBytesPerSecond {get;set;}
WriteLatency        Property      System.Nullable[timespan] WriteLatency {get;set;}
WriteOpsPerSecond   Property      System.Nullable[decimal] WriteOpsPerSecond {get;set;}

 

JAL
4,558 Views

Thanks, exactly what I was looking for and needed.

 

-joe

Public