Get-SilVMHost
Get-SilVMHost
Gets host data objects.
구문
Parameter Set: Default
Get-SilVMHost [-EndTime <DateTime> ] [-StartTime <DateTime> ] [-VMHostName <String[]> ] [ <CommonParameters>]
자세한 설명
The Get-SilVMHost cmdlet gets host data objects. If you specify no parameters, this cmdlet gets all host data from the most recent successful poll. If no poll of the Software Inventory Logging Aggregator previously succeeded, the cmdlet returns the host names and no other data.
매개 변수
-EndTime<DateTime>
Specifies the polling end date and time. This cmdlet gets host data based on the value that this parameter specifies.
별칭 |
none |
필수 여부 |
false |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-StartTime<DateTime>
Specifies the polling start date and time. This cmdlet gets host data based on the value that this parameter specifies.
별칭 |
none |
필수 여부 |
false |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-VMHostName<String[]>
Specifies an array of virtual machine host names for which to get data.
별칭 |
none |
필수 여부 |
false |
위치 |
named |
기본값 |
none |
파이프라인 입력 허용 여부 |
true (ByValue) |
와일드카드 문자 허용 여부 |
false |
<CommonParameters>
이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 TechNet의 about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216)
입력
입력 형식은 cmdlet으로 파이프할 수 있는 개체의 형식입니다.
출력
출력 형식은 cmdlet 실행 시 출력되는 개체의 형식입니다.
예
Example 1: Get hosts
This command gets data for Host01 and Host02 from the Software Inventory Logging Aggregator database.
PS C:\> Get-SilVMHost -VMHostName "Host01","Host02"
Example 2: Get hosts after a specified time
This command gets data for hosts from the database after the specified date and time.
PS C:\> Get-SilVMHost -StartTime "12/29/2014 11:00 AM"
Example 3: Get hosts before a specified time
This command gets data for hosts from the database before the specified date and time.
PS C:\> Get-SilVMHost -EndTime "12/29/2014 11:00 AM"
Example 4: Get hosts that match a wildcard
This command gets data for hosts that have names that match the wildcard string a*.
PS C:\> Get-SilVMHost -VMHostName "a*"