aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
index 50d8e152..1cabe44a 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
+++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
@@ -96,6 +96,45 @@ DEFUN(cfg_mgr, cfg_mgr_cmd,
DEFUN(show_mgr, show_mgr_cmd, "show manager",
SHOW_STR "Display information about the manager")
{
+ vty_out(vty, "Current Temperatures%s", VTY_NEWLINE);
+ vty_out(vty, " Digital: %f Celcius%s",
+ sysmobts_temp_get(SYSMOBTS_TEMP_DIGITAL,
+ SYSMOBTS_TEMP_INPUT) / 1000.0f,
+ VTY_NEWLINE);
+ vty_out(vty, " RF: %f Celcius%s",
+ sysmobts_temp_get(SYSMOBTS_TEMP_RF,
+ SYSMOBTS_TEMP_INPUT) / 1000.0f,
+ VTY_NEWLINE);
+ if (is_sbts2050_master()) {
+ int temp_pa, temp_board;
+ struct sbts2050_power_status status;
+
+ sbts2050_uc_check_temp(&temp_pa, &temp_board);
+ vty_out(vty, " sysmoBTS 2050 PA: %d Celcius%s", temp_pa, VTY_NEWLINE);
+ vty_out(vty, " sysmoBTS 2050 PA: %d CelciusC%s", temp_board, VTY_NEWLINE);
+
+ sbts2050_uc_get_status(&status);
+ vty_out(vty, "Power Status%s", VTY_NEWLINE);
+ vty_out(vty, " Main Supply :(ON) [(24.00)Vdc, %4.2f A]%s",
+ status.main_supply_current, VTY_NEWLINE);
+ vty_out(vty, " Master SF : %s [%6.2f Vdc, %4.2f A]%s",
+ status.master_enabled ? "ON " : "OFF",
+ status.master_voltage, status.master_current,
+ VTY_NEWLINE);
+ vty_out(vty, " Slave SF : %s [%6.2f Vdc, %4.2f A]%s",
+ status.slave_enabled ? "ON" : "OFF",
+ status.slave_voltage, status.slave_current,
+ VTY_NEWLINE);
+ vty_out(vty, " Power Amp : %s [%6.2f Vdc, %4.2f A]%s",
+ status.pa_enabled ? "ON" : "OFF",
+ status.pa_voltage, status.pa_current,
+ VTY_NEWLINE);
+ vty_out(vty, " PA Bias : %s [%6.2f Vdc, ---- A]%s",
+ status.pa_enabled ? "ON" : "OFF",
+ status.pa_bias_voltage,
+ VTY_NEWLINE);
+ }
+
return CMD_SUCCESS;
}