From 9ed91d3a090abfe622f60b05f38f8f05452528e1 Mon Sep 17 00:00:00 2001 From: linggao Date: Thu, 1 Aug 2013 12:18:16 -0400 Subject: [PATCH] document tabdump -n --- xCAT-client/pods/man8/tabdump.8.pod | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/xCAT-client/pods/man8/tabdump.8.pod b/xCAT-client/pods/man8/tabdump.8.pod index bcac4eed1..63b39e26f 100644 --- a/xCAT-client/pods/man8/tabdump.8.pod +++ b/xCAT-client/pods/man8/tabdump.8.pod @@ -10,6 +10,8 @@ B [I] B [I<-f> I] [I
] +B [I<-n> I<# of records>] [I] + B [I<-w> I==I] [B<-w> I=~I] ...] [I
] B [I<-w> I==I] [B<-w> I=~I] ...] [I<-f> I] [I
] @@ -38,6 +40,15 @@ 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. +=item B<-n> + +Shows the most recent number of entries as supplied on the -n flag from the auditlog or eventlog table. + +=item B<-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. + =item B<-w> I<'attr==val'> B<-w> I<'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. @@ -54,11 +65,6 @@ Operator descriptions: !~ Select nodes where the attribute value matches the SQL NOT LIKE value. -=item B<-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. - =back =head1 RETURN VALUE @@ -111,6 +117,12 @@ tabdump -w 'audittime>2011-04-18 11:30:00' auditlog =item * +To display the 10 most recent entries in the auditlog: + +tabdump -n 10 auditlog + +=item * + To see what tables exist in the xCAT database: B