summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-19 16:11:37 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-19 16:11:37 +0200
commita9daaa8409347ad9e51d75f76f5985b8e9f2e365 (patch)
tree6c16ced88fd4404be765f4c2214c0002347456f3 /op-mode-definitions
parent2f76178d909b3e0e07190106ac12a0bd2606137a (diff)
downloadvyos-1x-a9daaa8409347ad9e51d75f76f5985b8e9f2e365.tar.gz
vyos-1x-a9daaa8409347ad9e51d75f76f5985b8e9f2e365.zip
op-mode: console-server: T2490: get connection info
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-console-server.xml36
-rw-r--r--op-mode-definitions/show-log.xml6
2 files changed, 36 insertions, 6 deletions
diff --git a/op-mode-definitions/show-console-server.xml b/op-mode-definitions/show-console-server.xml
new file mode 100644
index 000000000..77a7f3376
--- /dev/null
+++ b/op-mode-definitions/show-console-server.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="log">
+ <children>
+ <leafNode name="console-server">
+ <properties>
+ <help>Show log for serial console server</help>
+ </properties>
+ <command>/usr/bin/journalctl -u conserver-server.service</command>
+ </leafNode>
+ </children>
+ </node>
+ <node name="console-server">
+ <properties>
+ <help>Show Console-Server information</help>
+ </properties>
+ <children>
+ <leafNode name="ports">
+ <properties>
+ <help>Examine console ports and configured baud rates</help>
+ </properties>
+ <command>/usr/bin/console -x</command>
+ </leafNode>
+ <leafNode name="user">
+ <properties>
+ <help>Show users on various consoles</help>
+ </properties>
+ <command>/usr/bin/console -u</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>
diff --git a/op-mode-definitions/show-log.xml b/op-mode-definitions/show-log.xml
index 827bee4c7..0c4da647b 100644
--- a/op-mode-definitions/show-log.xml
+++ b/op-mode-definitions/show-log.xml
@@ -32,12 +32,6 @@
</properties>
<command>cat $(printf "%s\n" /var/log/messages* | sort -nr ) | grep -e conntrackd</command>
</leafNode>
- <leafNode name="console-server">
- <properties>
- <help>Show log for serial console server</help>
- </properties>
- <command>/usr/bin/journalctl -u conserver-server.service</command>
- </leafNode>
<leafNode name="dhcp">
<properties>
<help>Show log for Dynamic Host Control Protocol (DHCP)</help>