tabrestore - replaces the contents of an xCAT database table with the contents in a csv file.
tabrestore table.csv
tabrestore [-? | -h | --help]
The tabrestore command reads the contents of the specified file and puts its data in the corresponding table in the xCAT database. Any existing rows in that table are replaced. The file must be in csv format. It could be created by tabdump. Only one table can be specified.
This command can be used to copy the example table entries in /opt/xcat/share/xcat/templates/e1350 into the xCAT database.
Display usage message.
The command completed successfully.
An error has occurred.
To put rows into the mp table:
B<tabrestore> I<mp.csv>
The file mp.csv could contain something like:
#node,mpa,id,comments,disable "blade","|\D+(\d+)|amm(($1-1)/14+1)|","|\D+(\d+)|(($1-1)%14+1)|",,
To restore database tables that we dumped with dumpxCATdb:
restorexCATdb -p <restore directory:
/opt/xcat/sbin/tabrestore
tabdump(1), tabedit(1),dumpxCATdb(1)