The supplier command line interface allows immediate integration of event generating applications into the Event Service.
The Event Management Service Command Line interface provides a command line interface that can be used by a system administrator to manage EMS.
Supplier Send
ems_supplier_send <type> [origin_netname=<service:addr>
[origin_desc=<descname>]] [pid=<pid>] [uid=<uid>] [gid=<gid>]
[severity=<sev>] [<attr_name>=<attr_value> [...]]
This command is called by event suppliers to create and send an event to the Event Service. An event of the specified type is created and the attributes are set according to the name=value pairs. Unspecified attributes are set to default values.
- type
specifies the name of the event type in the Event Type Schema database.
- origin_netname
specifies the originating node in the format <service>:<addr>, where service is one of1:
- other
- dns
- dce
- x500
- nis
- sna.
Default value for this parameter is the local node2.
- origin_desc
a string provided as a description of the originator; defaults to an empty string.
- pid
the process ID or the originating application; defaults to -1.
- uid, gid
user and group ID of the originating application; defaults to the uid and gid of the calling process.
- severity
severity of the event; one of3:
- info
- emergency
- alert
- critical
- warning
- notice
- debug.
- attr_name
specifies the name of the attribute that is set
- attr_value
value that is assigned to the attribute attr_name. The value is converted to the respective data type that is defined for attr_name in the Event Type Schema of event type type.
The management objects and command line syntax are defined in the remainder
of this Chapter.
Event Service Object
ems catalog
ems show [-host hostname]
ems modify [-host hostname]
[-add attr_name:attr_value -change attr_name:attr_value |
-delete attr_name]
This command is used to manage hosts running the EMS Event Service. The ems object represents an Event Service on a host.
- catalog
returns all hosts in the current domain providing Event Services (for example, all DCE hosts running the event service daemon)
- show
returns all the Event Service attributes for the Event Service on the given host.
- modify
allow for the modification of the attributes of an Event Service on a given host. Attributes can be added, deleted, or their values can be changed.
- -host hostname
specifies the name of the host running the Event service. If this parameter is not present, then the local host is assumed.
- -add attr_name:attr_value
add the specified attribute to the Event Service attribute list. attr_name specifies the name of the attribute that is set. attr_value specifies the value that is assigned to the attribute attr_name.
- -change attr_name:attr_value
change the specified attribute in the Event Service attribute list. attr_name specifies the name of the attribute to change. attr_value specifies the new value that is assigned to the attribute attr_name.
- -delete attr_name
delete the specified attribute in the Event Service attribute list. attr_name specifies the name of the attribute to delete.
Consumer Object
emsconsumer catalog [-host hostname]
emsconsumer show <consumer_name> [-uuid consumer_uuid][-host hostname]
emsconsumer delete <consumer_name> [-uuid consumer_uuid][-host hostname]
emsconsumer modify <consumer_name> [-uuid consumer_uuid][-host hostname]
-add filter_name | -delete filter_name
This command is used to manage registered consumers in the EMS Consumer Database. The emsconsumer object represents an EMS consumer.
- catalog
returns a list registered consumers in the Consumer Database.
- show
shows the filter group for consumer consumer_name.
- delete
delete consumer consumer_name from the Consumer Database.
- modify
modify consumer consumer_name's filter group.
- -host hostname
specifies the name of the host running the Event Service. If this parameter is not present, then the local host is assumed.
- consumer_name
specifies the name of the consumer to perform the operation on.
- -uuid consumer_uuid
specifies the consumers unique identifier to uniquely identify consumer_name.
- -add filter_name
add filter_name to the specified consumers filter group.
- --delete filter_name
delete filter_name from consumer_name's filter group.
Supplier Object
emssupplier catalog [-host hostname]
emssupplier show <supplier_name> [-uuid supplier_uuid][-host hostname]
emssupplier delete <supplier_name> [-uuid supplier_uuid][-host hostname]
This command is used to manage registered suppliers in the EMS Supplier Database. The emssupplier object represents an EMS supplier.
- catalog
returns a list registered suppliers in the supplier Database.
- show
shows the filter group for supplier supplier_name.
- delete
delete supplier supplier_name from the supplier Database.
- modify
modify supplier supplier_name's filter group.
- -host hostname
specifies the name of the host running the Event Service. If this parameter is not present, then the local host is assumed.
- supplier_name
specifies the name of the supplier to perform the operation on.
- -uuid supplier_uuid
specifies the suppliers unique identifier to uniquely identify supplier_name.
Filter Object
emsfilter catalog [-host hostname]
emsfilter show <filter_name> [-host hostname]
emsfilter delete <filter_name>[-host hostname]
emsfilter modify <filter_name> [-host hostname] [-append filter_exp]
This command is used to manage filters in the EMS Filter Database. The emsfilter object represents an EMS filter.
- catalog
returns a list of filters in the Filter Database.
- show
shows the contents of the event filter filter_name.
- delete
delete the event filter filter_name from the Event Filter Database.
- modify
modify the event filter filter_name.
- -host hostname
specifies the name of the host running the Event Service. If this parameter is not present, then the local host is assumed.
- filter_name
specifies the name of the filter to perform the operation on.
- -append filter_exp
append filter_exp to filter_name's filter expression list. This parameter is required for the modify operation.
Event Type Object
emsevent-type catalog [-host hostname]
emsevent-type show <event_type_name> [-uuid event_type_uuid]
[-host hostname]
emsevent-type add <event_type_name> [-uuid event_type_uuid]
[-host hostname] [[-attr attr_name:attr_fmt]..].
emsevent-type delete <event_type_name>[-uuid event_type_uuid]
[-host hostname]
This command is used to manage event types in the EMS Event Type Database. The emsevent-type object represents an EMS event type.
- catalog
returns a list of event types in the Event Type Database.
- show
shows the contents of the event type event_type_name .
- add
add the event type event_type_name to the Event Type Database.
- delete
delete the event type event_type_name from the Event Type Database.
- event_type_name
specifies the name of the event type to perform the operation on.
- -uuid event_type_uuid
specifies the event type that uniquely identifies event_type_name. This parameter required for the add operation.
- -host hostname
specifies the name of the host running the Event Service. If this parameter is not present, then the local host is assumed.
- -attr attr_name:attr_fmt
specifies the an attribute in the event type schema. attr_name specifies the attribute name, and attr_fmt specifies the attribute format name as specified in the Data Structures section. Attributes defined in schema correspond one for one with the attributes specified by the -attr parameters, in the order specified on this command. At least one -attr parameter is required for the add operation.
Event Log Object
emslog catalog [-host hostname]
emslog delete <event_uuid> [-host hostname]
This command is used to manage undelivered events in the EMS Event log. The emslog object represents an EMS event log.
- catalog
returns a list of undelivered events in the EMS Event log.
- delete
delete the event specified by event_uuid from the Event log.
- -host hostname
specifies the name of the host running the Event Service. If this parameter is not present, then the local host is assumed.
- event_uuid
specifies the unique identifier for the undelivered event to delete.
Contents | Next section | Index |