NAME

tabdump - display an xCAT database table in CSV format.

SYNOPSIS

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]

tabdump

DESCRIPTION

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.

OPTIONS

-?|-h|--help

Display usage message.

-d

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.

-n

Shows the most recent number of entries as supplied on the -n flag from the auditlog or eventlog table.

-f

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.

-w 'attr==val' -w 'attr=~val' ...

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.

RETURN VALUE

0

The command completed successfully.

1

An error has occurred.

EXAMPLES

FILES

/opt/xcat/sbin/tabdump

SEE ALSO

tabrestore(8), tabedit(8), dumpxCATdb(1)

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 78:

Expected text after =item, not a number