[2808] | 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. |
---|
[2778] | 2 | .TH DUMPYKOTA "1" "mars 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" |
---|
[2086] | 3 | .SH NOM |
---|
[2808] | 4 | dumpykota \- page de manuel de dumpykota 1.24beta_unofficial |
---|
[2086] | 5 | .SH DESCRIPTION |
---|
[2808] | 6 | dumpykota v1.24beta_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com |
---|
[2086] | 7 | .PP |
---|
| 8 | Dumps PyKota database's content. |
---|
| 9 | .PP |
---|
| 10 | command line usage : |
---|
| 11 | .IP |
---|
| 12 | dumpykota [options] [filterexpr] |
---|
| 13 | .PP |
---|
| 14 | options : |
---|
| 15 | .TP |
---|
| 16 | \fB\-v\fR | \fB\-\-version\fR |
---|
| 17 | Prints dumpykota's version number then exits. |
---|
| 18 | .TP |
---|
| 19 | \fB\-h\fR | \fB\-\-help\fR |
---|
| 20 | Prints this message then exits. |
---|
| 21 | .TP |
---|
| 22 | \fB\-d\fR | \fB\-\-data\fR type |
---|
| 23 | Dumps 'type' datas. Allowed types are : |
---|
| 24 | .IP |
---|
| 25 | \- history : dumps the jobs history. |
---|
| 26 | \- users : dumps users. |
---|
| 27 | \- groups : dumps user groups. |
---|
| 28 | \- printers : dump printers. |
---|
| 29 | \- upquotas : dump user quotas. |
---|
| 30 | \- gpquotas : dump user groups quotas. |
---|
| 31 | \- payments : dumps user payments. |
---|
| 32 | \- pmembers : dumps printer groups members. |
---|
| 33 | \- umembers : dumps user groups members. |
---|
[2342] | 34 | \- billingcodes : dumps billing codes. |
---|
[2667] | 35 | \- all : dumps all PyKota datas. The output format |
---|
[2086] | 36 | .IP |
---|
[2667] | 37 | is always XML in this case. |
---|
| 38 | .IP |
---|
[2086] | 39 | NB : the \fB\-d\fR | \fB\-\-data\fR command line option |
---|
| 40 | is MANDATORY. |
---|
| 41 | .TP |
---|
| 42 | \fB\-f\fR | \fB\-\-format\fR fmt |
---|
| 43 | Dumps datas in the 'fmt' format. When not specified, |
---|
| 44 | the format is to dump datas in the csv format (comma |
---|
| 45 | separated values). All data dumped is between double |
---|
| 46 | quotes. Allowed formats are : |
---|
| 47 | .IP |
---|
| 48 | \- csv : separate datas with commas |
---|
| 49 | \- ssv : separate datas with semicolons |
---|
| 50 | \- tsv : separate datas with tabs |
---|
| 51 | \- xml : dump data as XML |
---|
| 52 | \- cups : dump datas in CUPS' page_log format : |
---|
| 53 | .IP |
---|
| 54 | ONLY AVAILABLE WITH \fB\-\-data\fR history |
---|
| 55 | .TP |
---|
| 56 | \fB\-o\fR | \fB\-\-output\fR fname |
---|
| 57 | All datas will be dumped to the file instead of |
---|
| 58 | to the standard output. The special '\-' filename |
---|
| 59 | is the default value and means stdout. |
---|
| 60 | WARNING : existing files are truncated ! |
---|
[2303] | 61 | .TP |
---|
| 62 | \fB\-s\fR | \fB\-\-sum\fR |
---|
| 63 | Summarize the selected datas. |
---|
| 64 | ONLY AVAILABLE WITH \fB\-\-data\fR history or payments |
---|
[2086] | 65 | .IP |
---|
| 66 | Use the filter expressions to extract only parts of the |
---|
| 67 | datas. Allowed filters are of the form : |
---|
| 68 | .IP |
---|
| 69 | key=value |
---|
| 70 | .IP |
---|
| 71 | Allowed keys for now are : |
---|
| 72 | .TP |
---|
| 73 | username |
---|
| 74 | User's name |
---|
| 75 | .TP |
---|
| 76 | groupname |
---|
| 77 | Users group's name |
---|
| 78 | .TP |
---|
| 79 | printername |
---|
| 80 | Printer's name |
---|
| 81 | .TP |
---|
| 82 | pgroupname |
---|
| 83 | Printers group's name |
---|
[2228] | 84 | .TP |
---|
| 85 | hostname |
---|
| 86 | Client's hostname |
---|
| 87 | .TP |
---|
| 88 | billingcode |
---|
| 89 | Job's billing code |
---|
[2266] | 90 | .TP |
---|
| 91 | start |
---|
| 92 | Job's date of printing |
---|
| 93 | .TP |
---|
| 94 | end |
---|
| 95 | Job's date of printing |
---|
[2086] | 96 | .IP |
---|
| 97 | Contrary to other PyKota management tools, wildcard characters are not |
---|
| 98 | expanded, so you can't use them. |
---|
| 99 | .IP |
---|
| 100 | NB : not all keys are allowed for each data type, so the result may be |
---|
| 101 | empty if you use a key not available for a particular data type. |
---|
| 102 | .PP |
---|
| 103 | Examples : |
---|
| 104 | .IP |
---|
| 105 | \f(CW$ dumpykota --data history --format csv >myfile.csv\fR |
---|
| 106 | .IP |
---|
| 107 | This dumps the history in a comma separated values file, for possible |
---|
| 108 | use in a spreadsheet. |
---|
| 109 | .IP |
---|
| 110 | \f(CW$ dumpykota --data users --format xml -o users.xml\fR |
---|
| 111 | .IP |
---|
| 112 | Dumps all users datas to the users.xml file. |
---|
| 113 | .IP |
---|
| 114 | \f(CW$ dumpykota --data history printername=HP2100 username=jerome\fR |
---|
| 115 | .IP |
---|
| 116 | Dumps the job history for user jerome on printer HP2100 only. |
---|
[2266] | 117 | .IP |
---|
| 118 | \f(CW$ dumpykota --data history start=200503 end=20050730234615\fR |
---|
| 119 | .IP |
---|
| 120 | Dumps all jobs printed between March 1st 2005 at midnight and |
---|
| 121 | July 30th 2005 at 23 hours 46 minutes and 15 secondes included. |
---|
[2086] | 122 | .PP |
---|
| 123 | This program is free software; you can redistribute it and/or modify |
---|
| 124 | it under the terms of the GNU General Public License as published by |
---|
| 125 | the Free Software Foundation; either version 2 of the License, or |
---|
| 126 | (at your option) any later version. |
---|
| 127 | .PP |
---|
| 128 | This program is distributed in the hope that it will be useful, |
---|
| 129 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 130 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 131 | GNU General Public License for more details. |
---|
| 132 | .PP |
---|
| 133 | You should have received a copy of the GNU General Public License |
---|
| 134 | along with this program; if not, write to the Free Software |
---|
[2303] | 135 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301, USA. |
---|
[2086] | 136 | .PP |
---|
[2344] | 137 | Please report bugs to : Jerome Alet \- alet@librelogiciel.com |
---|