=head1 NAME

B<chtab> - Add, delete or update rows in the database tables.

=head1 SYNOPSIS

B<chtab> [B<-h> | B<--help>]

B<chtab> [B<-v> | B<--version>]

B<chtab> I<keycolname=keyvalue>[,I<keycolname=keyvalue>,...] I<tablename.colname=newvalue> [I<tablename.colname=newvalue> ...]

B<chtab> I<keycolname=keyvalue>[,I<keycolname=keyvalue>,...] I<tablename.colname+=newvalue> [I<tablename.colname+=newvalue> ...]

B<chtab -d> I<keycolname=keyvalue>[,I<keycolname=keyvalue>,...] I<tablename> [I<tabname> ...]

=head1 DESCRIPTION

The B<chtab> command adds, deletes or updates the attribute values in the specified table.column for the specified I<keyvalue>.  Normally, the given value will completely replace the current attribute value.  But if "+=" is used instead of "=", the specified value will be appended to the comma separated list of attributes, if it is not already there.

The B<chtab> does not pass through xcatd, so it is not controlled by the policy mechanism. 

=head1 OPTIONS


B<-h>          Display usage message.

B<-v>          Command Version.

B<-d>          Delete option.



=head1 RETURN VALUE

=over 2

=item 0. 
The command completed successfully.

=item 1. 
An error has occurred.

=back

=head1 EXAMPLES

=over 2

=item 1. 
To add a node=node1 to the nodelist table with groups=all:

 chtab  node=node1 nodelist.groups=all

=item 2.
To add a keyword (tftpdir) and value (/tftpboot) to the site table:

 chtab  key=tftpdir site.value=/tftpboot


=item 3. 
To add node1 to the  nodetype table with os=rhel5:

 chtab  node=node1 nodetype.os=rhel5


=item 4. 
To change node1 in nodetype table setting os=sles:

 chtab  node=node1 nodetype.os=sles

=item 5.
To change node1 by appending otherpkgs to the postbootscripts field in the postscripts table:

 chtab node=node1 postscripts.postbootscripts+=otherpkgs

=item 6.
To delete node1 from nodetype table:

 chtab -d node=node1 nodetype

=back

=head1 FILES

/opt/xcat/bin/chtab


=head1 SEE ALSO

L<tabdump(8)|tabdump.8>, L<tabedit(8)|tabedit.8>
