Information Collection
Querying OS Information
Query the OS version.
cat /etc/openEuler-latest cat /etc/os-release cat /etc/openEuler-releaseQuery the kernel version.
uname -a
Querying Hardware Information
Query CPU statistics.
lscpuView CPU parameters.
cat /proc/cpuinfoView system memory information.
cat /proc/meminfoView memory information.
dmidecode -t memoryView hard drive and partition distribution.
lsblkView details about hard drives and partitions.
fdisk -lView NIC information.
lspci | grep -i 'eth'View all network interfaces.
ip a yum install -y net-tools ifconfigView details about a network interface.
ethtool enp7s0 # (enp7s0 is used as an example.)View PCI information.
lspciView the device tree.
lspci -tView BIOS information.
dmidecode -t bios
Querying Software Information
Query details about a software package.
rpm -qi systemd # (systemd is used as an example.)View the modules provided by a software package.
rpm -q --provides systemd # (systemd is used as an example.)View all installed software packages.
rpm -qa | grep systemd # (systemd is used as an example.)View the file list of a software package.
rpm -ql python3-rpm # (python3-rpm is used as an emple.)
Viewing OS Logs
View the information and error logs after the system is started.
cat /var/log/messagesView the security-related logs.
cat /var/log/secureView the email-related logs.
cat /var/log/maillogView the logs related to scheduled tasks.
cat /var/log/cronView the logs related to UUCP and news devices.
cat /var/log/spoolerView the logs related to the startup and stop of the daemon process.
cat /var/log/boot.log




