tabdump - display an xCAT database table in CSV format.
tabdump
tabdump [-d] [table]
tabdump [table]
tabdump [-f filename] [table]
tabdump [-n # of records] [auditlog | eventlog]
tabdump [-w attr==val] [-w attr=~val] ...] [table]
tabdump [-w attr==val] [-w attr=~val] ...] [-f filename] [table]
tabdump [-v | --version]
tabdump [-? | -h | --help]
The tabdump command displays the header and all the rows of the specified table in CSV (comma separated values) format. Only one table can be specified. If no table is specified, the list of existing tables will be displayed.
Display usage message.
Show descriptions of the tables, instead of the contents of the tables. If a table name is also specified, descriptions of the columns (attributes) of the table will be displayed. Otherwise, a summary of each table will be displayed.
Shows the most recent number of entries as supplied on the -n flag from the auditlog or eventlog table.
File name or path to file in which to dump the table. Without this the table is dumped to stdout. Using the -f flag allows the table to be dumped one record at a time. If tables are very large, dumping to stdout can cause problems such as running out of memory.
Use one or multiple -w flags to specify the selection string that can be used to select particular rows of the table. See examples.
Operator descriptions:
== Select nodes where the attribute value is exactly this value.
!= Select nodes where the attribute value is not this specific value.
> Select nodes where the attribute value is greater than this specific value.
>= Select nodes where the attribute value is greater than or equal to this specific value.
< Select nodes where the attribute value is less than this specific value.
<= Select nodes where the attribute value is less than or equal to this specific value.
=~ Select nodes where the attribute value matches the SQL LIKE value.
!~ Select nodes where the attribute value matches the SQL NOT LIKE value.
tabdump site
tabdump -w 'groups==compute' nodelist
tabdump -w 'groups=~comput%' -w 'status==booted' nodelist
tabdump -w 'audittime==2011-04-18 11:30:00' auditlog
tabdump -w 'audittime>2011-04-18 11:30:00' auditlog
tabdump -n 10 auditlog
tabdump
dumpxCATdb -p /tmp/xcatbak
See the dumpxCATdb man page for details.
tabdump -d
tabdump -d nodehm
/opt/xcat/sbin/tabdump