Get HPOVServiceAlert - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Get-HPOVServiceAlert

Generate report of HPE OneView Remote Support service events.

SYNTAX

Get-HPOVServiceAlert[ [-InputObject] <Object>][ [-State] <String>][ [-Count] <int>][ [-TimeSpan] <TimeSpan>][ [-Start] <DateTime>][ [-End] <DateTime>][ [-ApplianceConnection] <Array>] [<CommonParameters>]

Detailed Description

HPE OneView automatically checks if your hardware has a valid entitlement to Hewlett Packard Enterprise support. A valid entitlement is a Hewlett Packard Enterprise warranty or an active contract. If a valid entitlement to support is found, HPE OneView Remote Support opens a support case for a hardware failure. This Cmdlet allows administrators to display and/or export service events logged by the HPE OneView appliance.

Parameters

-ApplianceConnection <Array>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? False
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Count <int>

Specify the number of service alerts to return.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-End <DateTime>

DateTime object of the end date and time accompanied with the -Start parameter. If omitted, the current time of the PC is used.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

Use to filter for the supported hardware resource object. Enclosures, Server Hardware and Server Profile objects are supported. If an Enclosure resource is provided, only the Enclousre service events are queried. Associated Server Hardare within the enclosure is not. If providing a Server Profile object, it must be assigned to a supported hardware platform. If the Server Profile has moved between hardware resources, only the currently assigned server hardware resource object will be used to query for service events.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-Start <DateTime>

DateTime object of the start date and time to being query.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-State <String>

Specify the state of the Service Alert. The state is not correlated to the associated Alert.

* Closed - The state of Service event when the service call is closed.
* Error - The Service request has some error None This is a default state.
* Open - The state of Service event when the service call is open.
* Pending - The state of Service event when the service call is pending.
* Received - The state of Service event when the service call is received.
* Submitted - The state of Service event when the service call is submitted.
Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-TimeSpan <TimeSpan>

Specify a TimeSpan object in number of days. Cannot be combined with -Start and -End parameters.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

HPOneView.ServerHardware

A Server Hardware resource object from Get-HPOVServer.

HPOneView.ServerProfile

A Server Profile resource object from Get-HPOVServerProfile. If the Server Profile is not associated with a server hardware resource, an excpetion is thrown. If the Server Profile has moved from one server hardware resource to another, only the currently assigned server hardware resource will be queried.

HPOneView.Enclosure

An Enclosure resource object from Get-HPOVEnclosure.

Return Values

HPOneView.Appliance.ServiceAlert

The Service Alert object that contains the CaseID, associated resource name, URI and serial number, and description of the service event.

Examples

 -------------------------- EXAMPLE 1 --------------------------

Get-HPOVServiceAlert

Get all Service Alerts from the connected appliance.

 -------------------------- EXAMPLE 2 --------------------------

Get-HPOVServiceAlert -Count 10

Get the first 10 Service Alerts from the connected appliance.

 -------------------------- EXAMPLE 3 --------------------------

$TimeSpan = New-TimeSpan -Days 30 Get-HPOVServiceAlert -Count 10 -TimeSpan $TimeSpan

Get the first 10 Service Alerts within the last 30 days from the connected appliance.

 -------------------------- EXAMPLE 4 --------------------------

Get-HPOVServiceAlert -Start ([DateTime]"2018-01-05") -End ([DateTime]"2018-01-30")

Get the Service Alerts within the specified date range from the connected appliance.

 -------------------------- EXAMPLE 5 --------------------------

Get-HPOVServer -Name "Encl1, Bay 1" -ErrorAction Stop | Get-HPOVServiceAlert -Start ([DateTime]"2018-01-05") -End ([DateTime]"2018-01-30")

Get the Service Alerts within the specified date range for the specified server hardware resource from the connected appliance.

Related Links


Top

HPE OneView 4.00 Library

Get-HPOVServiceAlert

Generate report of HPE OneView Remote Support service events.

SYNTAX

Get-HPOVServiceAlert[ [-InputObject] <Object>][ [-State] <string>][ [-Count] <int>][ [-TimeSpan] <TimeSpan>][ [-Start] <DateTime>][ [-End] <DateTime>][ [-ApplianceConnection] <Array>] [<CommonParameters>]

Detailed Description

HPE OneView automatically checks if your hardware has a valid entitlement to Hewlett Packard Enterprise support. A valid entitlement is a Hewlett Packard Enterprise warranty or an active contract. If a valid entitlement to support is found, HPE OneView Remote Support opens a support case for a hardware failure. This Cmdlet allows administrators to display and/or export service events logged by the HPE OneView appliance.

Parameters

-ApplianceConnection <Array>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? False
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Count <int>

Specify the number of service alerts to return.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-End <DateTime>

DateTime object of the end date and time accompanied with the -Start parameter. If omitted, the current time of the PC is used.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

Use to filter for the supported hardware resource object. Enclosures, Server Hardware and Server Profile objects are supported. If an Enclosure resource is provided, only the Enclousre service events are queried. Associated Server Hardare within the enclosure is not. If providing a Server Profile object, it must be assigned to a supported hardware platform. If the Server Profile has moved between hardware resources, only the currently assigned server hardware resource object will be used to query for service events.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-Start <DateTime>

DateTime object of the start date and time to being query.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-State <string>

Specify the state of the Service Alert. The state is not correlated to the associated Alert.

* Closed - The state of Service event when the service call is closed.
* Error - The Service request has some error None This is a default state.
* Open - The state of Service event when the service call is open.
* Pending - The state of Service event when the service call is pending.
* Received - The state of Service event when the service call is received.
* Submitted - The state of Service event when the service call is submitted.
Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-TimeSpan <TimeSpan>

Specify a TimeSpan object in number of days. Cannot be combined with -Start and -End parameters.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

HPOneView.ServerHardware

A Server Hardware resource object from Get-HPOVServer.

HPOneView.ServerProfile

A Server Profile resource object from Get-HPOVServerProfile. If the Server Profile is not associated with a server hardware resource, an excpetion is thrown. If the Server Profile has moved from one server hardware resource to another, only the currently assigned server hardware resource will be queried.

HPOneView.Enclosure

An Enclosure resource object from Get-HPOVEnclosure.

Return Values

HPOneView.Appliance.ServiceAlert

The Service Alert object that contains the CaseID, associated resource name, URI and serial number, and description of the service event.

Examples

 -------------------------- EXAMPLE 1 --------------------------

Get-HPOVServiceAlert

Get all Service Alerts from the connected appliance.

 -------------------------- EXAMPLE 2 --------------------------

Get-HPOVServiceAlert -Count 10

Get the first 10 Service Alerts from the connected appliance.

 -------------------------- EXAMPLE 3 --------------------------

$TimeSpan = New-TimeSpan -Days 30 Get-HPOVServiceAlert -Count 10 -TimeSpan $TimeSpan

Get the first 10 Service Alerts within the last 30 days from the connected appliance.

 -------------------------- EXAMPLE 4 --------------------------

Get-HPOVServiceAlert -Start ([DateTime]"2018-01-05") -End ([DateTime]"2018-01-30")

Get the Service Alerts within the specified date range from the connected appliance.

 -------------------------- EXAMPLE 5 --------------------------

Get-HPOVServer -Name "Encl1, Bay 1" -ErrorAction Stop | Get-HPOVServiceAlert -Start ([DateTime]"2018-01-05") -End ([DateTime]"2018-01-30")

Get the Service Alerts within the specified date range for the specified server hardware resource from the connected appliance.

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️