A.103 getEvents

Lists the events for an object.

Syntax

getEvents [ [ objType=value ] [ objId=value ] ] [ severity= { UNKNOWN | CRITICAL | WARNING | INFORMATIONAL } ] [ acknowledged= { Yes | No } ] [ startTime=value ] [ endTime=value ] [ amount=value ]

Description

This command lists the event for an object.

Options

The following table shows the available options for this command. To acknowledge an event, use the ackEvent command.

Option

Description

objType=value

The object type for which to list the events. The value of objType is an object such as FileServer, Repository, or Server. To get a list of all object types, use the showobjtypes. The value for objType is case insensitive.

This is an optional parameter and must be used with the objId option.

objId=value

The name or ID of the object.

This is an optional parameter and must be used with the objType option.

severity= { UNKNOWN | CRITICAL | WARNING | INFORMATIONAL }

The severity of the event to list.

This is an optional parameter.

acknowledged= { Yes | No }

Whether to include acknowledged events in the listing. The default is No, so all events that have been acknowledged are not displayed.

This is an optional parameter.

startTime=value

The start date and time from which to list events. The format to use is "MM-dd-yyyy HH:mm".

This is an optional parameter.

endTime=value

The end date and time from which to list events. The format to use is "MM-dd-yyyy HH:mm".

This is an optional parameter.

amount=value

The maximum number of events to list.

This is an optional parameter.

Examples

Example A.131 Listing all events

OVM> getEvents

Example A.132 Listing all critical error events

OVM> getEvents severity=CRITICAL

Example A.133 Listing Oracle VM Server events using all options

OVM> getEvents objType=Server objId=00:e0:81:4d:40:c6:00:e0:81:4d:40:c7:ff:ff:ff:ff \
  severity=UNKNOWN acknowledged=Yes startTime="05-20-2013 00:00" \
  endTime="05-21-2013 23:59" amount=100

Example A.134 Listing all unacknowledged critical error events for a virtual machine

OVM> getEvents objType=Vm objId=0004fb00001400003f45fc117b56c135 severity=CRITICAL \
  acknowledged=No

See Also