⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rsa_str2event.c

📁 HIP 硬件设备管理标准接口
💻 C
📖 第 1 页 / 共 5 页
字号:
	strinfo->event_ovr = OVR_SEV;	strinfo->event_dup = 0;	g_hash_table_insert(rsa_str2event_hash, key, strinfo);	key = "Power Supply 6 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 = "08200006"; /* EN_FAULT_PS6 */	strinfo->event_sev = SAHPI_CRITICAL;	strinfo->event_ovr = OVR_SEV;	strinfo->event_dup = 0;	g_hash_table_insert(rsa_str2event_hash, key, strinfo);	key = "PLANAR 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 = "0601C080"; /* EN_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 = "Current processor population order is not recommended. Please see system documentation.";	strinfo = g_malloc0(sizeof(Str2EventInfoT));	if (!strinfo) {		dbg("Cannot allocate memory for hash value - %s", key);		rsa_str2event_hash_free();		return -1;	}	strinfo->event = "0401E008"; /* EN_CPU_RECOMMEND_CNFG */	strinfo->event_sev = SAHPI_INFORMATIONAL;	strinfo->event_ovr = OVR_SEV;	strinfo->event_dup = 0;	g_hash_table_insert(rsa_str2event_hash, key, strinfo);	key = "12V 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 = "08036000"; /* EN_FAULT_12V */	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 Fan 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 = "08226002"; /* EN_FAULT_PS2_FAN_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 shutoff due to Memory area 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 = "0501C880"; /* EN_CUTOFF_LO_OVER_TEMP_MEM_AREA */	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 2)";	strinfo = g_malloc0(sizeof(Str2EventInfoT));	if (!strinfo) {		dbg("Cannot allocate memory for hash value - %s", key);		rsa_str2event_hash_free();		return -1;	}	strinfo->event = "06801002"; /* EN_FAULT_DASD1_SCSI_ID_2 */	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 External SCSI Terminator Power (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 = "0E618486"; /* EN_IO_EXT_SCSI_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 = "Power Supply 1 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 = "0821A001"; /* EN_FAULT_PS1_CUR_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 shutoff due to -12v 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 = "0803E800"; /* EN_CUTOFF_LO_FAULT_N12V */	strinfo->event_sev = SAHPI_CRITICAL;	strinfo->event_ovr = OVR_SEV;	strinfo->event_dup = 0;	g_hash_table_insert(rsa_str2event_hash, key, strinfo);	key = "Lower CEC +3.3V 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 = "00028006"; /* EN_3_3V_PWR_GOOD_FAULT_BOT */	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 Power 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 = "0002800F"; /* EN_PCI_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 = "PCI Expansion Unit %s: Failure reading I2C device. Check devices on bus 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 = "1BA20007"; /* EN_EXP4_I2C_BUS_7_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 = " CPU 4 Invalid Configuration.";	strinfo = g_malloc0(sizeof(Str2EventInfoT));	if (!strinfo) {		dbg("Cannot allocate memory for hash value - %s", key);		rsa_str2event_hash_free();		return -1;	}	strinfo->event = "0421E004"; /* EN_CPU4_SLOT_ERROR */	strinfo->event_sev = SAHPI_MAJOR;	strinfo->event_ovr = OVR_SEV;	strinfo->event_dup = 0;	g_hash_table_insert(rsa_str2event_hash, key, strinfo);	key = "VRM 5 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 = "04400005"; /* EN_FAULT_VRM5 */	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 +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 = "04033500"; /* EN_CPU_3_3V_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 = "System is under recommended voltage for 1.5V CPU";	strinfo = g_malloc0(sizeof(Str2EventInfoT));	if (!strinfo) {		dbg("Cannot allocate memory for hash value - %s", key);		rsa_str2event_hash_free();		return -1;	}	strinfo->event = "04241900"; /* EN_PFA_LO_1_5V_CPU */	strinfo->event_sev = SAHPI_CRITICAL;	strinfo->event_ovr = OVR_SEV;	strinfo->event_dup = 0;	g_hash_table_insert(rsa_str2event_hash, key, strinfo);	key = "The system real time clock battery is no longer reliable.";	strinfo = g_malloc0(sizeof(Str2EventInfoT));	if (!strinfo) {		dbg("Cannot allocate memory for hash value - %s", key);		rsa_str2event_hash_free();		return -1;	}	strinfo->event = "06000000"; /* EN_SYSTEM_BATTERY_FAILURE */	strinfo->event_sev = SAHPI_MINOR;	strinfo->event_ovr = OVR_SEV;	strinfo->event_dup = 0;	g_hash_table_insert(rsa_str2event_hash, key, strinfo);	key = "PERR on PCI bus 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 = "06500004"; /* EN_PCI_PERR_4 */	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 module 3 or 4 is required to power blades 5 to 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 = "00029402"; /* EN_BLADE_NO_DC_FAULT */	strinfo->event_sev = SAHPI_MINOR;	strinfo->event_ovr = OVR_SEV;	strinfo->event_dup = 0;	g_hash_table_insert(rsa_str2event_hash, key, strinfo);	key = "12V G Bus 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 = "08036007"; /* EN_FAULT_12V_G */	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 5 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 = "06800005"; /* EN_FAULT_DASD1_HARD_DRIVE_5 */	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 +2.5v 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 = "08030480"; /* EN_CUTOFF_HI_FAULT_2_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 Advanced System Management PCI Card's Continuous 5V over max allowed.";	strinfo = g_malloc0(sizeof(Str2EventInfoT));	if (!strinfo) {		dbg("Cannot allocate memory for hash value - %s", key);		rsa_str2event_hash_free();		return -1;	}	strinfo->event = "00034480"; /* EN_CUTOFF_HI_FAULT_5V_CONT */	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 PB64B 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 = "06018881"; /* EN_PB64B_CUTOFF_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 1 Removed.";	strinfo = g_malloc0(sizeof(Str2EventInfoT));	if (!strinfo) {		dbg("Cannot allocate memory for hash value - %s", key);		rsa_str2event_hash_free();		return -1;	}	strinfo->event = "0821E001"; /* EN_FAULT_PS1_REMOVED */	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 3 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 = "0A026003"; /* EN_FAULT_FAN3 */	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 3 not detected 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 = "06026003"; /* EN_FAN_3_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 = "Hard drive 3 removal 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 = "0681E003"; /* EN_DASD1_REMOVED_DRIVE_3 */	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, Upper 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 = "0401E001"; /* EN_CPU_TOP_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 = "Cable: C2 Security 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 = "002A4000"; /* EN_PRESENT_CABLE_C2 */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -