2LL
asked on
Script/tool to check network share disk space
Hi all, I am looking for the script or tool to check multiple network share drives (these share drive physicaly located on SAN and NAS). Thanks.
ASKER
Vikshi,
These script showed available disk, is there script or tool that query on multiple servers with report show: Share Drive Name, Total disk space, and Available disk space? Then save it to somewhere. Thank you very much for your help.
These script showed available disk, is there script or tool that query on multiple servers with report show: Share Drive Name, Total disk space, and Available disk space? Then save it to somewhere. Thank you very much for your help.
ASKER
Can anyone help please?
Assuming that you know the ip's of the network shares
for /L %%x in (101 1 120) DO (
net use x: /DELETE
net use x: \\10.10.10.%%x
x:
dir >> c:\info.txt
)
the above script is in assumption that your share ips are in order eg 10.10.10.1 10.10.10.2 etc
if they are not replace the for loop with below
for %%x in (10.10.10.1 10.11.112.3 ......) DO (
for /L %%x in (101 1 120) DO (
net use x: /DELETE
net use x: \\10.10.10.%%x
x:
dir >> c:\info.txt
)
the above script is in assumption that your share ips are in order eg 10.10.10.1 10.10.10.2 etc
if they are not replace the for loop with below
for %%x in (10.10.10.1 10.11.112.3 ......) DO (
ASKER
Vikas Madhusudana, thank you for your response. dir command show to many detail of files/folders under the drive that you map, but does not show total space of that driver. Is there any other way?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is not exactly what I want, but it is good for reference.
can you please add some more details of what exactly you want.
~Vikas
~Vikas
http://www.novell.com/communities/node/3123/vbscript-check-disk-space-availability
http://www.wisesoft.co.uk/scripts/vbscript_disk_space_usage_report.aspx