evweb_subscribe.1 (2011 09)
e
evweb_subscribe(1) evweb_subscribe(1)
-t [archive|email][
handler_properties
]
Specifies one or more subscription destinations. You can use the
-t switch to specify one of
the following 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
.
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.
The following are examples of the
-t
option:
•
-t archive
• -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"
-s [syslog]
You can use the -s switch to specify one of the following destinations:
syslog Indicates that events are stored in syslog. No additional property is required.
The location of syslog is /var/adm/syslog/syslog.log
.
The
-s switch is mutually exclusive with -o, -i, and -v
.
-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.
EXAMPLES
evweb subscribe -L
Lists all subscriptions that are created using EVWEB.
evweb subscribe -L -b external
Lists all subscriptions that are created using tools other than EVWEB.
evweb subscribe -E -n MySubs
Displays details of the subscription named MySubs.
evweb subscribe -C -n MySubs -i Evt002
Creates a subscription named MySubs. The subscription criteria is EventId=Evt002. Destina-
tion is not selected.
evweb subscribe -C -n MySubs -e 3 -t archive
Creates a subscription named MySubs The subscription criteria is severity=3 and
destination=archive.
evweb subscribe -C -n MySubs \
-t "email to:admins@hp.com:cc:test@hp.com"
Creates a subscription named MySubs. The destination is email. The e-mail addresses are
admins@hp.com (in the To field) and test@hp.com (in the CC field).
evweb subscribe -C -n MySubs \
-t "email to:admins@hp.com:cc:mgrs@hp.com" \
-t "email to:test@hp.com"
Creates a subscription named MySubs. The subscription criteria are not specified. However, multi-
ple e-mail destination IDs are specified.
4 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: September 2011