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