Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need disk space info (SNMP, Framework, ???)
Message
 
À
23/08/2002 13:23:05
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00693035
Message ID:
00693067
Vues:
17
I would start looking into System.Management.ManagementObject.

For example, the following code gives disk size of C:\
ManagementObject disk = new ManagementObject("win32_logicaldisk.deviceid=\"c:\"");
disk.Get();
MessageBox.Show("Logical Disk Size = " + disk["Size"] + " bytes");
>I posted this question about two months or so ago and didn't get any replies. I'm hoping for some guru's out there to point me in the right direction.....
>
>The client (a worlwide company) wants to bill their departments by disk space usage. Each department is given a certain amount of GB or TB as a mapped drive or share as their own. Each month I need to poll each "drive" and find out how much disk space is in use, after that I do the financial calcs and print reports/invoices.
>
>The kicker here is that the "drives" are all over the world on different types of OS's. In one polling session I need to get the disk space from several hundred servers such as a WINNT 4 in Sweden, a SUN server in Houston, an HP RS6000 in Bahrain, etc.
>
>I already have SQL tables with each managed object, it's IP address, etc.
>
>Of course the question(s) would be: can I use a .Net Framework class and simply ask for the disk space usage of //SwedenNT40/ShareName or is there some sort of SNMP call or other tie into .Net that I can use.
>
>BTW, I'm doing the project in VB.Net with SQL 2000 backend.
>
>TIA !!!
>
>Best Regards,
>Jace
- Jayesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform