Skip to content

Commit

Permalink
op_mode: T6808: Console server op mode commands throw errors when con…
Browse files Browse the repository at this point in the history
…sole server is not configured
  • Loading branch information
natali-rs1985 committed Oct 24, 2024
1 parent ceb64f3 commit 59c0c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions op-mode-definitions/show-console-server.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 59c0c0b

Please sign in to comment.