<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cluster mode powershell uptime reporting in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/101110#M4166</link>
    <description>&lt;P&gt;I am genuinely amazed with this, its beyond what I envisaged. Thank you so so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Certainly gives me a jump start with what i'm trying to achieve. Simply amazing.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.netapp.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Feb 2015 14:14:44 GMT</pubDate>
    <dc:creator>MAXWELL_CROOK</dc:creator>
    <dc:date>2015-02-26T14:14:44Z</dc:date>
    <item>
      <title>Cluster mode powershell uptime reporting</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/100784#M4153</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm in the infancy of powershell, i've managed to write 1 script so far that was pretty basic. However i've recently started down the route of trying to get a basic check in place. The check would be run via a script and would show if the nodes are up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find a cmdlet of anything in get-ncnode or get-ncnodeinfo that would provide me with this as a starter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, I may have missed this due to lack of knowledge but a nudge in the right direction would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:03:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/100784#M4153</guid>
      <dc:creator>MAXWELL_CROOK</dc:creator>
      <dc:date>2025-06-05T05:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster mode powershell uptime reporting</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/100792#M4154</link>
      <description>&lt;P&gt;i'm not sure if you are looking for uptime or if the node is healthy, but they both should be in get-ncnode:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS H:\&amp;gt; (get-ncnode).IsNodeHealthy&lt;BR /&gt;True&lt;BR /&gt;True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS H:\&amp;gt; (get-ncnode).nodeuptime&lt;BR /&gt;2334190&lt;BR /&gt;2339855&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mark&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 21:34:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/100792#M4154</guid>
      <dc:creator>markweber</dc:creator>
      <dc:date>2015-02-18T21:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster mode powershell uptime reporting</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/100820#M4155</link>
      <description>&lt;P&gt;Both to be honest! So thats really helpful, I keep forgetting that I can do a | fl and get all of the fields. Thanks for taking the time out to answer me. Appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 10:24:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/100820#M4155</guid>
      <dc:creator>MAXWELL_CROOK</dc:creator>
      <dc:date>2015-02-19T10:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster mode powershell uptime reporting</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/100890#M4159</link>
      <description>&lt;P&gt;no problem -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can also use get-member to list all the object types/definitions. I use it all the time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS E:\&amp;gt; get-ncnode |gm


   TypeName: DataONTAP.C.Types.System.NodeDetailsInfo

Name                               MemberType Definition                                                
----                               ---------- ----------                                                
Equals                             Method     bool Equals(System.Object obj)                            
GetHashCode                        Method     int GetHashCode()                                         
GetType                            Method     type GetType()                                            
ToString                           Method     string ToString()                                         
Validate                           Method     void Validate()                                           
CpuBusytime                        Property   System.Object CpuBusytime {get;set;}                      
CpuBusytimeSpecified               Property   bool CpuBusytimeSpecified {get;set;}                      
CpuFirmwareRelease                 Property   System.Object CpuFirmwareRelease {get;set;}               
EnvFailedFanCount                  Property   System.Object EnvFailedFanCount {get;set;}                
EnvFailedFanCountSpecified         Property   bool EnvFailedFanCountSpecified {get;set;}                
EnvFailedFanMessage                Property   System.Object EnvFailedFanMessage {get;set;}              
EnvFailedPowerSupplyCount          Property   System.Object EnvFailedPowerSupplyCount {get;set;}        
EnvFailedPowerSupplyCountSpecified Property   bool EnvFailedPowerSupplyCountSpecified {get;set;}        
EnvFailedPowerSupplyMessage        Property   System.Object EnvFailedPowerSupplyMessage {get;set;}      
EnvOverTemperature                 Property   System.Nullable[bool] EnvOverTemperature {get;set;}       
EnvOverTemperatureSpecified        Property   bool EnvOverTemperatureSpecified {get;set;}               
IsEpsilonNode                      Property   System.Nullable[bool] IsEpsilonNode {get;set;}            
IsEpsilonNodeSpecified             Property   bool IsEpsilonNodeSpecified {get;set;}                    
IsNodeClusterEligible              Property   System.Nullable[bool] IsNodeClusterEligible {get;set;}    
IsNodeClusterEligibleSpecified     Property   bool IsNodeClusterEligibleSpecified {get;set;}            
IsNodeHealthy                      Property   System.Nullable[bool] IsNodeHealthy {get;set;}            
IsNodeHealthySpecified             Property   bool IsNodeHealthySpecified {get;set;}                    
MaximumAggregateSize               Property   System.Object MaximumAggregateSize {get;set;}             
MaximumNumberOfVolumes             Property   System.Object MaximumNumberOfVolumes {get;set;}           
MaximumNumberOfVolumesSpecified    Property   bool MaximumNumberOfVolumesSpecified {get;set;}           
MaximumVolumeSize                  Property   System.Object MaximumVolumeSize {get;set;}                
NcController                       Property   NetApp.Ontapi.Filer.C.NcController NcController {get;set;}
Node                               Property   System.Object Node {get;set;}                             
NodeAssetTag                       Property   System.Object NodeAssetTag {get;set;}                     
NodeLocation                       Property   System.Object NodeLocation {get;set;}                     
NodeModel                          Property   System.Object NodeModel {get;set;}                        
NodeNvramId                        Property   System.Object NodeNvramId {get;set;}                      
NodeNvramIdSpecified               Property   bool NodeNvramIdSpecified {get;set;}                      
NodeOwner                          Property   System.Object NodeOwner {get;set;}                        
NodeSerialNumber                   Property   System.Object NodeSerialNumber {get;set;}                 
NodeSystemId                       Property   System.Object NodeSystemId {get;set;}                     
NodeUptime                         Property   System.Object NodeUptime {get;set;}                       
NodeUptimeSpecified                Property   bool NodeUptimeSpecified {get;set;}                       
NodeUptimeTS                       Property   System.Nullable[timespan] NodeUptimeTS {get;}             
NodeUuid                           Property   System.Object NodeUuid {get;set;}                         
NodeVendor                         Property   System.Object NodeVendor {get;set;}                       
NvramBatteryStatus                 Property   System.Object NvramBatteryStatus {get;set;}               
ProductVersion                     Property   System.Object ProductVersion {get;set;}                   &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 15:13:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/100890#M4159</guid>
      <dc:creator>markweber</dc:creator>
      <dc:date>2015-02-20T15:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster mode powershell uptime reporting</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/100925#M4161</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thats great thank you, let me state what im trying to do as well.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Daily, certain checks are performed manually to ensure that the health of our Netapp estate is running without errors.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;One of the checks thats perfomed is a&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;node run -node * -command uptime&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;This gives the following output for all nodes:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;Node: yournodename&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp; 3:58pm up 26 days,&amp;nbsp; 2:41 162 NFS ops, 98270 CIFS ops, 0 HTTP ops, 11126647187 FCP ops, 0 iSCSI ops&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff9900"&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;What we monitor is the figures above increasing to ensure data is going through each node- we do this as we once had a situation where the nodes where up but no data was being sent or recieved - kind of a big problem! So I want to automate this but i'm really struggling with the powershell equivalent of the above.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 12:33:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/100925#M4161</guid>
      <dc:creator>MAXWELL_CROOK</dc:creator>
      <dc:date>2015-02-23T12:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster mode powershell uptime reporting</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/100954#M4162</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;get-ncperfdata -name system -instance system -counter hostname,uptime,nfs_ops,cifs_ops,http_ops,fcp_ops,iscsi_ops&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can get a list of all the counters in the system object with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;get-ncperfcounter system |select name&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 17:10:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/100954#M4162</guid>
      <dc:creator>markweber</dc:creator>
      <dc:date>2015-02-23T17:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster mode powershell uptime reporting</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/101049#M4164</link>
      <description>&lt;P&gt;I must be doing something wrong as that gives me:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Lucida Console" color="#f5f5f5" size="1"&gt;Name Uuid Counters &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;system uuid counters&lt;/P&gt;&lt;P&gt;system node1-01:kernel:system {cifs_ops, fcp_ops, hostname, http_ops...}&lt;/P&gt;&lt;P&gt;system node1-02:kernel:system {cifs_ops, fcp_ops, hostname, http_ops...}&lt;/P&gt;&lt;P&gt;system node1-03:kernel:system {cifs_ops, fcp_ops, hostname, http_ops...}&lt;/P&gt;&lt;P&gt;system node1-04:kernel:system {cifs_ops, fcp_ops, hostname, http_ops...}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2015 14:05:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/101049#M4164</guid>
      <dc:creator>MAXWELL_CROOK</dc:creator>
      <dc:date>2015-02-25T14:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster mode powershell uptime reporting</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/101058#M4165</link>
      <description>&lt;P&gt;no - that's correct.&lt;/P&gt;&lt;P&gt;the actual values are part of the counters property&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS E:\&amp;gt; get-ncperfdata -name system -instance system -counter hostname,uptime,nfs_ops,cifs_ops,http_ops,fcp_ops,iscsi_ops

Name                   Uuid                                     Counters                                                                                                                                                                                 
----                   ----                                     --------                                                                                                                                                                                 
system                 LCNA2-01:kernel:system                   {cifs_ops, fcp_ops, hostname, http_ops...}                                                                                                                                               
system                 LCNA2-02:kernel:system                   {cifs_ops, fcp_ops, hostname, http_ops...}                                                                                                                                               
system                 LCNA2-03:kernel:system                   {cifs_ops, fcp_ops, hostname, http_ops...}                                                                                                                                               
system                 LCNA2-04:kernel:system                   {cifs_ops, fcp_ops, hostname, http_ops...}                                                                                                                                               &lt;/PRE&gt;&lt;P&gt;they can be painful to work with (at least for me) - wrap the above in ( ).counters and you will see the values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can loop through them and create a custome object to make working with them easier&lt;/P&gt;&lt;PRE&gt;$data = get-ncperfdata -name system -instance system -counter hostname,uptime,nfs_ops,cifs_ops,http_ops,fcp_ops,iscsi_ops
$results = foreach($datum in $data){
    [PSCustomObject]@{
        "node" = ($datum.counters |where name -eq hostname).value
        "cifs_ops" = ($datum.counters |where name -eq cifs_ops).value
        "fcp_ops" = ($datum.counters |where name -eq fcp_ops).value
        "http_ops" = ($datum.counters |where name -eq http_ops).value
        "iscsi_ops" = ($datum.counters |where name -eq iscsi_ops).value
        "nfs_ops" = ($datum.counters |where name -eq nfs_ops).value
        "uptime" = ($datum.counters |where name -eq uptime).value
        "timestamp" = $datum.timestamp
        "timestampdt" = $datum.timestampdt
    }
}
$results | ft&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;which should get you something like this:&lt;/P&gt;&lt;PRE&gt;PS E:\&amp;gt; $results | ft -AutoSize


node     cifs_ops fcp_ops http_ops iscsi_ops nfs_ops uptime   timestamp timestampdt          
----     -------- ------- -------- --------- ------- ------   --------- -----------          
LCNA2-01 35877    0       0        0         4       2855419 1424883849 2/25/2015 11:04:09 AM
LCNA2-02 48       0       0        0         6       2857639 1424883849 2/25/2015 11:04:09 AM
LCNA2-03 189      0       0        0         0       2854620 1424883849 2/25/2015 11:04:09 AM
LCNA2-04 22       0       0        0         6       2856406 1424883849 2/25/2015 11:04:09 AM&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2015 17:08:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/101058#M4165</guid>
      <dc:creator>markweber</dc:creator>
      <dc:date>2015-02-25T17:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster mode powershell uptime reporting</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/101110#M4166</link>
      <description>&lt;P&gt;I am genuinely amazed with this, its beyond what I envisaged. Thank you so so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Certainly gives me a jump start with what i'm trying to achieve. Simply amazing.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.netapp.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 14:14:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-mode-powershell-uptime-reporting/m-p/101110#M4166</guid>
      <dc:creator>MAXWELL_CROOK</dc:creator>
      <dc:date>2015-02-26T14:14:44Z</dc:date>
    </item>
  </channel>
</rss>

