summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-console-server.xml.in
blob: 03dd97d83e3eaa1832e5606465b191ab45c6cd55 (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
<?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>journalctl --no-hostname --boot --follow --unit 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>if cli-shell-api existsActive service console-server; then /usr/bin/console -x; else echo "Console server is not configured"; fi</command>
          </leafNode>
          <leafNode name="user">
            <properties>
              <help>Show users on various consoles</help>
            </properties>
            <command>if cli-shell-api existsActive service console-server; then /usr/bin/console -u; else echo "Console server is not configured"; fi</command>
          </leafNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>