Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get-WMIobject

Posted on 2016-10-24
4
Medium Priority
?
62 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
  • 2
3 Comments
 
LVL 71

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 71

Accepted Solution

by:
Qlemo earned 2000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
Loops Section Overview
Screencast - Getting to Know the Pipeline

783 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