From d5ef187fe186ebf8e731a890b7de87c0237bdd3c Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Mon, 8 Apr 2013 07:35:25 +0000 Subject: [PATCH] update manpage for mkdef|chdef that adding option \'-u\' for them to fill in osimage attributes git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15868 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/pods/man1/chdef.1.pod | 16 +++++++++++++++- xCAT-client/pods/man1/mkdef.1.pod | 13 +++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/xCAT-client/pods/man1/chdef.1.pod b/xCAT-client/pods/man1/chdef.1.pod index 65d35593d..9ce41d3fa 100644 --- a/xCAT-client/pods/man1/chdef.1.pod +++ b/xCAT-client/pods/man1/chdef.1.pod @@ -11,6 +11,7 @@ B [B<-t> I] [B<-o> I] [B<-n> I] [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<-u> B=|I|I> B= [I=I]] =head1 DESCRIPTION @@ -80,6 +81,12 @@ Note: the operator !~ will be parsed by shell, if you want to use !~ in the sele Indicates that the file being piped to the command is in stanza format. See the xcatstanzafile man page for details on using xCAT stanza files. +=item B<-u> + +This option only works for objtype B. + +Updating the osimage attribute automatically. If osvers or osarch is not specified, the corresponding value of the management node will be used. + =back =head1 RETURN VALUE @@ -160,12 +167,19 @@ To change the policy table for policy number 7.0 for admin1 chdef -t policy -o 7.0 name=admin1 rule=allow -=item 11. +=item 12. To change the node nic attributes chdef -t node -o cn1 nicips.eth0="1.1.1.1|1.2.1.1" nicnetworks.eth0="net1|net2" nictypes.eth0="Ethernet" + +=item 13. + +To update an osimage definition. + + chdef redhat6img -u provmethod=install + =back diff --git a/xCAT-client/pods/man1/mkdef.1.pod b/xCAT-client/pods/man1/mkdef.1.pod index 814ce99a3..d1f005e70 100644 --- a/xCAT-client/pods/man1/mkdef.1.pod +++ b/xCAT-client/pods/man1/mkdef.1.pod @@ -9,6 +9,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<-u> B=|I|I> B= [I=I]] =head1 DESCRIPTION @@ -70,6 +71,12 @@ Note: if the "val" fields includes spaces or any other characters that will be p Indicates that the file being piped to the command is in stanza format. See the xcatstanzafile man page for details on using xCAT stanza files. +=item B<-u> + +This option only works for objtype B. + +Fill in the osimage attribute automatically when define osimage. The I and I must be specified. If osvers or osarch is not specified, the corresponding value of the management node will be used. + =back @@ -152,6 +159,12 @@ To create a node definition with nic attributes mkdef -t node cn1 groups=all nicips.eth0="1.1.1.1|1.2.1.1" nicnetworks.eth0="net1|net2" nictypes.eth0="Ethernet" +=item 12. + +To create an osimage definition and fill in attributes automatically. + + mkdef redhat6img -u profile=compute provmethod=statelite + =back