Destroy Log Query - IBM Carrier Grade X3650 T User Manual

Hide thumbs Also See for Carrier Grade X3650 T:
Table of Contents

Advertisement

"severity > WARNING && severity < CRIT"
/* ">" and "<" not supported for severity attribute */
"gid == 12"
/* gid attribute not supported */
"recid >= 1000"
/* ">=" not supported for recid attribute */
By comparison, the following sample expressions shall yield valid limited queries:
"event_type = devunmnt && severity >= CRIT"
"uid == 12"
"recid = 1000"
"event_type=devadd && uid=\"root\""
Note: The implementation must support general queries, as defined in the query sections. However, it is
permissible for the implementation to place no limitations at all on "limited" queries, with the effect that
limited queries follow the same rules as general queries.
17.2.8.3
Returns
Upon successful completion, these functions shall return zero. Otherwise, an error number shall be
returned to indicate the error. If syscon_log_query_create() fails, the query object pointed to by query
shall remain unchanged. If syscon_log_query_get() fails, the values pointed to by query_string and
purpose shall remain unchanged.
17.2.8.4
Errors
If any of the following conditions occur, the syscon_log_query_create() function shall return the
corresponding error number:
[EINVAL]: The query argument is NULL.
[EINVAL]: The query_string argument is NULL, or points to an expression string that is empty or
contains one or more syntactic or semantic errors.
[EINVAL]: The purpose argument is invalid.
[ENOTSUP]: According to the purpose argument, the specified query must qualify as a limited
query, but it does not.
If any of the following conditions occur, the syscon_log_query_get() function shall return the
corresponding error number:
[EINVAL]: The query argument is NULL, or points to an invalid query object.
[EMSGSIZE]: The qsbuf argument is NULL, or the buffer length (as specified by the qslen
argument) is insufficient to hold the returned character string.
17.2.8.5
Cross-References
None.
17.2.9

Destroy Log Query

Function: syscon_log_query_destroy()
96
IBM® Carrier Grade Server X3650 T
Revision 3.0

Advertisement

Table of Contents
loading

Table of Contents