emscli.1m (2012 03)
e
emscli(1M) emscli(1M)
NAME
emscli - Event Monitoring Service Command Line Interface
SYNOPSIS
emscli -a resource_instance [
-n 1 [-r condition value ][
-o notification_option]
|
-n 2 | -n 3 ][
-p interval -u unit_of_polling][
-t notification_mechanism]
[
-c "comment"]
emscli -m Req_ID [ -n 1 [
-r condition value ][-o notification_option]|
-n 2 | -n 3 ]
[
-p interval -u unit_of_polling][
-t notification_mechanism][
-c "comment"]
emscli -d Req_ID1[,Req_IDn]... | [
-c resource_class][
-f]
emscli -g Req_ID1[,Req_IDn]... [
-f filename ]
emscli -l all
emscli -v Req_ID1[,Req_IDn]... | [
-c resource_class]
emscli -r [-c resource_class]
emscli -h [-a|-d|-g
|-h|-l|-m|-r|-v]
DESCRIPTION
emscli is a command line utility that is used to configure and manage persistent monitoring requests
for Event Monitoring Service (EMS) monitors, such as, HA Monitors, Hardware Monitors and Kernel
Monitors. The emscli utility can be used to perform the following activities.
• Add Monitoring Requests
• Modify Existing Monitoring Requests
• Delete Monitoring Requests
• Generate Script for Currently Configured Requests
• List Monitoring Requests
• View Status of Monitoring Requests
• List Resource Instances Available for Monitoring
• Help to view the usage of various options of
emscli
Options
emscli supports the following options and arguments:
-a resource_instance
Add a new monitoring request and specify the resource instance for which a request
needs to be created. emscli also allows a user to specify a wildcard resource instance.
For example, /system/filesystem/availMb/*. The following parameters can be
used with the
-a option.
Note: If parameters are not provided, all default parameters will be used while adding a
monitoring request. If a duplicate request already exists,
emscli does not register the
new request.
-n Specify when the notification has to be sent.
1 Notify when a value exists, and specify a comparison value. This is the
default option. You define the conditions under which you wish to be notified
for a particular resource. Choose an operator (=, not equal, >, >=, <, <=) and
one of the possible values returned by the monitor. The content of the value
field varies depending upon the resource monitored.
2 Notify when a value changes. This sends notification every time a resource
value changes. Typically this is used for resources whose values change infre-
quently. Change here means any change. For example, you could receive
notification every time the number of mirrored copies of data changes,
whether it is from 2 to 1 or from 1 to 2.
3 Notify at each interval. This sends notification at each polling interval. It is
commonly used for reminders or for gathering data for system analysis. Use
HP-UX 11i Version 3: March 2012 − 1 − Hewlett-Packard Company 1