参考指南 › AutoShell › AutoShell 可加载模块的命令参考 › CA Microsoft Hyper-V AutoShell 命令 › dpmhv-ShowHosts (Funclet) 命令-显示所有 Hyper-V 服务器
dpmhv-ShowHosts (Funclet) 命令-显示所有 Hyper-V 服务器
dpmhv-ShowHosts 命令用于显示所有 Hyper-V 服务器。
此命令具有以下格式:
dpmhv-showHosts
[-detail]
[-retval]
[-silent]
- -detail
-
(可选)显示虚拟网络(主机网络)的详细信息。
- -retval
-
返回一个值以进一步处理。
- -silent
-
指定不输出到屏幕。
- 返回值
-
dpmhv-ShowHosts 命令返回一组表示 Hyper-V 服务器的对象。 以常规模式返回属性“Name”。
以详细模式返回下列属性:
- AssignedNumaNodeList
- CIMV2_AdminPasswordStatus
- CIMV2_AutomaticManagedPagefile
- CIMV2_AutomaticResetBootOption
- CIMV2_AutomaticResetCapability
- CIMV2_BootOptionOnLimit
- CIMV2_BootOptionOnWatchDog
- CIMV2_BootROMSupported
- CIMV2_BootupState
- CIMV2_Caption
- CIMV2_ChassisBootupState
- CIMV2_CreationClassName
- CIMV2_CurrentTimeZone
- CIMV2_DNSHostName
- CIMV2_DaylightInEffect
- CIMV2_Description
- CIMV2_Domain
- CIMV2_DomainRole
- CIMV2_EnableDaylightSavingsTime
- CIMV2_FrontPanelResetStatus
- CIMV2_InfraredSupported
- CIMV2_InitialLoadInfo
- CIMV2_InstallDate
- CIMV2_KeyboardPasswordStatus
- CIMV2_LastLoadInfo
- CIMV2_Manufacturer
- CIMV2_Model
- CIMV2_Name
- CIMV2_NameFormat
- CIMV2_NetworkServerModeEnabled
- CIMV2_NumberOfLogicalProcessors
- CIMV2_NumberOfProcessors
- CIMV2_OEMLogoBitmap
- CIMV2_OEMStringArray
- CIMV2_PCSystemType
- CIMV2_PartOfDomain
- CIMV2_PauseAfterReset
- CIMV2_PowerManagementCapabilities
- CIMV2_PowerManagementSupported
- CIMV2_PowerOnPasswordStatus
- CIMV2_PowerState
- CIMV2_PowerSupplyState
- CIMV2_PrimaryOwnerContact
- CIMV2_PrimaryOwnerName
- CIMV2_ResetCapability
- CIMV2_ResetCount
- CIMV2_ResetLimit
- CIMV2_Roles
- CIMV2_Status
- CIMV2_SupportContactDescription
- CIMV2_SystemStartupDelay
- CIMV2_SystemStartupOptions
- CIMV2_SystemStartupSetting
- CIMV2_SystemType
- CIMV2_ThermalState
- CIMV2_TotalPhysicalMemory
- CIMV2_UserName
- CIMV2_WakeUpType
- CIMV2_Workgroup
- 标题
- ClusterName
- CreationClassName
- Dedicated
- 描述
- ElementName
- EnabledDefault
- EnabledState
- HealthCritical
- HealthOk
- HealthState
- HostCPUUtilisationPercent
- HostMemoryAvailableMB
- IdentifyingDescriptions
- InstallDate
- IsHyperVClusterNode
- NET_ArpAlwaysSourceRoute
- NET_ArpUseEtherSNAP
- NET_Caption
- NET_DHCPEnabled
- NET_DHCPLeaseExpires
- NET_DHCPLeaseObtained
- NET_DHCPServer
- NET_DNSDomain
- NET_DNSDomainSuffixSearchOrder
- NET_DNSEnabledForWINSResolution
- NET_DNSHostName
- NET_DNSServerSearchOrder
- NET_DatabasePath
- NET_DeadGWDetectEnabled
- NET_DefaultIPGateway
- NET_DefaultTOS
- NET_DefaultTTL
- NET_Description
- NET_DomainDNSRegistrationEnabled
- NET_ForwardBufferMemory
- NET_FullDNSRegistrationEnabled
- NET_GatewayCostMetric
- NET_IGMPLevel
- NET_IPAddress
- NET_IPConnectionMetric
- NET_IPEnabled
- NET_IPFilterSecurityEnabled
- NET_IPPortSecurityEnabled
- NET_IPSecPermitIPProtocols
- NET_IPSecPermitTCPPorts
- NET_IPSecPermitUDPPorts
- NET_IPSubnet
- NET_IPUseZeroBroadcast
- NET_IPXAddress
- NET_IPXEnabled
- NET_IPXFrameType
- NET_IPXMediaType
- NET_IPXNetworkNumber
- NET_IPXVirtualNetNumber
- NET_Index
- NET_InterfaceIndex
- NET_KeepAliveInterval
- NET_KeepAliveTime
- NET_MACAddress
- NET_MTU
- NET_NumForwardPackets
- NET_PMTUBHDetectEnabled
- NET_PMTUDiscoveryEnabled
- NET_ServiceName
- NET_SettingID
- NET_TcpMaxConnectRetransmissions
- NET_TcpMaxDataRetransmissions
- NET_TcpNumConnections
- NET_TcpUseRFC1122UrgentPointer
- NET_TcpWindowSize
- NET_TcpipNetbiosOptions
- NET_WINSEnableLMHostsLookup
- NET_WINSHostLookupFile
- NET_WINSPrimaryServer
- NET_WINSScopeID
- NET_WINSSecondaryServer
- 名称
- NameFormat
- OnTimeInMilliseconds
- OperationalStatus
- OtherDedicatedDescriptions
- OtherEnabledState
- OtherIdentifyingInfo
- 路径
- PowerManagementCapabilities
- PrimaryOwnerContact
- PrimaryOwnerName
- ProcessID
- RequestedState
- ResetCapability
- 角色
- 状态
- StatusDescriptions
- TimeOfLastConfigurationChange
- TimeOfLastStateChange
- VSMS_BiosLockString
- VSMS_Caption
- VSMS_DefaultExternalDataRoot
- VSMS_DefaultVirtualHardDiskPath
- VSMS_Description
- VSMS_ElementName
- VSMS_InstanceID
- VSMS_MaximumMacAddress
- VSMS_MinimumMacAddress
- VSMS_NumaSpanningEnabled
- VSMS_PrimaryOwnerContact
- VSMS_PrimaryOwnerName
- VSMS_ScopeOfResidence
示例:显示所有 Hyper-V 服务器
本示例返回 Hyper-V 服务器的列表。
dpmhv-showHosts
示例:显示所有 Hyper-V 服务器和主机上的 VM
本示例显示 Hyper-V 服务器列表和每个主机上的 VM。
a = dpmhv-showHosts -retval -silent
for each(h in a)
{
?
? "Host:", h.Name
dpmhv-showVMs -host (h.Name)
}
版权所有 © 2013 CA。
保留所有权利。
|
|