diff --git a/os/solaris/local/conf/prtdiag.conf b/os/solaris/local/conf/prtdiag.conf index 3407c902a..93ee91633 100644 --- a/os/solaris/local/conf/prtdiag.conf +++ b/os/solaris/local/conf/prtdiag.conf @@ -612,6 +612,63 @@ checks.PSU.data_labels = Supply,Status checks.PSU.ok_condition = "%Status%" eq "GOOD" checks.PSU.output_string = Power supply '%Supply%' status is '%Status%' +[SPARC T3-4] +system.match = ^System Configuration:.*SPARC T3-4 +system.checks = CPU,Fans,Temperatures,Current,Voltages,FRU + +checks.CPU.description = Virtual CPUs +checks.CPU.begin_match = ^=+ Virtual CPUs = +checks.CPU.skip_match = ^$ +checks.CPU.end_match = ^==+ +checks.CPU.data_match = ^\s*(\d+)\s+(\d+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$ +checks.CPU.data_labels = CPU,Frequence,Power,Implementation,Status +checks.CPU.ok_condition = "%Status%" eq "on-line" +checks.CPU.output_string = CPU%CPU% status is '%Status%' + +checks.Fans.description = fans status +checks.Fans.begin_match = ^Fan sensors: +checks.Fans.end_match = :$ +checks.Fans.skip_match = ^Location +checks.Fans.data_match = ^(\S+)\s+(\S+)\s+(\S+) +checks.Fans.data_labels = Location,Sensor,Status +checks.Fans.ok_condition = "%Status%" eq "ok" +checks.Fans.output_string = Fan '%Location%/%Sensor%' status is '%Status%' + +checks.Temperatures.description = temperature sensors +checks.Temperatures.begin_match = ^Temperature sensors: +checks.Temperatures.end_match = :$ +checks.Temperatures.skip_match = ^Location +checks.Temperatures.data_match = ^(\S+)\s+(\S+).*?(\S+)$ +checks.Temperatures.data_labels = Location,Sensor,Status +checks.Temperatures.ok_condition = ( "%Status%" eq "ok" ) +checks.Temperatures.output_string = Temperature sensor '%Location%/%Sensor%' status is '%Status%' + +checks.Voltages.description = voltage sensors +checks.Voltages.begin_match = ^Voltage sensors: +checks.Voltages.end_match = :$ +checks.Voltages.skip_match = ^Location +checks.Voltages.data_match = ^(\S+)\s+(\S+).*?(\S+)$ +checks.Voltages.data_labels = Location,Sensor,Status +checks.Voltages.ok_condition = "%Status%" eq "ok" +checks.Voltages.output_string = Voltage sensor '%Location%/%Sensor%' status is '%Status%' + +checks.Current.description = current indicators +checks.Current.begin_match = ^Current indicators: +checks.Current.end_match = :$ +checks.Current.skip_match = ^Location +checks.Current.data_match = ^(\S+)\s+(\S+).*?(\S+)$ +checks.Current.data_labels = Location,Indicator,Status +checks.Current.ok_condition = "%Status%" eq "ok" +checks.Current.output_string = Current indicator '%Location%/%Indicator%' status is '%Status%' + +checks.FRU.description = FRU operational status +checks.FRU.begin_match = ^Fru Operational Status: +checks.FRU.end_match = ^$ +checks.FRU.skip_match = ^Location +checks.FRU.data_match = ^(\S+)\s+(\S+)\s+(\S+) +checks.FRU.data_labels = Location,Name,Status +checks.FRU.ok_condition = "%Status%" =~ m/enabled/ +checks.FRU.output_string = FRU '%Location%/%Name%' status is '%Status%' [SunFire V210] system.match = ^System Configuration:.*Sun Fire V210