[FrontPage] [TitleIndex] [WordIndex

This is a read-only archived version of wiki.centos.org

# Set locale to English export LC_ALL=en_US.UTF-8 export LANGUAGE=en_US:en_GB:en

PATH=/sbin:/bin:/usr/sbin:/usr/bin

# Separator for commands. IFS=:

# Temporary file for output. TMPFILE="mktemp -t basedata.XXXXXX" || exit 1

# Command list: PRGBASE="uname -rmi:rpm -qa \*-release\*:cat /etc/redhat-release:getenforce:free -m" PRGPKGS="rpm -qa yum\* rpm-\* python | sort:ls /etc/yum.repos.d:cat /etc/yum.conf" PRGPKGS=$PRGPKGS:"yum repolist all:egrep 'include|exclude' /etc/yum.repos.d/*.repo" PRGPKGS=$PRGPKGS:'sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n' PRGKRNL="rpm -qa kernel\\* | sort" PRGHARD="lspci -nn:lsusb:rpm -qa kmod\* kmdl\*" PRGSNET="ifconfig -a:brctl show:route -n:cat /etc/resolv.conf:grep net /etc/nsswitch.conf:chkconfig --list | grep -Ei 'network|wpa'"

if [ $# -lt 1 ]; then

else

fi

# If not running as root then no fdisk, parted, or lvdisplay if $EUID -eq 0; then

else

fi

case "$CASE" in

esac echo "Collecting system information for $CASE questions."

echo "[code]" >> $TMPFILE 2>&1

for program in $PRGS do

done

echo "[/code]" >> $TMPFILE 2>&1

chmod a+r $TMPFILE

echo -e "\n########################" echo -e "Results are in the file:\n* $TMPFILE *" echo -e "########################\n"

echo "To provide this information in support of a question on fora," echo -e "mailing list, or IRC channel please post its contents to\n" echo " http://pastebin.centos.org/" echo -e "\nor another similar public site of your choice." echo "Select a retention time longer than the default of 'a day'" echo -e "and provide a link to the information in your post.\n"

echo "Alternatively, post in-line, trimming to remove any unnecessary information" echo "for your topic. For forum posts, please leave in the" echo -e "[code] ... [/code] tags to preserve formatting.\n"

echo "WARNING - Check the contents of the $TMPFILE file to ensure it does" echo "not contain any sensitive information such as public IP addresses or hostnames." echo "If necessary obfuscate such information before posting. For example:" echo " 146.xxx.xxx.41 or myhost.mydomain.net"


2023-09-11 07:22