Information Collection
Querying OS Information
- Query the OS version.
cat /etc/openEuler-latest
cat /etc/os-release
cat /etc/openEuler-release
- Query the kernel version.
uname -a
Querying Hardware Information
- Query CPU statistics.
lscpu
- View CPU parameters.
cat /proc/cpuinfo
- View system memory information.
cat /proc/meminfo
- View memory information.
dmidecode -t memory
- View hard drive and partition distribution.
lsblk
- View details about hard drives and partitions.
fdisk -l
- View NIC information.
lspci | grep -i 'eth'
- View all network interfaces.
ip a or ifconfig -a
- View details about a network interface.
ethtool enp7s0 (enp7s0 is used as an example.)
- View PCI information.
lspci
- View the device tree.
lspci -t
- View BIOS information.
dmidecode -t bios
Querying Software Information
- Query details about a software package.
rpm -qi (systemd is used as an example.)
- View the modules provided by a software package.
rpm -q --provides (systemd is used as an example.)
- View all installed software packages.
rpm -qa (systemd is used as an example.)
- View the list of software packages.
rpm -ql (python3-rpm is used as an emple.)
Viewing OS Logs
- View the information and error logs after the system is started.
cat /var/log/messages
- View the security-related logs.
cat /var/log/secure
- View the email-related logs.
cat /var/log/maillog
- View the logs related to scheduled tasks.
cat /var/log/cron
- View the logs related to UUCP and news devices.
cat /var/log/spooler
- View the logs related to the startup and stop of the daemon process.
cat /var/log/boot.log
Bug Catching