[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Need a tool to obtain server disk capacity summary

Posted on 2009-04-02
10
Medium Priority
?
680 Views
Last Modified: 2013-11-14
Hello,
I need a tool recommendation pls. I have a requirement to collect a server volume capacity summary on a daily basis.

All I need is <server.x> c$ <total> , <free> and % used
                                       d$ <total> , <free> and % used

Also needed is a sum total of ALL servers / volumes  space ie total / free / % (I know this is irrelevant)

I need to collect this from ~ 60 windows servers and 15 Netware servers.
I don't need any deep analysis of the data, just the volume usage.
It has to be able to be automated / scheduled.
Dont care if its just a script or small gui app

I'm already getting this data from SpacewatchPRO, but I cant automate it with this and the report data I have to massage

Thanks in advance



0
Comment
Question by:jcwiatr
9 Comments
 
LVL 6

Expert Comment

by:IKZ
ID: 24056414
Everest is a great tool- i know you just need something simple, but incase you need more, Everest has it.  Very basic or very advanced and robust reporting-- it even has scheduling, usage, uptime and downtime stats for each workstation.
0
 
LVL 17

Expert Comment

by:ccomley
ID: 24057922
Aida32 will gather a lot of info - not sure if it can do the Netware servers tho - worth a look.

Otherwise, if you have a Linux box to run it on, look at Nagios.

0
 
LVL 9

Expert Comment

by:sda100
ID: 24065450
Solution 1: (easiest)

One solution, just run a local (one-liner!) script and run it as a scheduled task.  You can email the results to yourself if you so wish.  For a Windows SMTP exedcutable, take a look at "Vmailer", and for Netware... anyone...?

Solution 2:

As ccomley said, you can use Nagios and run it on a Linux machine.  Install NSClient++ (and configure NRPE only) on each Windows machine, and use the check_pdm Nagios plugin from http://www.itefix.no/i2/download to get the info you need.  How you'd do it in Netware, I don't know - but there are plugins available.

Steve
0
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.

 
LVL 1

Author Comment

by:jcwiatr
ID: 24074409
Thanks for the replies, Ive looked at 'Everest', too many features than what i need and the output is too busy.  I really just need something that can just pipe the disk use / free as 1 line per server to a text file

Dont have a linux server available either.

Is there a native Windows command that gan grab this without adding a million lines of extra data. Ive just looked at the diskpart.exe tool and its not giving me what I want.
If I can get a commad to list just what i need, I can script it for all the server volumes.

The netware volume data is proving problematic.  i think I can get it from Adrem server manager, - but its $1000 per server. I need a cheaper (read free) solution
0
 
LVL 9

Expert Comment

by:sda100
ID: 24076404
For Windows:

This script: check_disk.vbs is written to be used with Nagios, but it's just a .VBS script which you can run standalone.  You can then do whatever you like with the output.

To get help:

       cscript //NoLogo check_disk.vbs /h

Sample command (for all drives):

       cscript //NoLogo check_disk.vbs /w:0 /c:0 /p /u:GB

Sample command (for drive C:):

       cscript //NoLogo check_disk.vbs /w:0 /c:0 /p /d:C /u:GB

Sample command (for drives C: and G:)

       cscript //NoLogo check_disk.vbs /w:0 /c:0 /p /d:CG /u:GB

I hope this is what you're looking for.

Steve :)
0
 
LVL 9

Expert Comment

by:sda100
ID: 24076419
Whoops, my link above doesn't work... here it is:

check_disk (download the .VBS file)
http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1496.html;d=1

Steve :)
0
 
LVL 1

Author Comment

by:jcwiatr
ID: 24094021
sda100:  - thanks for the input, Ive played around with the nagios script but cant really get it do output what I want.
Ignoring the netware for now - i've almost got it right with a Windows powerscript.

this code: -
get-wmiobject -computer (get-content servers.txt) -class Win32_LogicalDisk -filter "DriveType=3" | Select SystemName,DeviceID,Size,FreeSpace | out-file c:\temp2\diskscript\report.txt

Outputs: -

SystemName          DeviceID                           Size           FreeSpace
----------          --------                           ----           ---------
server1             C:                          10739494912           620572672
server2              D:                         589257764864        440090234880

this is almost exaxctly what I need, - I'm just missing the %used field.
Any powerscript experts know how to add a %used field?
thx

0
 
LVL 1

Accepted Solution

by:
jcwiatr earned 0 total points
ID: 24190450
This powershell script does the job


--------------------------------------------------------------------------------------------------------
$Input = gc c:\temp2\diskscript\servers.txt

$drives = gwmi win32_logicaldisk -filter "drivetype=3" -ComputerName $Input | Select SystemName,DeviceID,Size,Freespace

$free = @{Name="FreeSpace(GB)";Expression={($_.freespace/1GB).tostring("0.00")}}
$Size = @{n="Capacity(GB)";e={"{0:N2}" -f ($_.Size/1GB)}}
$Percentfree = @{Name="Percentfree";E={((($_.freespace/1GB)/($_.size/1GB))*100).tostring("0.00")}}
$used = @{n="Used(GB)";e={"{0:N2}" -f (($_.Size/1GB)-($_.freespace/1GB)).tostring("0.00")}}

$drives | select SystemName,DeviceID,$Size,$used,$free,$percentFree | ft -auto | out-file c:\temp2\diskscript\report.txt
0
 
LVL 9

Expert Comment

by:sda100
ID: 24196916
Congratulations on the solution, and thanks for posting it back here.

Steve :)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month18 days, 8 hours left to enroll

825 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