From ff25280c22f5496d228006ec9268d0ade3c058f7 Mon Sep 17 00:00:00 2001 From: ellen56 Date: Mon, 28 Mar 2011 03:26:17 +0000 Subject: [PATCH] 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 --- xCAT-client/pods/man1/monshow.1.pod | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/xCAT-client/pods/man1/monshow.1.pod b/xCAT-client/pods/man1/monshow.1.pod index 7f498b085..7ea0c7562 100755 --- a/xCAT-client/pods/man1/monshow.1.pod +++ b/xCAT-client/pods/man1/monshow.1.pod @@ -10,7 +10,7 @@ I I -I +Ival [-w attrval] ... ][-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 "attrval" needs to be quoted. If the operator is "!~", the "attrval" 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