This file is indexed.

/usr/bin/drbl-bug-report is in drbl 2.11.15-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#!/bin/bash
#
# Copyright (C) 2002-2003 by NCHC, Steven Shiau, K. L. Huang
# (steven _at_ nchc org tw, klhaung _at_ gmail com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#

# Load DRBL setting and functions
# Setting
# Source function library.
[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions

# Load DRBL setting and functions
DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}"
. $DRBL_SCRIPT_PATH/sbin/drbl-conf-functions

# get the distribution name and type: OS_Version and OS_type
check_distribution_name

# Settings
# PKG_FROM_DRBL is loaded from drbl.conf, we append "drbl, partimage, ntfsprogs lzop..."
PKG_FROM_DRBL="drbl $PKG_FROM_DRBL partimage ntfsprogs gzip bzip2 lzop pigz pbzip2 udpcast syslinux"

echo -n "Acquiring some info about the system."
#
echo -n .
case "$OS_Version" in
   RH*|FC*|CO*|MDK*|MDV*|SUSE*)
      for ipkg in $PKG_FROM_DRBL; do
        ipkg_ver=""
        ipkg_ver="$(rpm -q $ipkg)"
	[ -n $ipkg_ver ] && installed_pkgs="$installed_pkgs $ipkg_ver"
      done

      # Extra: glibc and mkpxeinitrd-net
      glibc_ver="$(rpm -q glibc)"
      LC_ALL=C rpm -q --qf '%{ARCH}' glibc > /dev/null && glibc_arch=`rpm -q --qf '%{ARCH}' glibc`
      ;;
   DBN*)
      for ipkg in $PKG_FROM_DRBL; do
        ipkg_ver=""
        ipkg_ver="$(LC_ALL=C dpkg -l $ipkg | tail -n 1 | awk -F" " '{print $2"-"$3}')"
	[ -n $ipkg_ver ] && installed_pkgs="$installed_pkgs $ipkg_ver"
      done
      ;;
   *)
      echo "This version in this distribution is NOT supported by DRBL, maybe you can try to use the drbl in testing or unstable repository. Program terminated!"
      exit 1 
esac

echo -n .
ARCH="$(LC_ALL=C uname -m)"
Kernel_VER="$(LC_ALL=C uname -r)"
SERVER_CPU="$(LC_ALL=C awk -F":" '/^model name/ {print $2}' /proc/cpuinfo | sort | uniq)"

echo -n .
if [ -f $pxecfg_pd/kernel_version_in_initrd.txt ]; then
  client_kernel_ver="$(LC_ALL=C cat $pxecfg_pd/kernel_version_in_initrd.txt)"
fi

if [ -f $pxecfg_pd/client_kernel_arch.txt ]; then
  client_kernel_arch="$(LC_ALL=C cat $pxecfg_pd/client_kernel_arch.txt)"
fi

echo -n .
# server memory
server_mem_size="$(LC_ALL=C cat /proc/meminfo | grep "^MemTotal:" | awk -F" " '{print $2" " $3}')"

#
echo -n .
total_client_no="$(LC_ALL=C get-client-ip-list | wc -l)"

# To strip the line feed, we use echo ``
echo -n .
private_NIC="$(LC_ALL=C get-all-nic-ip  --private-ip-port)"
echo -n .
private_IP="$(LC_ALL=C get-all-nic-ip --private-ip-address)"
echo -n .
client_IP="$(echo `get-client-ip-list`)"


echo " done!"

# output the results:
time_now="$(LC_ALL=C date +%Y%m%d-%H%M)"
output_filename="DRBL-BUG-RPT-${time_now}.txt"

# dump it
  cat <<-REP_END > $output_filename
To report the bug, fill the contents in the following table, then send it to DRBL mailing list or post it on the DRBL forum."
-------CUT BEGIN HERE--------------------------------------------
Description of problem:

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:


Some info about the DRBL environment (PLEASE DO NOT EDIT THEM!):
===
OS version: $FULL_OS_Version
Server arch: $ARCH
Server CPU: $SERVER_CPU
Server memory size: $server_mem_size
Server Kernel version: $Kernel_VER
Installed DRBL-related packages: $installed_pkgs
REP_END

# This is only necessary for RH-like
if [ -n "$glibc_ver" ]; then
  cat <<-REP_END >> $output_filename
Server glibc ver and arch: $glibc_ver $glibc_arch
REP_END
fi

cat <<-REP_END >> $output_filename
Client kernel version: $client_kernel_ver
Client kernel arch: $client_kernel_arch
NICs with private IP address in server: $private_NIC
Private IP address in server: $private_IP
Total client no: $total_client_no
Client IP address: $client_IP
===
-------CUT END HERE----------------------------------------------
REP_END

[ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
echo "The results are in file $output_filename"
[ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
echo "To report the bug, fill the contents in file $output_filename then send it to DRBL mailing list or post it on the DRBL forum."