From 59c0c0b2e5e0793804785bec0d702b879114a795 Mon Sep 17 00:00:00 2001 From: Nataliia Solomko Date: Thu, 24 Oct 2024 15:25:41 +0300 Subject: op_mode: T6808: Console server op mode commands throw errors when console server is not configured --- op-mode-definitions/show-console-server.xml.in | 4 ++-- 1 file 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 @@ Examine console ports and configured baud rates - /usr/bin/console -x + if cli-shell-api existsActive service console-server; then /usr/bin/console -x; else echo "Console server is not configured"; fi Show users on various consoles - /usr/bin/console -u + if cli-shell-api existsActive service console-server; then /usr/bin/console -u; else echo "Console server is not configured"; fi -- cgit v1.2.3