Get-RubrikEvent
SYNOPSIS
Retrieve information for events that match the value specified in any of the following categories: type, status, or ID, and limit events by date.
SYNTAX
eventByID
EventSeries
DESCRIPTION
The Get-RubrikEvent cmdlet is used to pull a event data set from a Rubrik cluster. There are a vast number of arguments that can be supplied to narrow down the event query.
EXAMPLES
EXAMPLE 1
This will query for any 'Backup' events on the Rubrik VM object named 'vm-foo'
EXAMPLE 2
Queries the Rubrik Cluster for any vms named jbrasser-win and return the last ten events for each VM found
EXAMPLE 3
This will query the latest 100 Archive events on the currently logged in Rubrik cluster
EXAMPLE 4
This will feed any events against the Rubrik Host object 'SQLFoo.demo.com' via a piped query.
EXAMPLE 5
This will retrieve all of the events belonging to the specified EventSeriesId. Note - This will call Get-RubrikEventSeries
EXAMPLE 6
This will query the latest 10 Archive events on the currently logged in Rubrik cluster and include the relevant EventSeries.
EXAMPLE 7
This will retrieve all of the events while excluding events of the AggregateAhvVm & Mssql object types while displaying verbose messages. This will potentially display less than 25 objects, as filtering happens after receiving the objects from the endpoint
EXAMPLE 8
This will retrieve all of the events while excluding events of the Archive,Replication,Configuration,Backup Event types while displaying verbose messages. This will potentially display less than 25 objects, as filtering happens after receiving the objects from the endpoint
EXAMPLE 9
This will retrieve all Archive events while excluding events of the AggregateAhvVm & Mssql object types while displaying verbose messages. This will potentially display less than 25 objects, as filtering happens after receiving the objects from the endpoint
EXAMPLE 10
This will retrieve the last event for each of the SQL databases protected by Rubrik identifying the database by its object_id while displaying Verbose information
EXAMPLE 11
Will retrieve the oldest event on the Rubrik Cluster
EXAMPLE 12
Will retrieve the oldest backup event on the Rubrik Cluster
EXAMPLE 13
Will retrieve the first 50 Events which have event_status failed and event_series_status Success
PARAMETERS
-Limit
Maximum number of events retrieved, default is to return 50 objects
-AfterId
Earliest event retrieved
-EventSeriesId
Filter by Event Series ID
-Status
Filter by Event status. Enter any of the following values: 'Failure', 'Warning', 'Running', 'Success', 'Canceled', 'Canceling'.
-EventSeriesStatus
Filter by Status. Enter any of the following values: 'Success', 'Failure', 'Scheduled', 'Active', 'Canceling', 'Canceled', 'SuccessWithWarnings'.
-EventType
Filter by Event Type.
-ExcludeEventType
Filter by excluding specific Event Types, multiple entries are allowed. Note that this filtering happens after receiving the results, this means that if a limit of 50 is specified 50 or less results will be returned
-id
Filter by a comma separated list of object IDs.
-ObjectName
Filter all the events according to the provided name using infix search for resources and exact search for usernames.
-BeforeDate
Filter all the events before a date.
-AfterDate
Filter all the events after a date.
-ObjectType
Filter all the events by object type. Enter any of the following values: 'VmwareVm', 'Mssql', 'LinuxFileset', 'WindowsFileset', 'WindowsHost', 'LinuxHost', 'StorageArrayVolumeGroup', 'VolumeGroup', 'NutanixVm', 'Oracle', 'AwsAccount', and 'Ec2Instance'. WindowsHost maps to both WindowsFileset and VolumeGroup, while LinuxHost maps to LinuxFileset and StorageArrayVolumeGroup.
-ExcludeObjectType
Filter by excluding specific Object Types, multiple entries are allowed. Note that this filtering happens after receiving the results, this means that if a limit of 50 is specified 50 or less results will be returned
-Descending
A Switch value that determines whether to display the results in descending or ascending order. Setting this to Descending:$false will return the oldest results instead of the most recent
-IncludeEventSeries
A Switch value that determines whether or not EventSeries events are included in the results
-Server
Rubrik server IP or FQDN
-api
API version
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
OUTPUTS
NOTES
Written by J.R. Phillips for community usage GitHub: JayAreP
RELATED LINKS
https://rubrik.gitbook.io/rubrik-sdk-for-powershell/command-documentation/reference/get-rubrikevent
Last updated