HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)

e
evweb_subscribe(1) evweb_subscribe(1)
Following are the examples of the
-M option:
evweb subscribe -M -n my_subs_2 -i 1235
evweb subscribe -M -n 2my_subs_2 -i 1235 -r
evweb subscribe -M -n my_subs_3 -t archive
evweb subscribe -M -h
-n
subscription_name
Specifies the name of the subscription. The subscription name must be unique. Following are
the examples of the -n option:
-n MySubs
-r
Specifies whether the destination should be modified. This is true only if the subscription cri-
teria are specified as a part of the subscription modification request. Use this option only with
the evweb subscribe -M option.
For evweb subscribe -M
, if you specify only the subscription criteria and not the destina-
tion, then:
If you specify the
-r option, remove the current destination and update the subscription cri-
teria as specified.
If you do not specify the -r option, retain the current destination and update the subscription
criteria as specified.
Following are the examples of the -r option:
evweb subscribe -M -n my_subs_2 -i 1235 -r
-t [archive|syslog|email][
handler_properties
]
Specifies one or more subscription destinations. You can use the
-t switch to specify one of the
following three destinations:
archive Indicates that events are stored in the Event Archive. No additional property is
required. The location of Event Archive is
/var/opt/sfmdb/pgsql
.
syslog Indicates that events are stored in syslog. No additional property is required.
The location of syslog is /var/adm/syslog/syslog.log
.
email Indicates that events are mailed to the specified e-mail address. You can specify
multiple e-mail addresses. Use a semi colon (;) to separate multiple e-mail
addresses in the to or cc field. Use a colon (:) to separate keywords in the
to
and cc field, or enclose the complete e-mail string in double quotes. The use of
to
keyword is mandatory. However, the use of the cc keyword is optional.
You can specify only one destination with the -t switch at a time. To specify multiple destina-
tions, use the -t switch multiple times. Following are the examples of the
-t option:
-t archive
-t syslog
-t email:to:abc@xyz.com
-t email:to:abc@xyz.com;efg@xyz.com
-t email:to:abc@xyz.com;efg@xyz.com:cc:hij@xyz.com
-t archive
-t "email to: abc@xyz.com cc:efg@xyz.com;hij@xyz.com"
-t "email to:nop@xyz.com" -t syslog
-v
[event_category]
Specifies an event category as a part of the subscription criteria. Use the evweb list -v
command to view the possible values for this option. The event category strings are case-
sensitive. Following are the examples of the -v option:
-v Processor
EXAMPLES
evweb subscribe -L
Lists all subscriptions that are created using EVWEB.
evweb subscribe -L -b external
HP-UX 11i Version 3: February 2007 3 Hewlett-Packard Company 325