虚拟机管理器 - 按运行时间搜索虚拟机
我正在使用 Virtual Machine Manager 2008 R2,想知道你们是否知道我如何通过运行时间搜索虚拟机。
我想找到运行时间最长的机器,这样我就可以检查并重新启动任何已经运行超过 6 个月的机器。
也许使用 powershell 可以实现这一点? GUI 内的任何内容都会更好!
I'm using Virtual Machine Manager 2008 R2 and was wondering if any of you know how I might be able to search for virtual machines by running time.
I would like to find the machines that have been up and running the longest, so that I can go through and reboot any that have been up for over 6 months.
Perhaps using powershell this can be accomplished? Anything from within the GUI would be even better!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更新:刚刚找到了一种更好、更短的方法:
您可以使用 WMI 从每个虚拟机获取信息。这将为您提供运行超过 6 个月而无需重新启动的所有虚拟机:
UPDATE: Just found a better, and shorter, way:
You can get the information from each VM with WMI. This will give you all VMs running more than 6 months without a reboot: