From d7733328c767b838ceeaa75a1845c2629879d431 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 24 Apr 2022 11:02:06 +0200 Subject: op-mode: T4390: add "monitor log dhcp(v6)" CLI commands --- op-mode-definitions/monitor-log.xml.in | 60 ++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index 1ebccf10d..6f82ce611 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -14,6 +14,66 @@ grc journalctl --no-hostname --follow --boot + + + Show log for Dynamic Host Control Protocol (DHCP) + + + + + Show log for DHCP server + + journalctl --no-hostname --follow --boot --unit isc-dhcp-server.service + + + + Show DHCP client logs + + journalctl --no-hostname --follow --boot --unit "dhclient@*.service" + + + + Show DHCP client log on specific interface + + + + + journalctl --no-hostname --follow --boot --unit "dhclient@$6.service" + + + + + + + + Show log for Dynamic Host Control Protocol IPv6 (DHCPv6) + + + + + Show log for DHCPv6 server + + journalctl --no-hostname --follow --boot --unit isc-dhcp-server6.service + + + + Show DHCPv6 client logs + + journalctl --no-hostname --follow --boot --unit "dhcp6c@*.service" + + + + Show DHCPv6 client log on specific interface + + + + + journalctl --no-hostname --follow --boot --unit "dhcp6c@$6.service" + + + + + Monitor last lines of Linux Kernel log -- cgit v1.2.3