Name
vxpwlfmt -- password list formatter
Syntax
vxpwlfmt [-w] [-t file]
-i file -o file -s name
Description
When vxusersync adds and deletes users, it notes down their usernames and, for new users, their passwords in a simple textfile. vxpwlfmt will take such a logfile and "pretty print" it in a more advanced format such as HTML or RTF, suitable for distribution. Each "style", as it is called, outputs the data in a different layout and possibly different format.
Options
-i file |
Input file, as generated by libvxmdsync |
-o file |
Place output in file |
-s name |
Use the specified style when converting the logfile to "readable" output |
-t file |
Use the specified template file for output. This option is only required one styles that require one. |
-w |
Instead of converting, show all available styles. Those that require a template will be marked appropriately. |
The -i
, -o
and -s
options are mandatory.
Examples
Assuming vxusersync created a logfile called
run0919.log
, and you want to have a nice ASCII page of all new
users:
mdpwlfmt -i run0919.log -o run0919.txt -s
pg_txt
You may then use lpr or other means to print it, if you wish so. Of course, it also nice to look at on-screen.
The pg_rtf (as well as pg_html) style is
especially important, because it allows you to change the layout a little bit
more, depending on how you would like to have it. pg_rtf uses a (quite
complex) pre-created RTF file for its output, and as such, requires a the
template option -t
:
mdpwlfmt -i run0919.log -o run0919.rtf -s pg_rtf -t
/opt/vitalnix/share/vitalnix/pg.rtf
The resulting file may then be opened using a word processor (most likely Microsoft Word) and adjusted as needed.
List of styles
A brief description of what styles are available and what they are intended for can be found List of PWL styles page.