Nemurenai has asked for the wisdom of the Perl Monks concerning the following question:
which outputsuse warnings; use Win32::OLE qw( in ); my $WMIServices; my $Machine = "."; $WMIServices = Win32::OLE->GetObject( "winmgmts:{impersonationLevel= impersonate,(security)}//".$Machine ); my $res = $WMIServices->ExecQuery("select * from MMStorageDriver_Failu +rePredictData"); foreach (keys %$res) { print "$_\n"; }
It seems to me that WMI resources tend to have keys in the hash which don't show up in a 'foreach (keys %$foo)' - is this correct? And if so, is there any way to extract these keys? I've been unable to find out which ones WMI provides for SMART info. ThanksCount Security_
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SMART info from drives in win32 using WMI
by wfsp (Abbot) on May 17, 2006 at 13:36 UTC | |
|
Re: SMART info from drives in win32 using WMI
by McDarren (Abbot) on May 17, 2006 at 13:38 UTC | |
by Nemurenai (Acolyte) on May 17, 2006 at 13:52 UTC | |
by McDarren (Abbot) on May 17, 2006 at 14:05 UTC | |
by Nemurenai (Acolyte) on May 17, 2006 at 14:50 UTC | |
by tye (Sage) on May 18, 2006 at 05:56 UTC | |
|