Information Collection
Querying OS Information
Query the OS version.
shellcat /etc/openEuler-latest cat /etc/os-release cat /etc/openEuler-release
Query the kernel version.
shelluname -a
Querying Hardware Information
Query CPU statistics.
shelllscpu
View CPU parameters.
shellcat /proc/cpuinfo
View system memory information.
shellcat /proc/meminfo
View memory information.
shelldmidecode -t memory
View hard drive and partition distribution.
shelllsblk
View details about hard drives and partitions.
shellfdisk -l
View NIC information.
shelllspci | grep -i 'eth'
View all network interfaces.
shellip a yum install -y net-tools ifconfig
View details about a network interface.
shellethtool enp7s0 # (enp7s0 is used as an example.)
View PCI information.
shelllspci
View the device tree.
shelllspci -t
View BIOS information.
shelldmidecode -t bios
Querying Software Information
Query details about a software package.
shellrpm -qi systemd # (systemd is used as an example.)
View the modules provided by a software package.
shellrpm -q --provides systemd # (systemd is used as an example.)
View all installed software packages.
shellrpm -qa | grep systemd # (systemd is used as an example.)
View the file list of a software package.
shellrpm -ql python3-rpm # (python3-rpm is used as an example.)
Viewing OS Logs
View the information and error logs after the system is started.
shellcat /var/log/messages
View the security-related logs.
shellcat /var/log/secure
View the email-related logs.
shellcat /var/log/maillog
View the logs related to scheduled tasks.
shellcat /var/log/cron
View the logs related to UUCP and news devices.
shellcat /var/log/spooler
View the logs related to the startup and stop of the daemon process.
shellcat /var/log/boot.log