Information Collection
Querying OS Information
Query the OS version.
shellcat /etc/openEuler-latest cat /etc/os-release cat /etc/openEuler-releaseQuery the kernel version.
shelluname -a
Querying Hardware Information
Query CPU statistics.
shelllscpuView CPU parameters.
shellcat /proc/cpuinfoView system memory information.
shellcat /proc/meminfoView memory information.
shelldmidecode -t memoryView hard drive and partition distribution.
shelllsblkView details about hard drives and partitions.
shellfdisk -lView NIC information.
shelllspci | grep -i 'eth'View all network interfaces.
shellip a yum install -y net-tools ifconfigView details about a network interface.
shellethtool enp7s0 # (enp7s0 is used as an example.)View PCI information.
shelllspciView the device tree.
shelllspci -tView 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/messagesView the security-related logs.
shellcat /var/log/secureView the email-related logs.
shellcat /var/log/maillogView the logs related to scheduled tasks.
shellcat /var/log/cronView the logs related to UUCP and news devices.
shellcat /var/log/spoolerView the logs related to the startup and stop of the daemon process.
shellcat /var/log/boot.log