diff options
author | Christian Breunig <christian@breunig.cc> | 2023-01-23 06:33:53 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-01-23 07:44:05 +0100 |
commit | a383ba561b5709fb0686576a6946218eccf9f4f1 (patch) | |
tree | 71b1323365e0717764144ba876c5fcd6259dba51 /op-mode-definitions | |
parent | 17f6027f318b3edb0087ecfa15755bc474ea8319 (diff) | |
download | vyos-1x-a383ba561b5709fb0686576a6946218eccf9f4f1.tar.gz vyos-1x-a383ba561b5709fb0686576a6946218eccf9f4f1.zip |
op-mode: add "show|monitor log pppoe-server" command
(cherry picked from commit 1bd69a81dc32fdaa62be27e4f5ae3cfe333f2a26)
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/monitor-log.xml.in | 23 | ||||
-rw-r--r-- | op-mode-definitions/show-log.xml.in | 23 |
2 files changed, 46 insertions, 0 deletions
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 @@ </tagNode> </children> </node> + <node name="pppoe"> + <properties> + <help>Monitor last lines of PPPoE interface log</help> + </properties> + <command>journalctl --no-hostname --boot --follow --unit "ppp@pppoe*.service"</command> + <children> + <tagNode name="interface"> + <properties> + <help>Monitor last lines of PPPoE log for specific interface</help> + <completionHelp> + <path>interfaces pppoe</path> + </completionHelp> + </properties> + <command>journalctl --no-hostname --boot --follow --unit "ppp@$5.service"</command> + </tagNode> + </children> + </node> + <leafNode name="pppoe-server"> + <properties> + <help>Monitor last lines of PPPoE server log</help> + </properties> + <command>journalctl --no-hostname --boot --follow --unit accel-ppp@pppoe.service</command> + </leafNode> <leafNode name="snmp"> <properties> <help>Show log for Simple Network Monitoring Protocol (SNMP)</help> 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 @@ </tagNode> </children> </node> + <node name="pppoe"> + <properties> + <help>Show log for PPPoE interface</help> + </properties> + <command>journalctl --no-hostname --boot --unit "ppp@pppoe*.service"</command> + <children> + <tagNode name="interface"> + <properties> + <help>Show PPPoE log on specific interface</help> + <completionHelp> + <path>interfaces pppoe</path> + </completionHelp> + </properties> + <command>journalctl --no-hostname --boot --unit "ppp@$5.service"</command> + </tagNode> + </children> + </node> + <leafNode name="pppoe-server"> + <properties> + <help>Show log for PPPoE server</help> + </properties> + <command>journalctl --no-hostname --boot --unit accel-ppp@pppoe.service</command> + </leafNode> <leafNode name="snmp"> <properties> <help>Show log for Simple Network Monitoring Protocol (SNMP)</help> |