Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting drive information from a NAS
Message
De
20/09/2013 13:28:16
 
 
À
20/09/2013 11:57:52
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01583738
Message ID:
01583758
Vues:
36
>I have a DriveInformation class in my framework which returns a bunch of information across the network for specific drives and contains a lot of methods. However, none of those available methods presently supports a non Windows drive. In a new environment, we have a domain NAS drives and I cannot find a way to collect the data from it.
>
>This page details how to get the same from something that the .NET Framework classes would recognize as a Windows drive:
>
>http://msdn.microsoft.com/en-us/library/system.management.managementscope.aspx
>
>But, this doesn't work in the environment I am trying to collect the available space from it.
>
>Anyone would have any idea on what other approaches can apply here?

Most NASs are based on Linux and don't support WMI. If the link you show above requires connecting to a "WMI server" on the NAS that's not going to work.

NASs typically use Samba to provide SMB/CIFS - compatible file services. So, you'll only be able to use Windows services that are emulated by Samba. My guess is you're going to have to approach it through the properties of network connections/shares rather than properties of the NAS host itself.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform