CarnegieJ DD-WRT Novice
Joined: 13 Jun 2016 Posts: 19
|
Posted: Tue Jun 11, 2019 20:47 Post subject: RfH: DD-WRT monitoring tips |
|
This message is a request for tips/help (RfH) to monitor DD-WRT.
I have a small home office network with six Windows clients and six IoT devices. My network router is running DD-WRT v3.0-r39956 std with the following options:
Use DNSMasq for DHCP/DHCPv6: yes
Use DNSMasq for DNS: yes
DHCP-Authoritative: yes
DHCP Used on LAN & WLAN: yes
Wireless: no
Ad Blocking: yes
To monitor my DD-WRT installation, I periodically run the following router CLI commands:
- cat /tmp/loginprompt
- uname -a
- cat /proc/interrupts
- ps -wT
- date; uptime
- netstat -an
- free
Steps 1 and 2 are run after startup (cold/warm/reboot/reset). Steps 3 through 7 are run intermittently. I need help to better understand the output from these commands to analyze the system status. Here is my sample output after a few hours of uptime:
Sample run #1 (all steps)
===========================
~ # cat /tmp/loginprompt
DD-WRT v3.0-r39956 std (c) 2019 NewMedia-NET GmbH
Release: 06/06/19
Board: TP-Link TL-WDR4300 v1
~ # uname -a
Linux myRouter 3.10.108-d8 #10906 Thu Jun 6 02:24:15 CEST 2019 mips DD-WRT
~ # cat /proc/interrupts
CPU0
4: 3047232 MIPS eth0
6: 0 MIPS cascade [AR71XX MISC]
7: 3185859 MIPS timer
10: 0 AR71XX MISC cascade [AR71XX GPIO]
11: 188 AR71XX MISC serial
72: 0 AR724X PCI ath9k
78: 0 dummy ath9k
ERR: 0
~ # ps -wT
PID USER VSZ STAT COMMAND
1 root 1144 S /sbin/init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW< [kworker/0:0H]
6 root 0 SW [kworker/u2:0]
7 root 0 SW< [khelper]
8 root 0 SW [kworker/u2:1]
71 root 0 SW< [writeback]
74 root 0 SW< [bioset]
75 root 0 SW< [crypto]
77 root 0 SW< [kblockd]
104 root 0 SW [kworker/0:1]
110 root 0 SW [kswapd0]
111 root 0 SW [fsnotify_mark]
242 root 0 SW< [deferwq]
532 root 920 S /sbin/hotplug2 --set-rules-file /etc/hotplug2.rules --persistent
543 root 1828 S watchdog
598 root 0 SW< [cfg80211]
741 root 0 SW< [ipv6_addrconf]
905 root 1160 S syslogd -Z -L -R 192.168.1.2
912 root 1000 S dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_host_rsa_key -p 22 -s
1180 root 1516 S resetbutton
1669 root 1160 S udhcpc -i vlan2 -p /var/run/udhcpc.pid -s /tmp/udhcpc -O routes -O msstaticroutes -O staticroutes -H myRouter
1709 root 1360 S dhcp6c -c /tmp/dhcp6c.conf -T LL vlan2
1720 root 1480 S upnp -D -W vlan2
1723 root 1788 S wland
1724 root 1828 S process_monitor
1984 root 4112 S dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.conf
2851 root 1072 R dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_host_rsa_key -p 22 -s
2852 root 1164 S /bin/sh
3709 root 1164 R ps -wT
~ # date; uptime
Sun Jun 9 18:30:39 EDT 2019
18:30:39 up 8:53, load average: 0.00, 0.02, 0.04
~ # netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 98.x.x.x:1780 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.1:1780 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.1:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 132 192.168.1.1:22 192.168.1.9:4956 ESTABLISHED
tcp 0 0 ::1:53 :::* LISTEN
tcp 0 0 2606:a000::fe00:x:53 :::* LISTEN
tcp 0 0 fe80::a2f3::2fb9:53 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
udp 0 0 127.0.0.1:53 0.0.0.0:*
udp 0 0 192.168.1.1:53 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
udp 0 0 0.0.0.0:51806 0.0.0.0:*
udp 0 0 0.0.0.0:1900 0.0.0.0:*
udp 0 0 127.0.0.1:40100 0.0.0.0:*
udp 0 0 127.0.0.1:40103 0.0.0.0:*
udp 0 0 :::546 :::*
udp 0 0 :::547 :::*
udp 0 0 ::1:53 :::*
udp 0 0 2606:a000::fe00:x:53 :::*
udp 0 0 fe80::a2f3::2fb9:53 :::*
raw 0 0 0.0.0.0:255 0.0.0.0:* 255
raw 0 0 ::%1:58 ::%4460340:* 58
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 5 [ ] DGRAM 1121 /dev/log
unix 2 [ ] DGRAM 1160
unix 2 [ ] DGRAM 2948
unix 2 [ ] DGRAM 3019
~ # free
total used free shared buff/cache available
Mem: 126632 17560 100560 0 8512 0
-/+ buffers/cache: 17560 109072
Swap: 0 0 0
Sample run #2 (steps 3 through 7)
==================================
~ # cat /proc/interrupts
CPU0
4: 27308756 MIPS eth0
6: 0 MIPS cascade [AR71XX MISC]
7: 18636038 MIPS timer
10: 0 AR71XX MISC cascade [AR71XX GPIO]
11: 188 AR71XX MISC serial
72: 0 AR724X PCI ath9k
78: 0 dummy ath9k
ERR: 0
/ # ps -wT
PID USER VSZ STAT COMMAND
1 root 1144 S /sbin/init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW< [kworker/0:0H]
6 root 0 SW [kworker/u2:0]
7 root 0 SW< [khelper]
8 root 0 SW [kworker/u2:1]
71 root 0 SW< [writeback]
74 root 0 SW< [bioset]
75 root 0 SW< [crypto]
77 root 0 SW< [kblockd]
104 root 0 SW [kworker/0:1]
110 root 0 SW [kswapd0]
111 root 0 SW [fsnotify_mark]
242 root 0 SW< [deferwq]
532 root 920 S /sbin/hotplug2 --set-rules-file /etc/hotplug2.rules --persistent
543 root 1828 S watchdog
598 root 0 SW< [cfg80211]
741 root 0 SW< [ipv6_addrconf]
905 root 1160 S syslogd -Z -L -R 192.168.1.2
912 root 1000 S dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_host_rsa_key -p 22 -s
1180 root 1516 S resetbutton
1669 root 1160 S udhcpc -i vlan2 -p /var/run/udhcpc.pid -s /tmp/udhcpc -O routes -O msstaticroutes -O staticroutes -H myRouter
1709 root 1360 S dhcp6c -c /tmp/dhcp6c.conf -T LL vlan2
1720 root 1480 S upnp -D -W vlan2
1723 root 1788 S wland
1724 root 1828 S process_monitor
1984 root 4248 S dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.conf
2851 root 1072 R dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_host_rsa_key -p 22 -s
2852 root 1164 S /bin/sh
11691 root 1164 R ps -wT
~ # date; uptime
Tue Jun 11 13:44:46 EDT 2019
13:44:46 up 2 days, 4:07, load average: 0.02, 0.04, 0.04
~ # netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 98.x.x.x:1780 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.1:1780 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.1:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 132 192.168.1.1:22 192.168.1.9:4951 ESTABLISHED
tcp 0 0 ::1:53 :::* LISTEN
tcp 0 0 2606:a000::fe00:x:53 :::* LISTEN
tcp 0 0 fe80::a2f3::2fb9:53 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
udp 0 0 127.0.0.1:53 0.0.0.0:*
udp 0 0 192.168.1.1:53 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
udp 0 0 0.0.0.0:51806 0.0.0.0:*
udp 0 0 0.0.0.0:1900 0.0.0.0:*
udp 0 0 127.0.0.1:40100 0.0.0.0:*
udp 0 0 127.0.0.1:40103 0.0.0.0:*
udp 0 0 :::546 :::*
udp 0 0 :::547 :::*
udp 0 0 ::1:53 :::*
udp 0 0 2606:a000::fe00:x:53 :::*
udp 0 0 fe80::a2f3::2fb9:53 :::*
raw 0 0 0.0.0.0:255 0.0.0.0:* 255
raw 0 0 ::%1:58 ::%4460340:* 58
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 5 [ ] DGRAM 1121 /dev/log
unix 2 [ ] DGRAM 1160
unix 2 [ ] DGRAM 2948
unix 2 [ ] DGRAM 3019
~ # free
total used free shared buff/cache available
Mem: 126632 18152 99804 0 8676 0
-/+ buffers/cache: 18152 108480
Swap: 0 0 0
Thanks in advance for helpful tips.
Cheers,
CJ _________________ Atheros
TP-Link TL-WDR4300 v1 ----- DD-WRT 39956 BS (AP, VAP, Router, AP Isolation, Firewall, VLAN, QoS)
TP-Link TL-WDR3600 v1 ----- DD-WRT 41517 BS (AP, VAP, Router, AP Isolation, Firewall, VLAN, QoS)
Ralink/RT2880
AirLink101 150N (AR670W) --DD-WRT ??? BS (AP,NAT,Firewall) |
|