summaryrefslogtreecommitdiffstats
path: root/tests/expected/utmp/last-nodns
blob: 5b9171de316c0ddad7004735c8039fbf66b4118d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
~~~ basic output ~~~
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
reboot   system boot  system-name      Wed Aug 28 18:00   still running
reboot   system boot  system-name      Wed Aug 28 16:00 - 17:00  (01:00)
IPv4     root         dns-server       Wed Aug 28 13:00 - 14:00  (01:00)
nonvalid foo          zero             Wed Aug 28 12:00 - down   (03:00)
runlevel foo          one              Wed Aug 28 11:00 - 12:00  (01:00)
sysboot  foo          two              Wed Aug 28 10:00 - 11:00  (01:00)
newtime  foo          three            Wed Aug 28 09:00 - 10:00  (01:00)
oldtime  foo          four             Wed Aug 28 08:00 - 09:00  (01:00)
init     foo          five             Wed Aug 28 07:00 - 08:00  (01:00)
login    foo          six              Wed Aug 28 06:00 - 07: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-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
reboot   system boot  system-name      Wed Aug 28 18:00   still running
shutdown system down  system-name      Wed Aug 28 17:00 - 18:00  (01:00)
reboot   system boot  system-name      Wed Aug 28 16:00 - 17:00  (01:00)
shutdown system down  system-name      Wed Aug 28 15:00 - 16:00  (01:00)
IPv4     root         dns-server       Wed Aug 28 13:00 - 14:00  (01:00)
nonvalid foo          zero             Wed Aug 28 12:00 - down   (03:00)
runlevel foo          one              Wed Aug 28 11:00 - 12:00  (01:00)
sysboot  foo          two              Wed Aug 28 10:00 - 11:00  (01:00)
newtime  foo          three            Wed Aug 28 09:00 - 10:00  (01:00)
oldtime  foo          four             Wed Aug 28 08:00 - 09:00  (01:00)
init     foo          five             Wed Aug 28 07:00 - 08:00  (01:00)
login    foo          six              Wed Aug 28 06:00 - 07: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-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-a begins Wed Aug 28 03:00:00 2013
~~~ no host ~~~
torvalds linux        Mon Aug 26 00:57    gone - no logout

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
reboot   system boot  system-name      Wed Aug 28 18:00:00 2013   still running
reboot   system boot  system-name      Wed Aug 28 16:00:00 2013 - Wed Aug 28 17:00:00 2013  (01:00)
IPv4     root         dns-server       Wed Aug 28 13:00:00 2013 - Wed Aug 28 14:00:00 2013  (01:00)
nonvalid foo          zero             Wed Aug 28 12:00:00 2013 - down                      (03:00)
runlevel foo          one              Wed Aug 28 11:00:00 2013 - Wed Aug 28 12:00:00 2013  (01:00)
sysboot  foo          two              Wed Aug 28 10:00:00 2013 - Wed Aug 28 11:00:00 2013  (01:00)
newtime  foo          three            Wed Aug 28 09:00:00 2013 - Wed Aug 28 10:00:00 2013  (01:00)
oldtime  foo          four             Wed Aug 28 08:00:00 2013 - Wed Aug 28 09:00:00 2013  (01:00)
init     foo          five             Wed Aug 28 07:00:00 2013 - Wed Aug 28 08:00:00 2013  (01:00)
login    foo          six              Wed Aug 28 06:00:00 2013 - Wed Aug 28 07:00:00 2013  (01:00)
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-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
reboot   system boot  system-name      Wed Aug 28 18:00:00 2013   still running
reboot   system boot  system-name      Wed Aug 28 16:00:00 2013 - Wed Aug 28 17:00:00 2013  (01:00)
IPv4     root         dns-server       Wed Aug 28 13:00:00 2013 - Wed Aug 28 14:00:00 2013  (01:00)
nonvalid foo          zero             Wed Aug 28 12:00:00 2013 - down                      (03:00)
runlevel foo          one              Wed Aug 28 11:00:00 2013 - Wed Aug 28 12:00:00 2013  (01:00)
sysboot  foo          two              Wed Aug 28 10:00:00 2013 - Wed Aug 28 11:00:00 2013  (01:00)
newtime  foo          three            Wed Aug 28 09:00:00 2013 - Wed Aug 28 10:00:00 2013  (01:00)
oldtime  foo          four             Wed Aug 28 08:00:00 2013 - Wed Aug 28 09:00:00 2013  (01:00)
init     foo          five             Wed Aug 28 07:00:00 2013 - Wed Aug 28 08:00:00 2013  (01:00)
login    foo          six              Wed Aug 28 06:00:00 2013 - Wed Aug 28 07:00:00 2013  (01:00)
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-a begins Wed Aug 28 03:00:00 2013
~~~ no time ~~~
rick     long         never-gonna-logo   (24855+03:14)
torvalds linux        hobby              no logout
reboot   system boot  system-name        running
reboot   system boot  system-name         (01:00)
IPv4     root         dns-server          (01:00)
nonvalid foo          zero                (03:00)
runlevel foo          one                 (01:00)
sysboot  foo          two                 (01:00)
newtime  foo          three               (01:00)
oldtime  foo          four                (01:00)
init     foo          five                (01:00)
login    foo          six                 (01:00)
user_pro foo          seven               (01:00)
accounti foo          nine                (01:00)
~~~ iso-8601 time ~~~
rick     long         never-gonna-logout 1970-01-01T00:00:00+00:00 - 2038-01-19T03:14:07+00:00 (24855+03:14)
torvalds linux        hobby            1991-08-26T00:57:08+00:00   gone - no logout
reboot   system boot  system-name      2013-08-28T18:00:00+00:00   still running
reboot   system boot  system-name      2013-08-28T16:00:00+00:00 - 2013-08-28T17:00:00+00:00  (01:00)
IPv4     root         dns-server       2013-08-28T13:00:00+00:00 - 2013-08-28T14:00:00+00:00  (01:00)
nonvalid foo          zero             2013-08-28T12:00:00+00:00 - down                       (03:00)
runlevel foo          one              2013-08-28T11:00:00+00:00 - 2013-08-28T12:00:00+00:00  (01:00)
sysboot  foo          two              2013-08-28T10:00:00+00:00 - 2013-08-28T11:00:00+00:00  (01:00)
newtime  foo          three            2013-08-28T09:00:00+00:00 - 2013-08-28T10:00:00+00:00  (01:00)
oldtime  foo          four             2013-08-28T08:00:00+00:00 - 2013-08-28T09:00:00+00:00  (01:00)
init     foo          five             2013-08-28T07:00:00+00:00 - 2013-08-28T08:00:00+00:00  (01:00)
login    foo          six              2013-08-28T06:00:00+00:00 - 2013-08-28T07:00:00+00:00  (01:00)
user_process foo          seven            2013-08-28T05:00:00+00:00 - 2013-08-28T06:00:00+00:00  (01:00)
accounting foo          nine             2013-08-28T03:00:00+00:00 - 2013-08-28T04:00:00+00:00  (01:00)

wtmp-a begins 2013-08-28T03:00:00+00:00
~~~ 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)
login    foo          six              Wed Aug 28 06:00 - 07: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-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-a begins Wed Aug 28 03:00:00 2013