Users Guide

sint32 ProcessorSpeed;
[SMS_Report(TRUE), read: ToInstance ToSubClass]
string BIOSVersion;
[SMS_Report(TRUE), read: ToInstance ToSubClass]
datetime BIOSDate;
[SMS_Report(TRUE), read: ToInstance ToSubClass]
string ServiceTag;
[SMS_Report(TRUE), read: ToInstance ToSubClass, write: ToInstance ToSubClass]
string AssetTag;
};
#pragma namespace ("\\\\.\\Root\\cimv2")
//*************************************************************
//*** Registers Framework Provider ***
//*************************************************************
instance of __Win32Provider as $Q
{
Name = "DellWMI";
ClsId = "{a29197b6-5c8d-4278-ae20-e5c14aed1280}";
};
instance of __InstanceProviderRegistration
{
Provider = $Q;
SupportsGet = TRUE;
SupportsPut = TRUE;
SupportsDelete = TRUE;
SupportsEnumeration = TRUE;
QuerySupportLevels = {"WQL:UnarySelect"};
};
instance of __MethodProviderRegistration
{
Provider = $Q;
};
[Dynamic, Provider ("DellWMI")]
class Dell_System_Summary
{
[read, key] uint32 DellInstanceID;
[read, write] string AssetTag;
[read] datetime BIOSDate;
[read] sint32 ProcessorSpeed;
[read] string BiosVersion;
[read] string ProcessorType;
[read] string ServiceTag;
[read] string SystemDescription;
[read] string SystemVendor;
};
WMI のスクリプト
WMI はスクリプトインタフェースを提供していますローカルまたはリモートから WMI サービスへの接続、情報取得、メソッドの実行などのスクリプトをVBScript または JScript を使用して記述で
きますOMCI WMI を介して実装されているためOMCI タスクのほとんどはスクリプト記述が可能ですこのではVBScript のサンプルスクリプトを紹介します
のテキストファイルにサンプルスクリプトがまれていますスクリプトを実行するには、拡張子 .vbs けてスクリプトを保存しますコマンドプロンプトで、「cscript.exe //nologo <スクリプト
>と適切なパラメータを入力しますパラメータを指定しなければスクリプトの使用法が表示されます
l シャーシ侵入ステータスのクリア
l すべての警告のデスクトップメッセージを無効にする
l リモートシステムのシャットダウン
l リモートシステムの再起動
l リモート BIOS のアップデート
l 次回の再起動時PXE 起動を有効にする
l Wakeup on LAN の有効化
l サービスタグ、資タグBIOS リビジョンの取得
l BIOS パスワードの変更
目次に戻る
メモWMI サービスにリモートから接続するにはローカルシステムとリモートシステムの両方の管理者権限が必要です