chtab.8¶
NAME¶
chtab - Add, delete or update rows in the database tables.
SYNOPSIS¶
chtab [-h | --help]
chtab [-v | --version]
chtab [keycolname=keyvalue] [tablename.colname=newvalue]
chtab [keycolname=keyvalue] [tablename.colname+=newvalue]
chtab -d [keycolname=keyvalue] [tablename.colname=newvalue]
DESCRIPTION¶
The chtab command adds, deletes or updates the attribute value in the specified table.column for the specified 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 coma separated list of the attribute, if it is not already there.
The chtab is designed to work without passing xcatd, so it’s out of control of policy mechanism.
RETURN VALUE¶
- The command completed successfully.
- An error has occurred.
EXAMPLES¶
- To add a node=node1 to the nodelist table with groups=all:
chtab node=node1 nodelist.groups=all
- To add a keyword (tftpdir) and value (/tftpboot) to the site table:
chtab key=tftpdir site.value=/tftpboot
- To add node1 to the nodetype table with os=rhel5:
chtab node=node1 nodetype.os=rhel5
- To change node1 in nodetype table setting os=sles:
chtab node=node1 nodetype.os=sles
- To change node1 by appending otherpkgs to the postbootscripts field in the postscripts table:
chtab node=node1 postscripts.postbootscripts+=otherpkgs
- To delete node1 from nodetype table:
chtab -d node=node1 nodetype
FILES¶
/opt/xcat/bin/chtab
SEE ALSO¶
tabdump(8)|tabdump.8, tabedit(8)|tabedit.8