未加星标

Hyper-V Cluster Get Nodes Memory Usage

字体大小 | |
[系统(windows) 所属分类 系统(windows) | 发布者 店小二05 | 时间 2018 | 作者 红领巾 ] 0人收藏点击收藏
Why

Similar as before (here) having information about your cluster nodes memory usage can be helpful. Especially when creating a bunch of new VMs.

How

I can get the information from Failover Cluster Manager (one node at a time):


Hyper-V Cluster   Get Nodes Memory Usage

I can get it using windows Admin Center


Hyper-V Cluster   Get Nodes Memory Usage

or I can get it through PowerShell

The PowerShell way

Because both solutions (Failover Cluster Manager and WAC) lack the flexibility (node by node, or no accurate number) i prefer PowerShell.

As I mentioned before I tend to use alternative credentials to access critical resources. Unfortunately Get-ClusterNode doesn’t accept Credential parameter. So, despite it’s possible to query nodes directly, I’d rather use Invoke-Command to access cluster information. This way I can connect cross-domain as well. Then, the information I need can be easily retrieved using WMI:

Get-WmiObject -Class win32_operatingsystem -ComputerName $ClusterNode

It’s good to have all active nodes in a cluster queried with one sweep. I’ll be using Select-Object to filter the output. It’s easier to read the code that way (link).

Let’s wrap it into a function:

本文系统(windows)相关术语:三级网络技术 计算机三级网络技术 网络技术基础 计算机网络技术

tags: information,nodes,cluster,way,PowerShell,get,using,node,Cluster,Get
分页:12
转载请注明
本文标题:Hyper-V Cluster Get Nodes Memory Usage
本站链接:https://www.codesec.net/view/604430.html


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(windows) | 评论(0) | 阅读(10)