Users Guide

string BIOSVersion;
[SMS_Report(TRUE), read: ToInstance ToSubClass]
datetime BIOSDate;
[SMS_Report(TRUE), read: ToInstance ToSubClass, key]
string ServiceTag;
[SMS_Report(TRUE), read: ToInstance ToSubClass, write: ToInstance ToSubClass]
string AssetTag;
};
#pragma namespace ("\\\\.\\Root\\cimv2")
//*************************************************************
//*** 注册框架提供程序 ***
//*************************************************************
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 提供了脚本界面。您可以使用 VBScript Jscript 编写脚本,在本地或远程连接至 WMI 服务、检索信息或执行方法。由于 OMCI 通过 WMI 实施,大多数 OMCI 任务可以用脚本
编写。本节仅提供 VBScript 脚本样例作为示例。
以下文本文件包含了样例脚本。要执行任何脚本,请以 .vbs 为扩展名保存脚本。在命令提示符中,键入 cscript.exe //nologo <
本名
> 和适当的参数。如果您未指定任何参数,系
统将显示脚本的用法。
l 清除机箱侵入状态
l 禁用所有警报的桌面信息
l 关闭远程系统
l 重新启动远程系统
l 远程 BIOS 更新
l 在下次重新启动时启用 PXE 启动
l 启用 LAN 唤醒
l 检索服务标签、资产标签和 BIOS 版本
l 更改 BIOS 密码
目录
注: 要远程连接 WMI 服务,用户必须同时拥有本地系统和远程系统的管理权限。
注意: 示例脚本只是一个示例,未进行测试,Dell 也不作任何担保;Dell 对相关的责任概不负责。Dell 对该脚本不提供任何技术支持。有关 WMI 脚本的详情,请参阅适用的
Microsoft 说明文件。