Previous Topic: Event CommandsNext Topic: dpmeventmanager get_events Command--Retrieve Events


dpmeventmanager create_event Command--Create an Event

The dpmeventmanager create event command creates an event.

This command has the following format:

dpmeventmanager create_event [-sc sc_url] [-status eventstatus] [-component eventcomponent] [-message eventmessage] [-source eventsource] [-target eventtarget] [-action eventaction] [-audit {0|1}][-locale iso629value]
-sc sc_url

(Optional) Defines the URL for the service controller host.

Example: https://hostname:port/...

hostname

Defines the fully qualified host where the service controller is installed.

Example: localhost.ca.com

port

Defines the listening port for the service controller server.

Example: 80

-status eventstatus

(Optional) Indicates the status of the event.

-component eventcomponent

(Optional) Defines the product component to which the event corresponds.

Example: Policy, Imaging, and so on.

-message eventmessagesubstring

(Optional) Defines the event message substring to match against.

-source eventsource

(Optional) Defines the computer that generates the event.

-target eventtarget

(Optional) Defines the target computer for which the event occurred.

-action eventaction

(Optional) Defines the category of the event.

-audit={0|1}

(Optional) Indicates whether an event is an auditing event. Use 1 (audit event) or 0 (not an audit event).

Default: 0

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

Example: Create an Event for a Server Discovery

This example creates an event for a server discovery for ServerXYZ.

dpmeventmanager create_event -status 1 -component ccm -message "1 New Managed System Added - xyz" -source xyz -action "Inventory Event"