Solved

Get-WMIobject

Posted on 2016-10-24
4
32 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
4 Comments
 
LVL 69

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 69

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Set OWA language and time zone in Exchange for individuals, all users or per database.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

832 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