📄 rsa_str2event.c
字号:
} strinfo->event = "0E619906"; /* EN_IO_EXT_SCSI_PFA_LOW */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Power Supply 2 AC Power Removed, Early Power Off Warning"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "08180002"; /* EN_FAULT_PS2_EPOW */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "DASD controller not detected."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "0661E001"; /* EN_DASD_BP_NP */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Fan 3 Failure Single fan failure"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "00026803"; /* EN_FAN3_SPEED */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "DASD power cable not present."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "06624000"; /* EN_FAULT_DASD_PWR_CABLE */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "System shutoff due to VRM +3.3V (I/O Planar) over voltage."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "06032480"; /* EN_IO_VRM_3_3V_CUT_HI */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Failure reading I2C device. Check devices on bus 1."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "00020001"; /* EN_I2C_BUS_1_FAIL */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "System over recommended 12V_B current."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "0801B403"; /* EN_PFA_HI_EXCEDED_CUR_12V_B_MAX */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "System cutoff temperature exceed"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "00000064"; /* EN_TEMP */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Fan 2 Present Multiple fan failures"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "0009E002"; /* EN_PRESENT_FAN2 */ strinfo->event_sev = SAHPI_INFORMATIONAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Internal Error CPU 1 Fault"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "04300201"; /* EN_IERR_CPU1 */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Failure reading I2C device. Check devices on bus 6."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "00020006"; /* EN_I2C_BUS_6_FAIL */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "PCI Expansion Unit %s: +3.3v PCI over voltage, attempting power off."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "18232500"; /* EN_EXP1_CUTOFF_HI_3_35V_PCI */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "System over recommended voltage on +2.5V Regulator."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "04031500"; /* EN_CPU_2_5V_PFA_HI */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Fan 5 Outside Recommended Speed."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "000A6005"; /* EN_FAN5_PFA */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "System under recommended voltage on PB64C."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "06019902"; /* EN_PB64C_PFA_LOW_FAULT */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "PCI Expansion Unit %s: Failure reading I2C device. Check devices on bus 3."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "1BA20003"; /* EN_EXP4_I2C_BUS_3_FAIL */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "PCI Expansion Unit %s: Failure reading I2C device. Check devices on bus 0."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "19A20000"; /* EN_EXP2_I2C_BUS_0_FAIL */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Invalid CPU configuration, Lower CEC"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "0401E002"; /* EN_CPU_BOT_INV_CONFIG */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "System under recommended voltage on +3.3V Supply."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "04033900"; /* EN_CPU_3_3V_PFA_LOW */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Power Supply 3 Temperature Fault"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "0821C083"; /* EN_FAULT_PS3_OVR_TEMP */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "PCI Expansion Unit %s: Expansion system over recommended ambient temperature."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "1B01D400"; /* EN_EXP4_PFA_HI_OVER_TEMP_AMBIENT */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "System is under recommended voltage on VRM 9."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "04401809"; /* EN_PFA_LO_FAULT_VRM9 */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Hard Drive Fault (SCSI ID 4)"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "06801004"; /* EN_FAULT_DASD1_SCSI_ID_4 */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "PCI Expansion Unit %s: Power to PCI Controller Not Adequate."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "18A29002"; /* EN_EXP1_FAULT_WINN_PWR_GOOD */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Fan 2 not detected Single fan failure"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "06026002"; /* EN_FAN_2_NOT_PRESENT */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "PCI Expansion Unit %s: -12v under recommended voltage."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "1AA3F800"; /* EN_EXP3_PFA_LO_FAULT_N12V */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "PCI Expansion Unit %s: +1.8v under recommended voltage."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "1BA7B800"; /* EN_EXP4_PFA_LO_FAULT_1_8V */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "PCI Expansion Unit %s: Failure reading an I2C device, possible bus failure."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "1B020000"; /* EN_EXP4_I2C_BUS_FAIL */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Power Supply 4 5V Over Voltage Fault"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "08234484"; /* EN_FAULT_PS4_5V_OVER */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Post Fail"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "40000000"; /* EN_POST_FAIL */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "System board is over recommended temperature."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot al
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -