Contained Within
Find More Documentation
Featured Support Resources
| Download this book in PDF
NAME
- netmgt_save_threshold, netmgt_restore_threshold - save and restore event threshold
SYNOPSIS
-
bool_t
-
-
netmgt_save_threshold (name, threshold)
char * name,
Netmgt_threshold * threshold;
bool_t
netmgt_restore_threshold (threshold)
Netmgt_threshold * threshold;
DESCRIPTION
-
netmgt_save_threshold copies information about an event threshold into the buffer pointed to by 'threshold'.
-
netmgt_restore_threshold sets a threshold from the contents of the buffer pointed to by 'threshold'.
- typedef struct
- {
-
- char name [NETMGT_NAMESIZ] ;
- /* attribute name * /
-
- u_int type ;
- /* attribute type * /
-
- u_int relop ;
- /* relational operator * /
-
- u_int thresh_len ;
- /* threshold value length * /
-
- u_char thresh_val [NETMGT_VALUESIZ] ;
- /* threshold value buffer * /
-
- u_int prev_len ;
- /* previous attribute value length * /
-
- u_char prev_val [NETMGT_VALUESIZ];
- /* previous attribute value buffer * /
-
- u_int priority ;
- /* event priority * /
-
- }
- Netmgt_threshold ;
- The members of this structure are:
-
-
name
- Name of the attribute on which the threshold is set
-
-
type
- Attribute data type
-
-
relopi
- Threshold relational operator
-
thresh_len
- Threshold value length
-
thresh_val
- Threshold value buffer
-
prev_len
- Previous attribute value length
-
prev_val
- Previous attribute value
-
priority
- Event priority
RETURN VALUE
-
TRUE if successful, otherwise FALSE.
DIAGNOSTICS
- If false is returned, global variable netmgt_errno indicates the error. The caller can get the reason for the error with netmgt_fetch_error(3N).
FILES
-
netmgt_arglist.h, netmgt_msg.h, netmgt_request.h
SEE ALSO
-
netmgt_fetch_error(3N), netmgt_save_request(3N), netmgt_save_argument(3N)
NOTES
- Only agents may call this function.
|
|