user_pro foo seven Wed Aug 28 05:00 - 06:00 (01:00)
accounti foo nine Wed Aug 28 03:00 - 04:00 (01:00)
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ include system ~~~
rick long never-gonna-logo Thu Jan 1 00:00 - 03:14 (24855+03:14)
torvalds linux hobby Mon Aug 26 00:57 gone - no logout
user_pro foo seven Wed Aug 28 05:00 - 06:00 (01:00)
accounti foo nine Wed Aug 28 03:00 - 04:00 (01:00)
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ dns short ~~~
IPv4 root a.root-servers.n Wed Aug 28 13:00 - 14:00 (01:00)
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ dns long ~~~
IPv4 root a.root-servers.net Wed Aug 28 13:00 - 14:00 (01:00)
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ dns host last ~~~
IPv4 root Wed Aug 28 13:00 - 14:00 (01:00) a.root-servers.net
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ show ip ~~~
torvalds linux 128.214.205.14 Mon Aug 26 00:57 gone - no logout
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ no host ~~~
torvalds linux Mon Aug 26 00:57 gone - no logout
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ full times shortopt ~~~
rick long never-gonna-logo Thu Jan 1 00:00:00 1970 - Tue Jan 19 03:14:07 2038 (24855+03:14)
torvalds linux hobby Mon Aug 26 00:57:08 1991 gone - no logout
user_pro foo seven Wed Aug 28 05:00:00 2013 - Wed Aug 28 06:00:00 2013 (01:00)
accounti foo nine Wed Aug 28 03:00:00 2013 - Wed Aug 28 04:00:00 2013 (01:00)
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ full times longopt ~~~
rick long never-gonna-logo Thu Jan 1 00:00:00 1970 - Tue Jan 19 03:14:07 2038 (24855+03:14)
torvalds linux hobby Mon Aug 26 00:57:08 1991 gone - no logout
user_pro foo seven Wed Aug 28 05:00:00 2013 - Wed Aug 28 06:00:00 2013 (01:00)
accounti foo nine Wed Aug 28 03:00:00 2013 - Wed Aug 28 04:00:00 2013 (01:00)
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ no time ~~~
rick long never-gonna-logo (24855+03:14)
torvalds linux hobby no logout
user_pro foo seven (01:00)
accounti foo nine (01:00)
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ iso-8601 time ~~~
rick long never-gonna-logout 1970-01-01T00:00:00+0000 - 2038-01-19T03:14:07+0000 (24855+03:14)
torvalds linux hobby 1991-08-26T00:57:08+0000 gone - no logout
user_process foo seven 2013-08-28T05:00:00+0000 - 2013-08-28T06:00:00+0000 (01:00)
accounting foo nine 2013-08-28T03:00:00+0000 - 2013-08-28T04:00:00+0000 (01:00)
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ since and until ~~~
oldtime foo four Wed Aug 28 08:00 gone - no logout
init foo five Wed Aug 28 07:00 - 08:00 (01:00)
user_pro foo seven Wed Aug 28 05:00 - 06:00 (01:00)
accounti foo nine Wed Aug 28 03:00 - 04:00 (01:00)
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ present ~~~
rick long never-gonna-logo Thu Jan 1 00:00 - 03:14 (24855+03:14)
torvalds linux hobby Mon Aug 26 00:57 gone - no logout
runlevel foo one Wed Aug 28 11:00 - 12:00 (01:00)
-wtmp begins Wed Aug 28 03:00:00 2013
+wtmp-a begins Wed Aug 28 03:00:00 2013
~~~ dns short ~~~
IPv6 root a.root-servers.n Wed Aug 28 20:30 - 20:40 (00:10)
-ipv6-input begins Wed Aug 28 20:30:40 2013
+wtmp-ipv6 begins Wed Aug 28 20:30:40 2013
~~~ dns long ~~~
IPv6 root a.root-servers.net Wed Aug 28 20:30 - 20:40 (00:10)
-ipv6-input begins Wed Aug 28 20:30:40 2013
+wtmp-ipv6 begins Wed Aug 28 20:30:40 2013
~~~ dns host last ~~~
IPv6 root Wed Aug 28 20:30 - 20:40 (00:10) a.root-servers.net
-ipv6-input begins Wed Aug 28 20:30:40 2013
+wtmp-ipv6 begins Wed Aug 28 20:30:40 2013
~~~ show ip ~~~
IPv6 root 2001:503:ba3e::2 Wed Aug 28 20:30 - 20:40 (00:10)
-ipv6-input begins Wed Aug 28 20:30:40 2013
+wtmp-ipv6 begins Wed Aug 28 20:30:40 2013
~~~ show ip last ~~~
IPv6 root Wed Aug 28 20:30 - 20:40 (00:10) 2001:503:ba3e::2:30
-ipv6-input begins Wed Aug 28 20:30:40 2013
+wtmp-ipv6 begins Wed Aug 28 20:30:40 2013
$TS_CMD_LAST --version 2>&1 | grep -q "invalid option" \
&& ts_skip "deprecated last"
-WTMP_FILE=${TS_OUTDIR}/wtmp
+WTMP_FILE=${TS_OUTDIR}/wtmp-a
rm -f $WTMP_FILE
BYTE_ORDER=$($TS_HELPER_SYSINFO byte-order)
-ln -s ${TS_SELF}/wtmp.${BYTE_ORDER} $WTMP_FILE
+ln -s ${TS_SELF}/wtmp-a.${BYTE_ORDER} $WTMP_FILE
export LANG=C
export TZ=GMT
$TS_CMD_LAST --version 2>&1 | grep -q "invalid option" \
&& ts_skip "deprecated last"
-WTMP_FILE=${TS_OUTDIR}/ipv6-input
+WTMP_FILE=${TS_OUTDIR}/wtmp-ipv6
rm -f $WTMP_FILE
BYTE_ORDER=$($TS_HELPER_SYSINFO byte-order)
-ln -s ${TS_SELF}/ipv6-input.${BYTE_ORDER} $WTMP_FILE
+ln -s ${TS_SELF}/wtmp-ipv6.${BYTE_ORDER} $WTMP_FILE
export LANG=C
export TZ=GMT
--- /dev/null
+[9] [00009] [ts/9] [accounting] [foo ] [nine ] [0.0.0.0 ] [Wed Aug 28 03:00:00 2013 GMT]
+[8] [00008] [ts/8] [dead_process] [foo ] [eight ] [0.0.0.0 ] [Wed Aug 28 04:00:00 2013 GMT]
+[7] [00007] [ts/7] [user_process] [foo ] [seven ] [0.0.0.0 ] [Wed Aug 28 05:00:00 2013 GMT]
+[6] [00006] [ts/6] [login ] [foo ] [six ] [0.0.0.0 ] [Wed Aug 28 06:00:00 2013 GMT]
+[5] [00005] [ts/5] [init ] [foo ] [five ] [0.0.0.0 ] [Wed Aug 28 07:00:00 2013 GMT]
+[4] [00004] [ts/4] [oldtime ] [foo ] [four ] [0.0.0.0 ] [Wed Aug 28 08:00:00 2013 GMT]
+[3] [00003] [ts/3] [newtime ] [foo ] [three ] [0.0.0.0 ] [Wed Aug 28 09:00:00 2013 GMT]
+[2] [00002] [ts/2] [sysboot ] [foo ] [two ] [0.0.0.0 ] [Wed Aug 28 10:00:00 2013 GMT]
+[1] [00001] [ts/1] [runlevel] [foo ] [one ] [0.0.0.0 ] [Wed Aug 28 11:00:00 2013 GMT]
+[0] [00000] [ts/0] [nonvalid] [foo ] [zero ] [0.0.0.0 ] [Wed Aug 28 12:00:00 2013 GMT]
+[7] [00010] [ipv4] [IPv4 ] [root ] [dns-server ] [198.41.0.4 ] [Wed Aug 28 13:00:00 2013 GMT]
+[8] [00011] [ipv4] [IPv4 ] [root ] [dns-server ] [198.41.0.4 ] [Wed Aug 28 14:00:00 2013 GMT]
+[1] [00012] [~~ ] [shutdown] [~ ] [system-name ] [0.0.0.0 ] [Wed Aug 28 15:00:00 2013 GMT]
+[2] [00012] [~~ ] [reboot ] [~ ] [system-name ] [0.0.0.0 ] [Wed Aug 28 16:00:00 2013 GMT]
+[1] [00012] [~~ ] [shutdown] [~ ] [system-name ] [0.0.0.0 ] [Wed Aug 28 17:00:00 2013 GMT]
+[2] [00012] [~~ ] [reboot ] [~ ] [system-name ] [0.0.0.0 ] [Wed Aug 28 18:00:00 2013 GMT]
+[7] [00013] [ts/1] [torvalds] [linux ] [hobby ] [128.214.205.14 ] [Mon Aug 26 00:57:08 1991 GMT]
+[7] [00014] [long] [rick ] [long ] [never-gonna-logout ] [0.0.0.0 ] [ ]
+[8] [00014] [long] [rick ] [long ] [never-gonna-logout ] [0.0.0.0 ] [Tue Jan 19 03:14:07 2038 GMT]
-[7] [00010] [ipv6] [IPv6 ] [root ] [dns-server ] [2001:503:ba3e::2:30 ] [Wed Aug 28 20:30:40 2013 BST]
-[8] [00011] [ipv6] [IPv6 ] [root ] [dns-server ] [2001:503:ba3e::2:30 ] [Wed Aug 28 20:40:50 2013 BST]
+[7] [00010] [ipv6] [IPv6 ] [root ] [dns-server ] [2001:503:ba3e::2:30] [Wed Aug 28 20:30:40 2013 GMT]
+[8] [00011] [ipv6] [IPv6 ] [root ] [dns-server ] [2001:503:ba3e::2:30] [Wed Aug 28 20:40:50 2013 GMT]
# GNU General Public License for more details.
TS_TOPDIR="${0%/*}/../.."
-TS_DESC="to-binary"
+TS_DESC="to binary"
. $TS_TOPDIR/functions.sh
ts_init "$*"
export LANG=C
export TZ=GMT
OUTFILE=${TS_OUTDIR}/${TS_TESTNAME}.file
-$TS_CMD_UTMPDUMP -r $TS_SELF/text >| $OUTFILE 2>/dev/null
-if diff -q $TS_SELF/binary.$BYTE_ORDER $OUTFILE; then
+$TS_CMD_UTMPDUMP -r $TS_SELF/txt-b >| $OUTFILE 2>/dev/null
+if diff -q $TS_SELF/wtmp-b.$BYTE_ORDER $OUTFILE; then
echo "no diff"
fi > $TS_OUTPUT 2>&1
export LANG=C
export TZ=GMT
OUTFILE=${TS_OUTDIR}/${TS_TESTNAME}.file
-$TS_CMD_UTMPDUMP -r $TS_SELF/ipv6txt >| $OUTFILE 2>/dev/null
-if diff -q $TS_SELF/ipv6bin.$BYTE_ORDER $OUTFILE; then
+$TS_CMD_UTMPDUMP -r $TS_SELF/txt-ipv6 >| $OUTFILE 2>/dev/null
+if diff -q $TS_SELF/wtmp-ipv6.$BYTE_ORDER $OUTFILE; then
echo "no diff"
fi > $TS_OUTPUT 2>&1
# GNU General Public License for more details.
TS_TOPDIR="${0%/*}/../.."
-TS_DESC="to-text"
+TS_DESC="to text"
. $TS_TOPDIR/functions.sh
ts_init "$*"
export LANG=C
export TZ=GMT
-$TS_CMD_UTMPDUMP $TS_SELF/binary.$BYTE_ORDER >| $TS_OUTPUT 2>/dev/null
+$TS_CMD_UTMPDUMP $TS_SELF/wtmp-b.$BYTE_ORDER >| $TS_OUTPUT 2>/dev/null
ts_finalize
export LANG=C
export TZ=GMT
-$TS_CMD_UTMPDUMP $TS_SELF/ipv6bin.$BYTE_ORDER >| $TS_OUTPUT 2>/dev/null
+$TS_CMD_UTMPDUMP $TS_SELF/wtmp-ipv6.$BYTE_ORDER >| $TS_OUTPUT 2>/dev/null
ts_finalize