Solved

Need a tool to obtain server disk capacity summary

Posted on 2009-04-02
10
669 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
10 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 16

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
 
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Solid State Drive Performance Tips: Solid state storage technology is now a standard.  After testing and using several different brands and revisions of SSD's over the years I have put together a collection of tips,tools and suggestions that I ha…
This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
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…

746 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

12 Experts available now in Live!

Get 1:1 Help Now