Rate This Document
Findability
Accuracy
Completeness
Readability

Querying Server Information

Table 1 Querying server information

Item

Query Command

OS version of the server

cat /etc/os-release

Kernel version of the host system

uname -r

NUMA information

numactl

PCI device information

lspci

CPU information

  • lscpu
  • cat /proc/cpuinfo

Memory usage

  • free
  • cat /proc/meminfo

Drive storage

  • df -h
  • cat /proc/loadavg
  • cat /proc/partitions

System uptime

uptime

Process information

  • top
  • ps

I/O information

  • cat /proc/iomem
  • cat /proc/ioports

System log information

/var/log/

System environment variables

env

Startup information

dmesg -T

Network status

  • ifconfig
  • ping
  • netstat
  • tcpdump

If the host OS is openEuler 22.03, some ports of the firewall need to be enabled in the online gaming scenario. (The port number is defined by the game vendor. For example, the port used by Honor Of Kings is 50012.) Otherwise, the network may be abnormal and users may fail to log in to a game. Configure the firewall as follows:

  1. Enable port 50012 (Honor Of Kings is used as an example).
    1
    firewall-cmd --zone=public --add-port=50012/tcp --permanent
    
  2. Reload the firewall configuration.
    1
    firewall-cmd --reload