Solved

Get-WMIobject

Posted on 2016-10-24
4
46 Views
Last Modified: 2016-11-13
I plan to run poweshell script to get free space on mount point disks. I may have to schedule this script to run at every five minutes to monitor the logs disks.
Will this cause any performance impact on server if it runs at every five minutes interval ?
0
Comment
Question by:sara2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 70

Expert Comment

by:Qlemo
ID: 41858269
If you are not asking for any detail: no. free/used space for a partition is available immediately.
Asking for file sizes for specific files is ok. Getting the folder size is more demanding, as it requires to go thru all subfolders.
But do you really need to have 5 minute monitoring?
0
 

Author Comment

by:sara2000
ID: 41858569
I am trying to monitor Exchange dbs and logs disk space (RDM LUN). If  the logs fills the lun then LUN will go offline (NetAPP LUNs) for that reason I would like to monitor it for every five minutes or an hour. I am going to run get-wmiobject remotely.
0
 
LVL 70

Accepted Solution

by:
Qlemo earned 500 total points (awarded by participants)
ID: 41858626
Once each hour should be sufficient.
Whether you run WMI locally or remote doesn't matter (much), it is always executed on the target side.
As said, if you keep info on the disk/partitiion level (and knowing about free space is that level) there should be no issue:
(Get-WmiObject Win32_LogicalDisk -Computer ExchangeServer -Filter { DeviceID = 'D:' }).FreeSpace -lt 10GB

Open in new window

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question