Compartir a través de


MSFT_SMSwitch class

Represents a network switch.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[dynamic, provider("WMIStorage"), AMENDMENT]
class MSFT_SMSwitch
{
  String   ObjectId;
  String   ElementName;
  String   Name;
  string   NameFormat;
  String   OtherIdentifyingInfo[];
  String   IdentifyingDescriptions[];
  String   ManagementServer;
  uint16   OperationalStatus[];
  datetime ManufactureDate;
  string   Manufacturer;
  string   Model;
  string   SerialNumber;
  string   Tag;
  string   VersionString;
};

Members

The MSFT_SMSwitch class has these types of members:

Properties

The MSFT_SMSwitch class has these properties.

ElementName

Data type: String

Access type: Read-only

The name of the switch to display in user-interfaces. If this property is set to NULL, then a system supplied name is used.

IdentifyingDescriptions

Data type: String array

Access type: Read-only

An array that contains descriptions of the format used in the custom identifiers in OtherIdentifyingInfo. There must be a 1:1 mapping between this array and OtherIdentifyingInfo.

ManagementServer

Data type: String

Access type: Read-only

The name of the management server that manages the switch.

ManufactureDate

Data type: datetime

Access type: Read-only

The data and time when the switch was manufactured.

Manufacturer

Data type: string

Access type: Read-only

The name of the manufacturer of the switch.

Model

Data type: string

Access type: Read-only

The model name of the switch.

Name

Data type: String

Access type: Read-only

The system defined name of the switch.

NameFormat

Data type: string

Access type: Read-only

The format or protocol for assigning the Name property.

The possible values are.

("Other")

("IP")

("Dial")

("HID")

("NWA")

("HWA")

("X25")

("ISDN")

("IPX")

("DCC")

("ICD")

("E.164")

("SNA")

("OID/OSI")

("WWN")

("NAA")

ObjectId

Data type: String

Access type: Read-only

Qualifiers: Key

The ID of this class instance. This ID must be unique within the scope of the Windows Storage Management server that hosts the provider object.

OperationalStatus

Data type: uint16 array

Access type: Read-only

The current statuses of the element.

The possible values are.

Unknown (0)

Other (1)

OK (2)

Degraded (3)

Stressed (4)

Predictive Failure (5)

Error (6)

Non-Recoverable Error (7)

Starting (8)

Stopping (9)

Stopped (10)

In Service (11)

No Contact (12)

Lost Communication (13)

Aborted (14)

Dormant (15)

Supporting Entity in Error (16)

Completed (17)

Power Mode (18)

DMTF Reserved

19 32767

Vendor Reserved

32768 65535

OtherIdentifyingInfo

Data type: String array

Access type: Read-only

An array that contains custom identifiers for the switch. If this property is set, IdentifyingDescriptions must also be set.

SerialNumber

Data type: string

Access type: Read-only

The serial number of the switch.

Tag

Data type: string

Access type: Read-only

The tag ID of the switch.

VersionString

Data type: string

Access type: Read-only

The ID of the switch version.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

Windows Storage Management WMI Provider