Get-SilVMHost
Get-SilVMHost
Gets host data objects.
Syntax
Parameter Set: Default
Get-SilVMHost [-EndTime <DateTime> ] [-StartTime <DateTime> ] [-VMHostName <String[]> ] [ <CommonParameters>]
Detailed Description
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.
Parameters
-EndTime<DateTime>
Specifies the polling end date and time. This cmdlet gets host data based on the value that this parameter specifies.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-StartTime<DateTime>
Specifies the polling start date and time. This cmdlet gets host data based on the value that this parameter specifies.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-VMHostName<String[]>
Specifies an array of virtual machine host names for which to get data.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
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*"