📄 rsa_str2event.c
字号:
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 shutoff due to VRM 7 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 = "04400807"; /* EN_CUTOFF_LO_FAULT_VRM7 */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Primary mode service processor"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "04000008"; /* EN_SPAR_PRIMARY_MODE */ 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 2 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 = "04300202"; /* EN_IERR_CPU2 */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Environmental Monitor ROM Error."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "18100000"; /* EN_DMC_ROM_ERROR */ strinfo->event_sev = SAHPI_MINOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "System over recommended 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 = "08035500"; /* EN_PFA_HI_FAULT_5V */ 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: ISM controller over temperature, 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 = "19A1C500"; /* EN_EXP2_CUTOFF_HI_OVER_TEMP_PLANAR */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Security: Intrusion Detect Enabled"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "00300000"; /* EN_TRIGGERED_KEYLOCK */ 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 1 -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 = "0823E001"; /* EN_FAULT_PS1_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 = "PCI Expansion Unit %s: Failure reading I2C device. Check devices on bus 11."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "1AA2000B"; /* EN_EXP3_I2C_BUS_11_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 for +5v."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "06035800"; /* EN_PFA_LO_FAULT_PLANAR_5V */ 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 over recommended voltage on +3.3v."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "08033480"; /* EN_PFA_HI_FAULT_3_35V */ 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 ambient temperature is too high."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "0001C080"; /* EN_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 = "PCI Expansion Unit %s: Fan 2 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 = "1A027802"; /* EN_EXP3_FAN2_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 = "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 = "0001C000"; /* EN_OVER_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 = "Secondary mode service processor is in standalone mode"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "0400000E"; /* EN_SPAR_STANDALONE_SECONDARY_MODE */ strinfo->event_sev = SAHPI_INFORMATIONAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Hard Drive 4 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 = "06800004"; /* EN_FAULT_DASD1_HARD_DRIVE_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 = "Processor configuration prohibits CPU 8 from operating at maximum 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 = "04200008"; /* EN_CPU_8_NOT_OPTIMAL */ strinfo->event_sev = SAHPI_INFORMATIONAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Power Supply 4 DC Good 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 = "08028004"; /* EN_FAULT_PS4_DC_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 = "System shutoff due to +12v 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 = "06036480"; /* EN_CUTOFF_HI_FAULT_12V_PLANAR */ 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 5V PCI."; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "06435500"; /* EN_PFA_HI_FAULT_5V_PCI */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "DASD 1 under recommended 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 = "0681D801"; /* EN_PFA_LO_OVER_TEMP_DASD1 */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Static partition is stopping"; strinfo = g_malloc0(sizeof(Str2EventInfoT)); if (!strinfo) { dbg("Cannot allocate memory for hash value - %s", key); rsa_str2event_hash_free(); return -1; } strinfo->event = "04000003"; /* EN_SPAR_PARTITION_STOPPING */ strinfo->event_sev = SAHPI_INFORMATIONAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "System shutoff due to +3.3V Supply 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 = "04032480"; /* EN_CPU_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 = "System shutoff due to +1.25v 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 = "08000880"; /* EN_CUTOFF_LO_FAULT_1_25V */ 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 bank 17 under recommended 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 = "0681D811"; /* EN_PFA_LO_OVER_TEMP_DASD2 */ strinfo->event_sev = SAHPI_MAJOR; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "BIOS ROM switched to default 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 = "40000200"; /* EN_DEFAULT_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 = "Power Supply 3 -12V 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 = "0823E803"; /* EN_FAULT_PS3_N12V_UNDER */ 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 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 = "1AA36900"; /* EN_EXP3_CUTOFF_LO_FAULT_12V_PLANAR */ strinfo->event_sev = SAHPI_CRITICAL; strinfo->event_ovr = OVR_SEV; strinfo->event_dup = 0; g_hash_table_insert(rsa_str2event_hash, key, strinfo); key = "Memory 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 = "05028000"; /* EN_POW_GOOD_FAULT_MEM_CARD */ 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 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 = "06801006"; /* EN_FAULT_DASD1_SCSI_ID_6 */ 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 Intrusion Detected"; 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 + -