2007-12-05 14:15:14 +00:00
|
|
|
=head1 NAME
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2007-12-05 14:15:14 +00:00
|
|
|
B<rmdef> - Use this command to remove xCAT data object definitions.
|
2008-05-28 21:07:33 +00:00
|
|
|
|
|
|
|
|
2007-12-05 14:15:14 +00:00
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
B<rmdef> [B<-h>|B<--help>] [B<-t> I<object-types>]
|
|
|
|
|
|
|
|
B<rmdef> [B<-V>|B<--verbose>] [B<-a>|B<--all>] [B<-t> I<object-types>] [B<-o> I<object-names>]
|
|
|
|
[B<-f>|B<--force>] [I<noderange>]
|
2007-12-05 14:15:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
This command is used to remove xCAT object definitions that are stored in the xCAT database.
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2007-12-05 14:15:14 +00:00
|
|
|
=head1 OPTIONS
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=over 10
|
|
|
|
|
|
|
|
=item B<-a|--all>
|
|
|
|
|
|
|
|
Clear the whole xCAT database. A backup of the xCAT definitions should be saved before using this option.
|
|
|
|
|
|
|
|
=item B<-f|--force>
|
|
|
|
|
|
|
|
Use this with the all option as an extra indicator that ALL definitions are to be removed.
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item B<-h|--help>
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
Display a usage message.
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item I<noderange>
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
A set of comma delimited node names and/or group names. See the "noderange" man page for details on supported formats.
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item B<-o> I<object-names>
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
A set of comma delimited object names.
|
|
|
|
|
|
|
|
=item B<-t> I<object-types>
|
|
|
|
|
|
|
|
A set of comma delimited object types.
|
|
|
|
|
|
|
|
=item B<-V|--verbose>
|
|
|
|
|
|
|
|
Verbose mode.
|
|
|
|
|
|
|
|
=back
|
2007-12-05 14:15:14 +00:00
|
|
|
|
|
|
|
=head1 RETURN VALUE
|
|
|
|
|
|
|
|
0 The command completed successfully.
|
|
|
|
|
|
|
|
1 An error has occurred.
|
|
|
|
|
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=over 3
|
|
|
|
|
|
|
|
=item 1. To completely clear the xCAT database.
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
rmdef -f -a
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item 2. To remove a range of node definitions.
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
rmdef -t node node1-node4
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item 3. To remove all node and group definitions.
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
rmdef -t node,group
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item 4. To remove all node definitions for the nodes contained in the group bpcnodes.
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
rmdef -t node -o bpcnodes
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=item 5. To remove the group called bpcnodes.
|
2007-12-05 14:15:14 +00:00
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
rmdef -t group -o bpcnodes
|
2007-12-05 14:15:14 +00:00
|
|
|
|
|
|
|
(This will also update the values of the "groups" attribute of the member nodes.)
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
=back
|
|
|
|
|
2007-12-05 14:15:14 +00:00
|
|
|
=head1 FILES
|
|
|
|
|
2008-02-05 12:58:48 +00:00
|
|
|
$XCATROOT/bin/rmdef
|
|
|
|
|
|
|
|
(The XCATROOT environment variable is set when xCAT is installed. The
|
|
|
|
default value is "/opt/xcat".)
|
2008-05-28 21:07:33 +00:00
|
|
|
|
2007-12-05 14:15:14 +00:00
|
|
|
|
|
|
|
=head1 NOTES
|
|
|
|
|
|
|
|
This command is part of the xCAT software product.
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2008-05-28 21:07:33 +00:00
|
|
|
See the mkdef(1), chdef(1), lsdef(1), and xcatstanzafile(5) commands.
|