From 3ee8e128702de0111574e13819e614ec410cdb63 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 21 May 2022 21:45:52 +0200 Subject: op-mode: T4390: add nhrp and flow-accounting logging --- op-mode-definitions/monitor-log.xml.in | 24 ++++++++++++++++++------ op-mode-definitions/show-log.xml.in | 12 ++++++++++++ 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index 6f82ce611..7ecce4f78 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -16,18 +16,18 @@ - Show log for Dynamic Host Control Protocol (DHCP) + Monitor last lines of Dynamic Host Control Protocol (DHCP) - Show log for DHCP server + Monitor last lines of DHCP server journalctl --no-hostname --follow --boot --unit isc-dhcp-server.service - Show DHCP client logs + Monitor last lines of DHCP client journalctl --no-hostname --follow --boot --unit "dhclient@*.service" @@ -46,18 +46,18 @@ - Show log for Dynamic Host Control Protocol IPv6 (DHCPv6) + Monitor last lines of Dynamic Host Control Protocol IPv6 (DHCPv6) - Show log for DHCPv6 server + Monitor last lines of DHCPv6 server journalctl --no-hostname --follow --boot --unit isc-dhcp-server6.service - Show DHCPv6 client logs + Monitor last lines of DHCPv6 client journalctl --no-hostname --follow --boot --unit "dhcp6c@*.service" @@ -74,12 +74,24 @@ + + + Monitor last lines of flow-accounting log + + journalctl --no-hostname --boot --follow --unit uacctd.service + Monitor last lines of Linux Kernel log journalctl --no-hostname --boot --follow --dmesg + + + Monitor last lines of NHRP log + + journalctl --no-hostname --boot --unit opennhrp.service + Monitor last lines of PPPoE log diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in index 954369712..76879e5d6 100644 --- a/op-mode-definitions/show-log.xml.in +++ b/op-mode-definitions/show-log.xml.in @@ -139,6 +139,12 @@ + + + Show log for flow-accounting + + journalctl --no-hostname --boot --unit uacctd.service + Show log for HTTPs @@ -195,6 +201,12 @@ egrep -i "kernel:.*\[NAT-[A-Z]{3,}-[0-9]+(-MASQ)?\]" $(find /var/log -maxdepth 1 -type f -name messages\* | sort -t. -k2nr) + + + Show log for NHRP + + journalctl --no-hostname --boot --unit opennhrp.service + Show log for OpenVPN -- cgit v1.2.3