From 2e4edfd3f0f9eb306e42f119f73347deaecb7c47 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 23 Jan 2023 07:38:22 +0100 Subject: op-mode: T4949: backport "monitor log" commands from current --- op-mode-definitions/monitor-log.xml.in | 107 +++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index 352c84ff1..c14afc559 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -14,6 +14,113 @@ grc tail --follow=name /var/log/messages + + + Show log for Dynamic Host Control Protocol (DHCP) + + + + + Show log for DHCP server + + journalctl --no-hostname --boot --follow --unit isc-dhcp-server.service + + + + Show DHCP client logs + + journalctl --no-hostname --boot --follow --unit "dhclient@*.service" + + + + Show DHCP client log on specific interface + + + + + journalctl --no-hostname --boot --follow --unit "dhclient@$6.service" + + + + + + + + Show log for Dynamic Host Control Protocol IPv6 (DHCPv6) + + + + + Show log for DHCPv6 server + + journalctl --no-hostname --boot --follow --unit isc-dhcp-server6.service + + + + Show DHCPv6 client logs + + journalctl --no-hostname --boot --follow --unit "dhcp6c@*.service" + + + + Show DHCPv6 client log on specific interface + + + + + journalctl --no-hostname --boot --follow --unit "dhcp6c@$6.service" + + + + + + + + Show log for HTTPs + + journalctl --no-hostname --boot --follow --unit nginx.service + + + + Show log for LLDP + + journalctl --no-hostname --boot --follow --unit lldpd.service + + + + Show log for OpenVPN + + journalctl --no-hostname --boot --follow --unit openvpn@*.service + + + + Show OpenVPN log on specific interface + + interfaces openvpn + + + journalctl --no-hostname --boot --follow --unit openvpn@$5.service + + + + + + Show log for Simple Network Monitoring Protocol (SNMP) + + journalctl --no-hostname --boot --follow --unit snmpd.service + + + + Show log for Virtual Router Redundancy Protocol (VRRP) + + journalctl --no-hostname --boot --follow --unit keepalived.service + + + + Show log for Webproxy + + journalctl --no-hostname --boot --follow --unit squid.service + -- cgit v1.2.3 From 17f6027f318b3edb0087ecfa15755bc474ea8319 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 23 Jan 2023 06:33:45 +0100 Subject: op-mode: T4949: add "show|monitor log ipoe-server" command (cherry picked from commit 68a8cd2612cb1b00d381059747de8107f38e8c96) --- op-mode-definitions/monitor-log.xml.in | 6 ++++++ op-mode-definitions/show-log.xml.in | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index c14afc559..e06516ee7 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -80,6 +80,12 @@ journalctl --no-hostname --boot --follow --unit nginx.service + + + Monitor last lines of IPoE server log + + journalctl --no-hostname --boot --follow --unit accel-ppp@ipoe.service + Show log for LLDP diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in index 4c0a7913b..ec3d8cbbf 100644 --- a/op-mode-definitions/show-log.xml.in +++ b/op-mode-definitions/show-log.xml.in @@ -177,6 +177,12 @@ + + + Show log for IPoE server + + journalctl --no-hostname --boot --unit accel-ppp@ipoe.service + Show messages in kernel ring buffer -- cgit v1.2.3 From a383ba561b5709fb0686576a6946218eccf9f4f1 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 23 Jan 2023 06:33:53 +0100 Subject: op-mode: add "show|monitor log pppoe-server" command (cherry picked from commit 1bd69a81dc32fdaa62be27e4f5ae3cfe333f2a26) --- op-mode-definitions/monitor-log.xml.in | 23 +++++++++++++++++++++++ op-mode-definitions/show-log.xml.in | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index e06516ee7..7af9f9431 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -109,6 +109,29 @@ + + + Monitor last lines of PPPoE interface log + + journalctl --no-hostname --boot --follow --unit "ppp@pppoe*.service" + + + + Monitor last lines of PPPoE log for specific interface + + interfaces pppoe + + + journalctl --no-hostname --boot --follow --unit "ppp@$5.service" + + + + + + Monitor last lines of PPPoE server log + + journalctl --no-hostname --boot --follow --unit accel-ppp@pppoe.service + Show log for Simple Network Monitoring Protocol (SNMP) diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in index ec3d8cbbf..9a8145f10 100644 --- a/op-mode-definitions/show-log.xml.in +++ b/op-mode-definitions/show-log.xml.in @@ -218,6 +218,29 @@ + + + Show log for PPPoE interface + + journalctl --no-hostname --boot --unit "ppp@pppoe*.service" + + + + Show PPPoE log on specific interface + + interfaces pppoe + + + journalctl --no-hostname --boot --unit "ppp@$5.service" + + + + + + Show log for PPPoE server + + journalctl --no-hostname --boot --unit accel-ppp@pppoe.service + Show log for Simple Network Monitoring Protocol (SNMP) -- cgit v1.2.3