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