From cfe158844b951200a32f38c03259ea5ac845b5ca Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 22 Jul 2022 23:05:57 +0200 Subject: op-mode: add show|monitor log ssh|snmp commands --- op-mode-definitions/monitor-log.xml.in | 12 ++++++++++++ op-mode-definitions/show-log.xml.in | 6 ++++++ 2 files changed, 18 insertions(+) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index 99d64acb3..b7bd1c3e0 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -195,6 +195,18 @@ + + + Monitor last lines of Simple Network Monitoring Protocol (SNMP) + + journalctl --no-hostname --boot --follow --unit snmpd.service + + + + onitor last lines of Secure Shell (SSH) + + journalctl --no-hostname --boot --follow --unit ssh.service + diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in index ab9e128a8..7769c5f52 100644 --- a/op-mode-definitions/show-log.xml.in +++ b/op-mode-definitions/show-log.xml.in @@ -333,6 +333,12 @@ journalctl --no-hostname --boot --unit snmpd.service + + + Show log for Secure Shell (SSH) + + journalctl --no-hostname --boot --unit ssh.service + Show last n changes to messages -- cgit v1.2.3