📄 rsa_str2event.c
字号:
strinfo->event = "08200000"; /* EN_FAULT_RPS_ENTRY */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Processor Bus 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 = "04018401"; /* EN_PRI_CPU_BUS_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 = "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 = "00000067"; /* EN_MFAN */ 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 9 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 = "06800009"; /* EN_FAULT_DASD1_HARD_DRIVE_9 */ 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 1 Fault 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 = "0A026001"; /* EN_FAULT_FAN1 */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "BIOS ROM switched to alternate Boot page."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "40000201"; /* EN_ALT_BIOS_ROM_PAGE */ strinfo->event_sev = SAHPI_MINOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Installed processors are not intended for this system."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "04200000"; /* EN_CPUS_INVALID */ 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 power controller not responding."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "08020000"; /* EN_FAULT_PBP_R */ strinfo->event_sev = SAHPI_MINOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Power Supply 2 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 = "08218482"; /* EN_PS2_OVER_VOL */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "SERR on PCI 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 = "06480003"; /* EN_PCI_SERR_3 */ strinfo->event_sev = SAHPI_MINOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Invalid combination of processor VRMs, 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 = "0401E003"; /* EN_BOT_CPU_VRM_INVALID */ 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: Fan 1 Failure 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 = "19026801"; /* EN_EXP2_FAN1_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 = "Power Supply 1 5V Over Current 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 = "0821A401"; /* EN_FAULT_PS1_5V_OVR_CUR */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "VRM 8 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 = "04400008"; /* EN_FAULT_VRM8 */ 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 removal detected (SCSI ID 8)."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "0681F008"; /* EN_DASD1_REMOVED_SCSI_ID_8 */ 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 removal detected (SCSI ID 7)."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "0681F007"; /* EN_DASD1_REMOVED_SCSI_ID_7 */ 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 8 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 = "08200008"; /* EN_FAULT_PS8 */ 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 1 Under 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 = "08218881"; /* EN_PS1_UNDER_VOL */ 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 PB64B."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "06019501"; /* EN_PB64B_PFA_HI_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: +5V 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 = "19C34080"; /* EN_EXP2_FAULT_5V */ 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 CPU 1 over 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 = "0421DC81"; /* EN_CUTOFF_HI_TEMP_CPU1 */ 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: Hot Plug Switch cable 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 = "18024001"; /* EN_EXP1_HOT_PLUG_CABLE_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 = "Failure reading I2C device. Check devices on bus 12."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "0002000C"; /* EN_I2C_BUS_12_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 under recommended voltage on Processor 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 = "04019901"; /* EN_PRI_CPU_BUS_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 = "Hot plug card is not plugged in."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "06024003"; /* EN_HOT_PLUG_CARD_NP */ strinfo->event_sev = SAHPI_MINOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "+3.3V Standby Power 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 = "00028011"; /* EN_3_3V_STANDBY_PWR_GOOD_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 = "System Powered 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 = "00000080"; /* EN_SYS_POWER_OFF */ strinfo->event_sev = SAHPI_INFORMATIONAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "PERR on PCI 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 = "06500003"; /* EN_PCI_PERR_3 */ strinfo->event_sev = SAHPI_MINOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Fan 9 Failure 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 = "00026809"; /* EN_FAN9_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 = "System shutoff due to Processor bus 2 GTL+ under 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 = "04018882"; /* EN_SEC_CPU_BUS_CUT_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 = "PCI Expansion Unit %s: Power Supply 2 -12V Over Current 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 = "1AE3E002"; /* EN_EXP3_FAULT_PS2_N12V_OVR_CUR */ 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 under recommended voltage on External SCSI Terminator Power (I/O Planar)."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -