summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-log.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-22 23:05:57 +0200
committerChristian Poessinger <christian@poessinger.com>2022-07-22 23:16:13 +0200
commitcfe158844b951200a32f38c03259ea5ac845b5ca (patch)
treef3c6404da2527a56197c6afec074a741ff9a0a11 /op-mode-definitions/monitor-log.xml.in
parent8c7cd6f181a4bbb5aee99f50e6c32eb1f4f37c3d (diff)
downloadvyos-1x-cfe158844b951200a32f38c03259ea5ac845b5ca.tar.gz
vyos-1x-cfe158844b951200a32f38c03259ea5ac845b5ca.zip
op-mode: add show|monitor log ssh|snmp commands
Diffstat (limited to 'op-mode-definitions/monitor-log.xml.in')
-rw-r--r--op-mode-definitions/monitor-log.xml.in12
1 files changed, 12 insertions, 0 deletions
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 @@
</leafNode>
</children>
</node>
+ <leafNode name="snmp">
+ <properties>
+ <help>Monitor last lines of Simple Network Monitoring Protocol (SNMP)</help>
+ </properties>
+ <command>journalctl --no-hostname --boot --follow --unit snmpd.service</command>
+ </leafNode>
+ <leafNode name="ssh">
+ <properties>
+ <help>onitor last lines of Secure Shell (SSH)</help>
+ </properties>
+ <command>journalctl --no-hostname --boot --follow --unit ssh.service</command>
+ </leafNode>
</children>
</node>
</children>