Solved

Get-WMIobject

Posted on 2016-10-24
4
28 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 68

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 68

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

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...
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now