File: dbginfo.sh.8

package info (click to toggle)
s390-tools 2.40.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 13,288 kB
  • sloc: ansic: 187,079; sh: 12,157; cpp: 5,049; makefile: 2,812; perl: 2,541; asm: 1,097; python: 697; xml: 29
file content (127 lines) | stat: -rw-r--r-- 3,344 bytes parent folder | download | duplicates (2)
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
125
126
127
.TH DBGINFO.SH  8 "07 2024" "s390-tools"

.SH NAME
dbginfo.sh \- collect runtime, configuration and trace information
for debugging Linux on IBM Z

.SH SYNOPSIS
.br
\fBdbginfo.sh\fP [OPTIONS]
.br
\fBdbginfo.sh\fP {\-h|\-c|\-v}

.SH DESCRIPTION
This script collects runtime, configuration and trace information that can
be used to debug a Linux on IBM Z instance.
For Linux on z/VM, the script also traces information about the z/VM system.
Virtualization platform data is collected on a host serving this.

The debug information is written to a file
/<DIRECTORY>/DBGINFO\-<date>\-<time>\-<hostname>\-<processorid>.tgz
where [date] and [time] are the date and time when the debug data was
collected. [hostname] indicates the hostname of the system the data was
collected from. The [processorid] is taken from the processor 0 and indicates
the processor identification.

.SH OPTIONS
.TP
\fB\-h\fP, \fB\-\-help\fP
Print usage information, then exit.

.TP
\fB\-v\fP, \fB\-\-version\fP
Print version information, then exit.

.TP
\fB\-d <DIRECTORY>\fP, \fB\-\-directory <DIRECTORY>\fP
Specify the DIRECTORY where the data collection stores the temporary data and the final archive.
The specified directory must already exist. If this parameter is not specified, /tmp is used by default.

.TP
\fB\-c\fP, \fB\-\-check\fP
Print online quick check (not saving any data) - can be combined with a preceding -d option.

.SH FILES
A .tgz file of the form
.PP
.nf
.fam C
    DBGINFO\-<year>\-<month>\-<day>\-<hours>\-<minutes>\-<seconds>\-<hostname>\-<processorid>.tgz

.fam T
.fi
is generated and placed in the /tmp directory or in the directory specified by the -d option.

.SH EXAMPLE
Sample invocation:
.P
[root@host]# dbginfo.sh \-d /data\-collection
.br
dbginfo.sh: Debug information script version %S390_TOOLS_VERSION%
.br
Copyright IBM Corp. 2002, 2024
.PP
Hardware platform     = s390x
.br
Runtime environment   = z/VM - DPM: NO
.br
Kernel version        = 5.14.0 (5.14.0-427.13.1.el9_4.s390x)
.br
OS version / distro   = Red Hat Enterprise Linux 9.4 (Plow)
.br
Date and time of info = 2024-07-11-11-11-11
.PP
1 of 20: Collecting sysfs
.PP
2 of 20: Collecting procfs
.PP
3 of 20: Collecting config files
.PP
4 of 20: Collecting initrd config files
.PP
5 of 20: Collecting command output
.PP
6 of 20: Collecting hyptop for z/VM - 5s output
.PP
7 of 20: Collecting z/VM output
.PP
8 of 20: Collecting network output
.PP
9 of 20: Collecting osa oat output
.PP
10 of 20: Collecting ethtool output
.PP
11 of 20: Collecting Traffic Control output
.PP
12 of 20: Collecting bridge output
.PP
13 of 20: Skip OpenVSwitch: ovs-vsctl not available
.PP
14 of 20: Skip KVM: no virsh command
.PP
15 of 20: Collecting container host output
.PP
 Kubernetes ...
.br
16 of 20: Collecting NVME storage output
.PP
17 of 20: Collecting DASD storage output
.PP
18 of 20: Collecting log files
.PP
 0 logfiles over 50 MB
.PP
19 of 20: Postprocessing
.PP
20 of 20: Finalizing: Creating archive with collected data
.PP
Collected data was saved to:
.br
 >>  /data\-collection/DBGINFO\-2024\-07\-11\-11\-11\-11\-host\-012345.tgz  <<
.br
Please review all collected data before sending to your service organization.
.SH HINTS
Run the script with root authority.
.br
For Linux on z/VM, only z/VM guest virtual machines with class B privileges
yield the complete debug information.