A.113 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. To acknowledge an event, use the ackEvent command.

Options

The following table shows the available options for this 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. The value returns events that match the given severity level as well as all events with a higher severity level. For example, specifying severity=WARNING returns all warning events and all critical events. The UNKNOWN option returns all events.

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:ss".

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:ss".

This is an optional parameter.

amount=value

The maximum number of events to list.

This is an optional parameter.

Examples

Example A.144 Listing all events

OVM> getEvents

Example A.145 Listing all critical error events

OVM> getEvents severity=CRITICAL

Example A.146 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:00" \
  endTime="05-21-2013 23:59:00" amount=100

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

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

See Also