update for monshow enhancement support rmcmon eventlog
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9167 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c08633fdca
commit
ff25280c22
@ -10,7 +10,7 @@ I<monshow [-h| --help]>
|
||||
|
||||
I<monshow [-v| --version]>
|
||||
|
||||
I<monshow name [noderange] [-s] [-t time] [-a attributes] [-o pe]>
|
||||
I<monshow name [noderange] [-s] [-t time] [-a attributes] [-w attr<operator>val [-w attr<operator>val] ... ][-o {p|e}]>
|
||||
|
||||
|
||||
|
||||
@ -38,7 +38,20 @@ B<-t> specifies a range of time for the data, The default is last 60 minutes. Fo
|
||||
|
||||
B<-a> specifies a comma-separated list of attributes or metrics names. The default is all.
|
||||
|
||||
B<-o> specifies montype, it can be p, e or pe. p means performance, e means events, not used now.
|
||||
B<-w> specify one or multiple selection string that can be used to select events. The operators ==, !=, =,!,>,<,>=,<= are available. Wildcards % and _ are supported in the pattern string. % allows you to match any string of any length(including zero length) and _ allows you to match on a single character. The valid attributes are eventtype, monitor, monnode, application, component, id, serverity, message, rawdata, comments. Valid severity are: Informational, Warning, Critical.
|
||||
|
||||
Operator descriptions:
|
||||
== Select event where the attribute value is exactly this value.
|
||||
!= Select event where the attribute value is not this specific value.
|
||||
=~ Select event where the attribute value matches this pattern string. Not work with severity.
|
||||
!~ Select event where the attribute value does not match this pattern string. Not work with severity.
|
||||
> Select event where the severity is higher than this value. Only work with severity.
|
||||
< Select event where the severity is lower than this value. Only work with severity.
|
||||
>= Select event where the severity is higher than this value(include). Only work with severity.
|
||||
<= Select event where the severity is lower than this value(include). Only work with severity.
|
||||
Note: if the "val" or "operator" fields includes spaces or any other characters that will be parsed by shell, the "attr<operator>val" needs to be quoted. If the operator is "!~", the "attr<operator>val" needs to be quoted using single quote.
|
||||
|
||||
B<-o> specifies montype, it can be p or e. p means performance, e means events.
|
||||
|
||||
|
||||
=head1 RETURN VALUE
|
||||
@ -61,6 +74,10 @@ B<-o> specifies montype, it can be p, e or pe. p means performance, e means even
|
||||
|
||||
monshow rmcmon servicenode1 -s
|
||||
|
||||
4. To show RMC event with severity Critical, enter:
|
||||
|
||||
monshow rmcmon -w severity==Critical
|
||||
|
||||
|
||||
=head1 FILES
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user