summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-console-server.xml.in
diff options
context:
space:
mode:
Diffstat (limited to 'op-mode-definitions/show-console-server.xml.in')
-rw-r--r--op-mode-definitions/show-console-server.xml.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/op-mode-definitions/show-console-server.xml.in b/op-mode-definitions/show-console-server.xml.in
index eae6fd536..03dd97d83 100644
--- a/op-mode-definitions/show-console-server.xml.in
+++ b/op-mode-definitions/show-console-server.xml.in
@@ -21,13 +21,13 @@
<properties>
<help>Examine console ports and configured baud rates</help>
</properties>
- <command>/usr/bin/console -x</command>
+ <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>/usr/bin/console -u</command>
+ <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>