Designdesk

Welcome

Designdesk.org, brief how-tos and tutorials about linux, security, servers and how to maintain them.

The tutorials are aimed at Debian based systems but they should work for most distributions.

Device eth0 [192.168.0.37] (1/3):
==============================================================================================
Incoming:


###           #  ######                          #
###           #  ######                          #
###           #  ######                          #
###           #  ######                          #
###..... .....#..######...  .. .. .. | .##| ##|..#..... .. ..   Curr: 83.66 kBit/s
######## #################  ## ## ## # #### ########### ## ##   Avg: 4.78 MBit/s
######## #################  ## ## #### #### ########### ## ##   Min: 49.23 kBit/s
######## #################  ## ## ####.#### ########### ## ##   Max: 8.37 MBit/s
######## #################  ## ## ######### ########### ## ##   Ttl: 251.66 GByte
Outgoing:
                                        ### ##
                                        ### ##
                                        ### ##
                                        ###|##
                                        ######
                                        ######
                                        ######
                                        ######                  Curr: 102.90 kBit/s
                                        ######                  Avg: 2.66 MBit/s
                         #           .. #######                 Min: 64.80 kBit/s
                    |.  ##.          ## #######|                Max: 46.48 MBit/s
           ..      ###| ###.        |##|########  ##            Ttl: 497.26 GByte

Output from nload for illustrative purpose. apt-get install nload

(debian 8.6 64bit / Linux 3.16.0-4-amd64)                                        Uptime: 7331 days, 6:12:31

CPU       2.5%  nice:     0.0%         LOAD    4-core         MEM     18.7%  active:     602M         SWAP      0.8%
user:     1.8%  irq:      0.0%         1 min:    0.39         total:  3.62G  inactive:  2.52G         total:   1.56G
system:   0.6%  iowait:   0.1%         5 min:    0.29         used:    693M  buffers:    305M         used:    13.1M
idle:    97.5%  steal:    0.0%         15 min:   0.25         free:   2.94G  cached:    2.52G         free:    1.54G

NETWORK     Rx/s   Tx/s   TASKS 133 (152 thr), 1 run, 132 slp, 0 oth sorted automatically by cpu_percent
eth0        40Kb  698Kb
lo          504b   504b     CPU%  MEM%  VIRT   RES   PID USER        NI S    TIME+ IOR/s IOW/s Command
tun0          0b     0b      4.7   0.6 80.8M 20.9M 24788 root         0 R  0:03.28     0     0 /usr/bin/python3 /usr/b
                                       CPU affinity: 4 cores
DISK I/O     R/s    W/s                Memory info: shared 8.12M text 3.70M lib 0 data 12.3M dirty 0 swap 0
dm-0           0      0                Openned: threads 1 files 6 TCP 0 UDP 0
loop0          0      0                IO nice: No specific I/O priority
sda1        243K      0      3.2   0.4  343M 13.6M  7604 userx        0 S 32:04.30     0     0 process
sdb1           0      0      1.9   6.4  436M  236M  6213 userx        0 S 58:07.20  243K     0 process
sdc1           0     9K      0.3   0.0     0     0     7 root         0 S 15:59.50     0     0 rcu_sched
sdc2           0      0      0.0   0.0     0     0  7572 root       -20 S  0:00.00     0     0 loop0
sdc5           0      0      0.0   0.2  276M 5.85M 19201 root         0 S  0:00.14     0     0 /usr/sbin/smbd -D
                             0.0   0.0     0     0 24750 root         0 S  0:00.70     0     0 kworker/2:3
FILE SYS    Used  Total      0.0   0.0     0     0 24227 root         0 S  0:00.00     0     0 kworker/1:1
/ (sdc1)   2.88G  35.0G      0.0   0.0     0     0    29 root         0 S  0:00.79     0     0 khungtaskd
/storage   2.56T  5.41T      0.0   0.0     0     0    31 root         5 S  0:00.00     0     0 ksmd
                             0.0   0.0     0     0 24749 root         0 S  0:00.00     0     0 kworker/2:2
                             0.0   0.0     0     0   104 root       -20 S  0:00.00     0     0 scsi_tmf_1
                             0.0   0.0     0     0    22 root         0 S  0:02.10     0     0 migration/3
                             0.0   0.0     0     0     8 root         0 S  0:00.00     0     0 rcu_bh
                             0.0   0.0     0     0   119 root       -20 S  0:56.94     0     0 kworker/0:1H
                             0.0   0.0     0     0    18 root         0 S  2:09.59     0     0 ksoftirqd/2
                             0.0   0.0     0     0    42 root       -20 S  0:00.00     0     0 vmstat
                             0.0   0.0     0     0    15 root       -20 S  0:00.00     0     0 kworker/1:0H
                             0.0   0.0     0     0    11 root         0 S  0:09.63     0     0 watchdog/1
                             0.0   0.0     0     0   118 root       -20 S  3:45.60     0     0 kworker/3:1H
                             0.0   0.3  141M 12.6M  1180 userx        0 S  8:44.35     0     0 process
                             0.0   0.0     0     0     2 root         0 S  0:00.40     0     0 kthreadd
                             0.0   0.0     0     0   341 root       -20 S  0:00.00     0     0 kvm-irqfd-clean

2016-11-26 23:19:14       No warning or critical alert detected

Output from glances for illustrative purpose. apt-get install glances

nct6776-isa-0290
Adapter: ISA adapter
Vcore:          +0.94 V  (min =  +0.00 V, max =  +1.74 V)
in1:            +0.18 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
AVCC:           +3.34 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:          +3.33 V  (min =  +2.98 V, max =  +3.63 V)
in4:            +0.54 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:            +1.83 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:            +1.68 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
3VSB:           +3.46 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:           +3.28 V  (min =  +2.70 V, max =  +3.63 V)
fan1:             0 RPM  (min =    0 RPM)
fan2:             0 RPM  (min =    0 RPM)
fan3:             0 RPM  (min =    0 RPM)
fan4:             0 RPM  (min =    0 RPM)
fan5:             0 RPM  (min =    0 RPM)
SYSTIN:         +39.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = therm        istor
CPUTIN:         +41.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
AUXTIN:         -12.5°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
PCH_CHIP_TEMP:   +0.0°C
PCH_CPU_TEMP:    +0.0°C
PCH_MCH_TEMP:    +0.0°C
cpu0_vid:      +0.000 V
intrusion0:    OK
intrusion1:    OK
beep_enable:   disabled

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +59.2°C  (high = +70.0°C)
                       (crit = +100.0°C, hyst = +99.0°C)

fam15h_power-pci-00c4
Adapter: PCI adapter
power1:        0.00 W  (crit =  15.00 W)

Output from sensors for illustrative purpose. apt-get install lm-sensors && sensors-detect

/dev/sda: WDC WD60EFRX-68L0BN1: 35°C

Output from hddtemp /dev/sda for illustrative purpose. apt-get install hddtemp

top - 23:31:28 up 10 days,  6:24,  2 users,  load average: 0.20, 0.32, 0.31
Tasks: 121 total,   2 running, 119 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1.3 us,  0.7 sy,  0.0 ni, 97.2 id,  0.8 wa,  0.0 hi,  0.1 si,  0.0 st
KiB Mem:   3796800 total,  3662848 used,   133952 free,   311176 buffers
KiB Swap:  1632252 total,    13368 used,  1618884 free.  2656592 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 7604 userx     20   0  351228  13880   7844 S   3.7  0.4  32:26.95 process
 6213 userx     20   0  446440 241236   7200 S   2.7  6.4   2460:34 process
19203 userx     20   0  287968  17104  13728 S   1.3  0.5   0:52.32 smbd
    7 root      20   0       0      0      0 S   0.3  0.0  16:00.86 rcu_sched
 1049 root      20   0  246936   6788   4836 S   0.3  0.2   8:24.52 winbindd
 1087 root      20   0  246936   4540   2576 S   0.3  0.1   4:40.35 winbindd
24226 root      20   0       0      0      0 S   0.3  0.0   0:02.32 kworker/0:2
25097 root      20   0   23520   3064   2608 R   0.3  0.1   0:00.03 top
    1 root      20   0   28988   4728   2760 S   0.0  0.1   0:21.06 systemd
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.04 kthreadd
    3 root      20   0       0      0      0 S   0.0  0.0   1:17.06 ksoftirqd/0
    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H
    8 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh
    9 root      rt   0       0      0      0 S   0.0  0.0   0:02.53 migration/0
   10 root      rt   0       0      0      0 S   0.0  0.0   0:09.96 watchdog/0
   11 root      rt   0       0      0      0 S   0.0  0.0   0:09.64 watchdog/1
   12 root      rt   0       0      0      0 S   0.0  0.0   0:01.98 migration/1
   13 root      20   0       0      0      0 S   0.0  0.0   1:16.31 ksoftirqd/1
   15 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0H
   16 root      rt   0       0      0      0 S   0.0  0.0   0:09.70 watchdog/2

Output from top for illustrative purpose.