chtab - Add, delete or update rows in the database tables.
chtab [-h| --help]
chtab [-v| --version]
chtab [keycolname=keyvalue] [tablename.colname=newvalue]
chtab -d [keycolname=keyvalue] [tablename.colname=newvalue]
The chtab command adds or deletes or updates the attribute value in the input table.column for the input keyvalue.
-h Display usage message.
-v Command Version.
-d Delete option.
0 The command completed successfully.
1 An error has occurred.
1. To add a node=node1 to the nodelist table with groups=all:
chtab node=node1 nodelist.groups=all
2. To add a keyword (tftpdir) and value (/tftpboot) to the site table:
chtab key=tftpdir site.value=/tftpboot
3. To add node1 to the nodetype table with os=rhel5:
chtab node=node1 nodetype.os=rhel5
4. To change node1 in nodetype table setting os=sles:
chtab node=node1 nodetype.os=sles
5. To delete node1 from nodetype table:
chtab -d node=node1 nodetype
/opt/xcat/bin/chtab
This command is part of the xCAT software product.