summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-console-server.xml
blob: e47b6cfaa441136c1a0e82b9d37dad8f68dc3cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="connect">
    <children>
      <tagNode name="console">
        <properties>
          <help>Connect to device attached to serial console server</help>
          <completionHelp>
            <path>service console-server device</path>
          </completionHelp>
        </properties>
        <command>/usr/bin/console "$3"</command>
      </tagNode>
    </children>
  </node>
  <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>