MSiSCSI_BootConfiguration WMI 类
MSiSCSI_BootConfiguration WMI 类描述如何配置启动设备。
此类在 Config.mof 中定义如下。
class MSiSCSI_BootConfiguration {
[key] string InstanceName;
boolean Active;
[read, write, WmiDataId(1), Description("LUN on target of
boot device") : amended, DisplayName("Target LUN") :
amended]
uint64 LUN;
[read, write, WmiDataId(2), SECURITY_FLAG_QUALIFIERS]
ISCSI_SECURITY_FLAGS SecurityFlags;
[read, write, WmiDataId(3), description("Size in bytes of
Target Username") : amended]
uint32 UsernameSize;
[read, write, WmiDataId(4), description("Size in bytes of
Target Password") : amended]
uint32 PasswordSize;
[read, write, WmiDataId(5), description("If TRUE
dynamically discover boot device") : amended]
boolean DiscoverBootDevice;
[read, write, WmiDataId(6), MaxLen(MAX_ISCSI_NAME_LEN),
description("The InitiatorNode specifies the iScsi name
of the initiator node to use for the connection. If
empty, then the HBA can choose any initiator node") :
amended]
string InitiatorNode;
[read, write, WmiDataId(7), MaxLen(MAX_ISCSI_NAME_LEN),
description("TargetName specifies the iScsi target name
to which a session should be established.") : amended]
string TargetName;
[read, write, WmiDataId(8), description("Portal to use for
initial connection") : amended]
ISCSI_TargetPortal TargetPortal;
[read, write, WmiDataId(9), description("Login options") :
amended]
ISCSI_LoginOptions LoginOptions;
[read, write, WmiDataId(10), WmiSizeIs("UsernameSize"),
description("Authentication Username, for CHAP this
is the CHAP Name (CHAP_N) when authenticating the
target") : amended]
uint8 Username[];
[read, write, WmiDataId(11), WmiSizeIs("PasswordSize"),
description("Authentication Password, for CHAP this is
the shared secret to use when generating the response to
the target challenge") : amended]
uint8 Password[];
};
当 WMI 工具套件编译上述类定义时,它将生成 MSiSCSI_BootConfiguration 数据结构。