Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

wcat(1) [debian man page]

WCAT(1) 							   User Commands							   WCAT(1)

NAME
wcat - printout wtmp entries SYNOPSIS
wcat [-w wtmp|-] [-adX[3|4]] [-s start] [-e end] [-b H[:M[:S]]] [--help] [--version] SYNOPSIS
Wcat provides an easy way to recover trimmed information from wtmp binary files. This tool can be useful for scripts that need only partial information from them. Notice that wcat output is binary wtmp entries so if this information is printed out to a terminal or screen it might mess it up. A better use of wcat would be: wcat | rawtmp -w - OPTIONS
-w wtmp|- Read alternate wtmp file. -X[3] Read tacacs 3.x wtmp format. -X4 Read tacacs 4.0 wtmp format. -d Output time in MMM DD HH:MM:SS date format. -a Print contents of ut_addr (if it exists) instead of ut_host. -s start Display accounting info from `start'. -e end Display accounting info up to `end'. -b H:M:S Show accounting info from the last few hours/minutes/seconds. --help Print this help message. --version Print the version of rawtmp. SEE ALSO
sac(8), ac(1), last(1), rawtmp(1), wtmp(5), netdate(8L) FILES
/var/log/wtmp login database /usr/adm/radacct/.../detail Radius accounting logs AUTHOR
The upstream author of wcat is Steve Baker (ice@mama.indstate.edu) This manpage was written by Javier Fernandez-Sanguino based on help2man for the Debian GNU/Linux distribution (but can be used by others). wcat v1.0 (c) 2001 by Steve Baker January 2003 WCAT(1)

Check Out this Related Man Page

RAWTMP(1)						      General Commands Manual							 RAWTMP(1)

NAME
rawtmp - display wtmp entries in raw form. SYNOPSIS
rawtmp [-da] [-w wtmp|-] [-X[3|4]d] [-s start] [-e end] [-b H:M:S] [--help] [--version] DESCRIPTION
Rawtmp is a utility to dump the raw data in a wtmp or utmp file to the screen for viewing. It may be useful to anyone who wishes to divine the nature of the data stored in the wtmp or utmp files. It may also be useful to extract special wtmp entries that are not documented anywhere (like those netdate puts in the wtmp file). If on a logout, when the username is encoded in the ut_user field by replacing the first character of the username with a null, rawtmp will print the contents of the user field with a leading dot '.' to denote the null character. Only agetty and tacacs control software are cur- rently known to use this logging method. OPTIONS
Rawtmp understands the following command line switches: --help Outputs a verbose usage listing. --version Displays the version of rawtmp. -w wtmp Select a different input file instead of the default (/var/log/wtmp). -X[3] Read a wtmp file maintained by versions 3.3 or 3.4 Tacacs terminal server access control software. -X4 Read a wtmp file maintained by version 4.0 of Tacacs terminal server access control software. -d Output the time in MMM DD HH:MM:SS format instead of raw time for a more human readable form (and to actually know what day you're looking at!). -a Print the contents of the ut_addr field (in quad-dotted notation) instead of using the ut_host field. Note: ut_addr is almost never used and more than likely contains garbage information. -b hours[:minutes[:seconds]] Consider only those utmp entries that fall within the last few hours/minutes/seconds from the current time, disregarding the rest. -s start Selects the starting date of the report, in mm/dd/yy format. -e end Selects the ending date of the report, in mm/dd/yy format. FILES
/var/log/wtmp login database. AUTHOR
Steve Baker (ice@mama.indstate.edu) BUGS
Could use some filtering options. SEE ALSO
last(1), sac(8) UNIX Manual RAWTMP(1)
Man Page