2016年9月2日 星期五

Linux Check Hardware and Network Commands

[quantprod@hkoffice083 network-scripts]$ ifconfig
em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.1.10.183  netmask 255.255.255.0  broadcast 10.1.10.255
        ether a4:ba:db:50:66:64  txqueuelen 1000  (Ethernet)
        RX packets 672507  bytes 156314638 (149.0 MiB)
        RX errors 0  dropped 1565  overruns 0  frame 0
        TX packets 2342106  bytes 3009870528 (2.8 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

em2: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether a4:ba:db:50:66:65  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 0  (Local Loopback)
        RX packets 161360  bytes 14142796 (13.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 161360  bytes 14142796 (13.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[quantprod@hkoffice083 network-scripts]$ netstat -lntu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:15022           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:15023           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:59001           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:59002           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:8899            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:8900            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:1988            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:2020            0.0.0.0:*               LISTEN
udp        0      0 10.1.10.183:123         0.0.0.0:*
udp        0      0 127.0.0.1:123           0.0.0.0:*
udp        0      0 0.0.0.0:123             0.0.0.0:*
udp        0      0 0.0.0.0:55405           0.0.0.0:*

[quantprod@hkoffice083 network-scripts]$ cat ifcfg-em1
TYPE=Ethernet
BOOTPROTO=static
NAME=em1
UUID=c4d5d83d-4991-4623-9422-025804d6ca21
DEVICE=em1
ONBOOT=yes
IPADDR=10.1.10.183
NETMASK=255.255.255.0

[quantprod@hkoffice083 network-scripts]$ cat ifcfg-em2
TYPE=Ethernet
BOOTPROTO=static
NAME=em2
UUID=8fd78b3f-b8c9-48f1-9740-9d5f9feae4f2
DEVICE=em2
ONBOOT=no
IPADDR=192.168.10.50
NETMASK=255.255.255.0

[quantprod@hkoffice083 ~]$ sudo service ntpd start
Redirecting to /bin/systemctl start  ntpd.service
[quantprod@hkoffice083 ~]$ ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*218.189.210.4   128.138.140.44   2 u    1   64    1    2.905  -18.203   1.256
 218.189.210.3   128.138.140.44   2 u    2   64    1    3.559  -17.617   0.000

[quantprod@hkoffice083 ~]$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                16
On-line CPU(s) list:   0-15
Thread(s) per core:    2
Core(s) per socket:    4
Socket(s):             2
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 26
Model name:            Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
Stepping:              5
CPU MHz:               2261.120
BogoMIPS:              4521.29
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              8192K
NUMA node0 CPU(s):     0,2,4,6,8,10,12,14
NUMA node1 CPU(s):     1,3,5,7,9,11,13,15

[quantprod@hkoffice083 ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdd1        50G  1.5G   46G   4% /
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs            16G  8.8M   16G   1% /run
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/sdc1       275G  363M  261G   1% /data
/dev/sdd3        54G  179M   51G   1% /usr/local
tmpfs           3.2G     0  3.2G   0% /run/user/1004
tmpfs           3.2G     0  3.2G   0% /run/user/1002

[quantprod@hkoffice083 ~]$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=16374724k,nr_inodes=4093681,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sdd1 on / type ext4 (rw,noatime,data=ordered)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sdc1 on /data type ext4 (rw,noatime,data=ordered)
/dev/sdd3 on /usr/local type ext4 (rw,noatime,data=ordered)
tmpfs on /run/user/1004 type tmpfs (rw,nosuid,nodev,relatime,size=3276928k,mode=700,uid=1004,gid=1004)
tmpfs on /run/user/1002 type tmpfs (rw,nosuid,nodev,relatime,size=3276928k,mode=700,uid=1002,gid=1002)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)

[quantprod@hkoffice083 ~]$ free -g
              total        used        free      shared  buff/cache   available
Mem:             31           0          29           0           0          30
Swap:            31           0          31


[quantprod@hkoffice083 ~]$ cat /proc/version
Linux version 3.10.0-327.22.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Jun 23 17:05:11 UTC 2016

[quantprod@hkoffice083 ~]$ cat /etc/*-release
CentOS Linux release 7.2.1511 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.2.1511 (Core)
CentOS Linux release 7.2.1511 (Core)


沒有留言:

張貼留言

2023 Promox on Morefine N6000 16GB 512GB

2023 Promox on Morefine N6000 16GB 512GB Software Etcher 100MB (not but can be rufus-4.3.exe 1.4MB) Proxmox VE 7.4 ISO Installer (1st ISO re...