diff --git a/Kconfig b/Kconfig index 27b2dee64c77a5f235e499fd683f876011dbb70f..7f1efb02d6e0c01c7293eaaa776d8dcf3923b6f5 100644 --- a/Kconfig +++ b/Kconfig @@ -444,7 +444,7 @@ config SNMP_RW_COMMUNITY config SNMP_TEMP_THOLD_FPGA int "Threshold level for FPGA temperature" - default "0" + default "80" help Threshold level for FPGA temperature, when exceeded warning is notified by SNMP via WR-SWITCH-MIB::wrsTemperatureWarning @@ -452,7 +452,7 @@ config SNMP_TEMP_THOLD_FPGA config SNMP_TEMP_THOLD_PLL int "Threshold level for PLL temperature" - default "0" + default "80" help Threshold level for PLL temperature, when exceeded warning is notified by SNMP via WR-SWITCH-MIB::wrsTemperatureWarning @@ -460,7 +460,7 @@ config SNMP_TEMP_THOLD_PLL config SNMP_TEMP_THOLD_PSL int "Threshold level for Power Supply Left (PSL) temperature" - default "0" + default "80" help Threshold level for Power Supply Left (PSL) temperature, when exceeded warning is notified by SNMP via @@ -469,7 +469,7 @@ config SNMP_TEMP_THOLD_PSL config SNMP_TEMP_THOLD_PSR int "Threshold level for Power Supply Right (PSR) temperature" - default "0" + default "80" help Threshold level for Power Supply Right (PSR) temperature, when exceeded warning is notified by SNMP via diff --git a/userspace/snmpd/wrsNetworkingStatusGroup.c b/userspace/snmpd/wrsNetworkingStatusGroup.c index e47cbbe76e5efc0905ef50ef002e6d2363acbe5c..286a629886bb3159644f8ecae4135dd4978689d1 100644 --- a/userspace/snmpd/wrsNetworkingStatusGroup.c +++ b/userspace/snmpd/wrsNetworkingStatusGroup.c @@ -78,6 +78,7 @@ static int get_endpoint_status(struct ns_pstats *old, return ret; } +/* don't use this function for now, return OK */ static int get_swcore_status(struct ns_pstats *old, struct wrsPstatsTable_s *new, unsigned int rows, float t_delta) @@ -86,11 +87,15 @@ static int get_swcore_status(struct ns_pstats *old, int ret; ret = 0; + /* don't use this function for now, return OK */ + return ret; + for (i = 0; i < rows; i++) { /* TXFrames and Forwarded described in 2.2.3 "Problem with the * SwCore or Endpoint HDL module" in wrs_failures document * shouldn't differ more than FORWARD_DELTA in total */ -/* counter Forwarded (38) is not implemented in HDL!!! */ +/* counter Forwarded (38) is implemented in HDL, but does not count PTP + * traffic!!! */ #if 0 if ( /* shouldn't differ more than FORWARD_DELTA */ ((new[i].TXFrames - new[i].Forwarded) > FORWARD_DELTA)