From 1b4e291b5c916e19d7429403321dfc5d602ed370 Mon Sep 17 00:00:00 2001 From: ligc Date: Fri, 3 Jul 2009 08:36:28 +0000 Subject: [PATCH] selection string change *def manpages update git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3693 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/pods/man1/chdef.1.pod | 6 +++--- xCAT-client/pods/man1/lsdef.1.pod | 8 ++++---- xCAT-client/pods/man1/mkdef.1.pod | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/xCAT-client/pods/man1/chdef.1.pod b/xCAT-client/pods/man1/chdef.1.pod index e6d4308e8..402e117e0 100644 --- a/xCAT-client/pods/man1/chdef.1.pod +++ b/xCAT-client/pods/man1/chdef.1.pod @@ -8,7 +8,7 @@ B [B<-h>|B<--help>] [B<-t> I] B [B<-V>|B<--verbose>] [B<-t> I] [B<-o> I] [B<-d>|B<--dynamic>] [B<-p>|B<--plus>] [B<-m>|B<--minus>] [B<-z>|B<--stanza>] -[[B<-w> "I==I"] [B<-w> "I=~I"] ...] [I] [I=I [I=I]] +[[B<-w> I==I] [B<-w> I=~I] ...] [I] [I=I [I=I]] =head1 DESCRIPTION @@ -54,7 +54,7 @@ A set of comma delimited object types. Use the help option to get a list of val Verbose mode. -=item B<-w> I<"attr==val"> B<-w> I<"attr=~val"> ... +=item B<-w> I B<-w> I ... Use one or multiple -w flags to specify the selection string that can be used to select objects. The operators ==, !=, =~ and !~ are available. Use the help option to get a list of validattributes for each object type. @@ -124,7 +124,7 @@ To update a set of definitions based on information contained in the stanza file To update a dynamic node group definition to add the cons=hmc wherevals pair. - chdef -t group -o dyngrp -d -p -w "cons==hmc" + chdef -t group -o dyngrp -d -p -w cons==hmc =back diff --git a/xCAT-client/pods/man1/lsdef.1.pod b/xCAT-client/pods/man1/lsdef.1.pod index 79304c899..2c5c4de3b 100644 --- a/xCAT-client/pods/man1/lsdef.1.pod +++ b/xCAT-client/pods/man1/lsdef.1.pod @@ -8,7 +8,7 @@ B [B<-h>|B<--help>] [B<-t> I] B [B<-V>|B<--verbose>] [B<-l>|B<--long>] [B<-a>|B<--all>] [B<-t> I] [B<-o> I] [B<-z>|B<--stanza>] [B<-i> I] -[[B<-w> "I==I"] [B<-w> "I=~I"] ...] [I] +[[B<-w> I==I] [B<-w> I=~I] ...] [I] =head1 DESCRIPTION @@ -54,11 +54,11 @@ A set of comma delimited object types. Use the help option to get a list of vali Verbose mode. -=item B<-w> I<"attr==val"> B<-w> I<"attr=~val"> ... +=item B<-w> I B<-w> I ... Use one or multiple -w flags to specify the selection string that can be used to select objects. The operators ==, !=, =~ and !~ are available. Use the help option to get a list of validattributes for each object type. -Note: the operator !~ will be parsed by shell, if you want to use !~ in the selection string, use single quote instead. For example:-w 'mgt!~ipmi'. +Note: if the "val" 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. =item B<-z|--stanza> @@ -125,7 +125,7 @@ To list an osimage definition named "aix53J". To list all node definitions that have a status value of "booting". - lsdef -t node -w "status==booting" + lsdef -t node -w status==booting =item 9. diff --git a/xCAT-client/pods/man1/mkdef.1.pod b/xCAT-client/pods/man1/mkdef.1.pod index c542cdf81..c205453e4 100644 --- a/xCAT-client/pods/man1/mkdef.1.pod +++ b/xCAT-client/pods/man1/mkdef.1.pod @@ -8,7 +8,7 @@ B [B<-h>|B<--help>] [B<-t> I] B [B<-V>|B<--verbose>] [B<-t> I] [B<-o> I] [B<-z>|B<--stanza>] [B<-d>|B<--dynamic>] [B<-f>|B<--force>] -[[B<-w> "I==I"] [B<-w> "I=~I"] ...] [I] [I=I [I=I]] +[[B<-w> I==I] [B<-w> I=~I] ...] [I] [I=I [I=I]] =head1 DESCRIPTION @@ -52,11 +52,11 @@ A set of comma delimited object types. Use the help option to get a list of val Verbose mode. -=item B<-w> I<"attr==val"> B<-w> I<"attr=~val"> ... +=item B<-w> I B<-w> I ... Use one or multiple -w flags to specify the selection string that can be used to select objects. The operators ==, !=, =~ and !~ are available. For mkdef commmand, the -w flag only makes sense for creating dynamic node group. Use the help option to get a list of validattributes for each object type. -Note: the operator !~ will be parsed by shell, if you want to use !~ in the selection string, use single quote instead. For example:-w 'mgt!~ipmi'. +Note: if the "val" 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. =item B<-z|--stanza> @@ -124,7 +124,7 @@ To create node definitions for a set of node host names contained in the node ra To create a dynamic node group definition called HMCMgtNodes containing all the HMC managed nodes" - mkdef -t group -o HMCMgtNodes -d -w "mgt==hmc" -w "cons==hmc" + mkdef -t group -o HMCMgtNodes -d -w mgt==hmc -w cons==hmc =item 9.