Browse Source

Add Ipmitool

zhangbo 4 years ago
parent
commit
67bd42b383
100 changed files with 2705 additions and 11676 deletions
  1. 1 0
      GD32F450_BMC_BaseCode.initramfs
  2. 1 0
      app/Makefile
  3. 58 26
      app/bmc/Api.c
  4. 2 1
      app/bmc/BmcType.h
  5. 1 19
      app/bmc/ChassisTimer/ChassisTimerTask.c
  6. BIN
      app/bmc/bmc_app
  7. 8 4
      app/bmc/ipmb/IPMBIfc.c
  8. 9 9
      app/bmc/lan/LANIfc.c
  9. 1 0
      app/bmc/lan/RMCP.c
  10. 696 0
      app/bmc/lan/loopback_ifc.c
  11. 3 1
      app/bmc/main.c
  12. 1 0
      app/bmc/main.h
  13. 17 17
      app/bmc/msghndlr/MsgHndlrTask.c
  14. 1 0
      app/bmc/msghndlr/OemSMMCmds/OemSMMCmds.c
  15. 5 3
      app/bmc/msghndlr/PDKCmds.c
  16. 117 19
      app/bmc/msghndlr/Storlead/Storlead.c
  17. 4 3
      app/bmc/msghndlr/Storlead/Storlead.h
  18. 5 3
      app/bmc/msghndlr/cmdselect.c
  19. 6 1
      app/bmc/readme.txt
  20. 30 30
      app/bmc/sensor_sdr.c
  21. 4 14
      app/common_include/com_BmcType.h
  22. 2 0
      app/common_include/com_IPMIDefs.h
  23. 4 3
      app/common_include/com_IPMI_Storlead.h
  24. 6 3
      app/goahead-3.6.5/src/libipmi/inc/libipmi_storlead_OEM.h
  25. 37 37
      app/goahead-3.6.5/src/libipmi/src/libipmi_storlead_OEM.c
  26. 0 0
      app/goahead-3.6.5/src/web/static/js/dashbord.js
  27. 65 41
      app/goahead-3.6.5/src/web_interface/src/dashboard.c
  28. 2 0
      app/goahead-3.6.5/src/web_interface/src/user.c
  29. BIN
      app/ipmitool-1.8.18.tar.gz
  30. 72 64
      app/ipmitool-1.8.18/Makefile
  31. 250 0
      app/ipmitool-1.8.18/config.h
  32. 0 41
      app/ipmitool-1.8.18/contrib/Makefile.am
  33. 0 550
      app/ipmitool-1.8.18/contrib/Makefile.in
  34. 0 95
      app/ipmitool-1.8.18/contrib/README
  35. 0 403
      app/ipmitool-1.8.18/contrib/bmc-snmp-proxy
  36. 0 18
      app/ipmitool-1.8.18/contrib/bmc-snmp-proxy.service
  37. 0 48
      app/ipmitool-1.8.18/contrib/bmc-snmp-proxy.sysconf
  38. 0 308
      app/ipmitool-1.8.18/contrib/bmclanconf
  39. 0 29
      app/ipmitool-1.8.18/contrib/collect_data.sh
  40. 0 40
      app/ipmitool-1.8.18/contrib/create_rrds.sh
  41. 0 211
      app/ipmitool-1.8.18/contrib/create_webpage.sh
  42. 0 151
      app/ipmitool-1.8.18/contrib/create_webpage_compact.sh
  43. 0 326
      app/ipmitool-1.8.18/contrib/exchange-bmc-os-info.init.redhat
  44. 0 13
      app/ipmitool-1.8.18/contrib/exchange-bmc-os-info.service.redhat
  45. 0 26
      app/ipmitool-1.8.18/contrib/exchange-bmc-os-info.sysconf
  46. 0 17
      app/ipmitool-1.8.18/contrib/ipmi.init.basic
  47. 0 222
      app/ipmitool-1.8.18/contrib/ipmi.init.redhat
  48. 0 92
      app/ipmitool-1.8.18/contrib/ipmievd.init.debian
  49. 0 87
      app/ipmitool-1.8.18/contrib/ipmievd.init.redhat
  50. 0 212
      app/ipmitool-1.8.18/contrib/ipmievd.init.suse
  51. 0 88
      app/ipmitool-1.8.18/contrib/log_bmc.sh
  52. 0 229
      app/ipmitool-1.8.18/contrib/oem_ibm_sel_map
  53. 0 37
      app/ipmitool-1.8.18/control/Makefile.am
  54. 0 503
      app/ipmitool-1.8.18/control/Makefile.in
  55. 0 10
      app/ipmitool-1.8.18/control/pkginfo.in
  56. 0 12
      app/ipmitool-1.8.18/control/prototype.in
  57. 0 12
      app/ipmitool-1.8.18/control/rpmmacros.in
  58. 0 8
      app/ipmitool-1.8.18/control/rpmrc
  59. 0 36
      app/ipmitool-1.8.18/doc/Makefile.am
  60. 0 611
      app/ipmitool-1.8.18/doc/Makefile.in
  61. 0 34
      app/ipmitool-1.8.18/include/Makefile.am
  62. 0 666
      app/ipmitool-1.8.18/include/Makefile.in
  63. 0 42
      app/ipmitool-1.8.18/include/ipmitool/Makefile.am
  64. 0 564
      app/ipmitool-1.8.18/include/ipmitool/Makefile.in
  65. 0 3
      app/ipmitool-1.8.18/include/ipmitool/helper.h
  66. 4 6
      app/ipmitool-1.8.18/include/ipmitool/ipmi.h
  67. 1 1
      app/ipmitool-1.8.18/include/ipmitool/ipmi_ime.h
  68. BIN
      app/ipmitool-1.8.18/ipmitool
  69. 3 3
      app/ipmitool-1.8.18/ipmitool.spec
  70. 8 0
      app/ipmitool-1.8.18/ipmitool_def.h
  71. 0 4
      app/ipmitool-1.8.18/jimbo note
  72. 0 22
      app/ipmitool-1.8.18/jimbo note.txt
  73. 1 0
      app/ipmitool-1.8.18/lib/.libs/libipmitool.la
  74. 0 50
      app/ipmitool-1.8.18/lib/Makefile.am
  75. 0 717
      app/ipmitool-1.8.18/lib/Makefile.in
  76. 2 11
      app/ipmitool-1.8.18/lib/dimm_spd.c
  77. 117 127
      app/ipmitool-1.8.18/lib/helper.c
  78. 21 20
      app/ipmitool-1.8.18/lib/hpm2.c
  79. 149 149
      app/ipmitool-1.8.18/lib/ipmi_dcmi.c
  80. 439 442
      app/ipmitool-1.8.18/lib/ipmi_ime.c
  81. 6 6
      app/ipmitool-1.8.18/lib/ipmi_oem.c
  82. 33 32
      app/ipmitool-1.8.18/lib/ipmi_raw.c
  83. 213 167
      app/ipmitool-1.8.18/lib/ipmi_sdr.c
  84. 25 25
      app/ipmitool-1.8.18/lib/ipmi_sdradd.c
  85. 93 93
      app/ipmitool-1.8.18/lib/ipmi_sel.c
  86. 54 54
      app/ipmitool-1.8.18/lib/ipmi_sensor.c
  87. 13 7
      app/ipmitool-1.8.18/lib/ipmi_vita.c
  88. 0 43
      app/ipmitool-1.8.18/src/Makefile.am
  89. 0 860
      app/ipmitool-1.8.18/src/Makefile.in
  90. 113 78
      app/ipmitool-1.8.18/src/ipmitool.c
  91. 1 0
      app/ipmitool-1.8.18/src/plugins/.libs/libintf.la
  92. 0 43
      app/ipmitool-1.8.18/src/plugins/Makefile.am
  93. 0 757
      app/ipmitool-1.8.18/src/plugins/Makefile.in
  94. 0 41
      app/ipmitool-1.8.18/src/plugins/bmc/Makefile.am
  95. 0 640
      app/ipmitool-1.8.18/src/plugins/bmc/Makefile.in
  96. 0 8
      app/ipmitool-1.8.18/src/plugins/dummy/Makefile.am
  97. 0 607
      app/ipmitool-1.8.18/src/plugins/dummy/Makefile.in
  98. 0 9
      app/ipmitool-1.8.18/src/plugins/free/Makefile.am
  99. 0 612
      app/ipmitool-1.8.18/src/plugins/free/Makefile.in
  100. 1 0
      app/ipmitool-1.8.18/src/plugins/imb/.libs/libintf_imb.la

+ 1 - 0
GD32F450_BMC_BaseCode.initramfs

@@ -160,6 +160,7 @@ file /usr/bin/updateFW_app ${INSTALL_ROOT}/projects/${SAMPLE}/app/UpdateFirmware
 file /usr/bin/i2c-scan ${INSTALL_ROOT}/projects/${SAMPLE}/app/i2c_scan/i2c-scan 755 0 0
 file /usr/bin/ncp81111_cfg ${INSTALL_ROOT}/projects/${SAMPLE}/app/NCP81111_Config/ncp81111_cfg 755 0 0
 file /usr/bin/damon.sh ${INSTALL_ROOT}/projects/${SAMPLE}/app/damon.sh 777 0 0
+file /usr/bin/ipmitool ${INSTALL_ROOT}/projects/${SAMPLE}/app/ipmitool-1.8.18/ipmitool 755 0 0
 
 dir /etc/goahead 755 0 0 
 dir /var/www 755 0 0

+ 1 - 0
app/Makefile

@@ -18,6 +18,7 @@ all	:
 	make -C ./UpdateFirmware
 	make -C ./i2c_scan
 	make -C ./NCP81111_Config
+	make -C ./ipmitool-1.8.18
 clean	: 
 	make -C ./goahead-3.6.5 clean
 	make -C ./bmc clean

+ 58 - 26
app/bmc/Api.c

@@ -47,9 +47,9 @@ int PlatformInit(void)
 	g_BMCInfo.SlotID		=	PDK_GetSlotID();
 	g_BMCInfo.ChassisID		=	PDK_GetChassisID();
 
-	g_BMCInfo.PrimaryIPMBAddr = (0x40+(g_BMCInfo.SlotID&0x1F))<<1;
-	g_BMCInfo.SecondaryIPMBAddr = (0x40+(g_BMCInfo.SlotID&0x1F))<<1;
-	//LAN
+	
+	
+	//LAN地址
 	LanInfo_T *pSetLanInfo = &g_BMCInfo.LanInfo[0];
 	strcpy(pSetLanInfo->EthName, "eth0");
 	pSetLanInfo->IPAddrSrc 	= 	0x01;	//static
@@ -82,46 +82,68 @@ int PlatformInit(void)
 	g_BMCInfo.ChassisIdentifyTimeout = 0;
 	g_BMCInfo.PowerGoodFlag =  	1;
 	g_BMCInfo.BladeManageEn = 0;
-	g_BMCInfo.isChMC 		= 0;
+	g_BMCInfo.BladeHealthSta = 1;
+	memset(g_BMCInfo.BladeName, 0, 31);
+	sprintf(g_BMCInfo.BladeName, "板卡%d", g_BMCInfo.SlotID);
 
 	switch(g_BMCInfo.SlotID)
 	{
-		// case 0x:
-		// 	g_BMCInfo.IndexInChassis = 0;
-		// 	break;
-		case 0x6:
+		case 0x1:
+			g_BMCInfo.IndexInChassis = 0;
+			break;
+		case 0x2:
 			g_BMCInfo.IndexInChassis = 1;
 			break;
-		case 0x5:
+		case 0x3:
 			g_BMCInfo.IndexInChassis = 2;
 			break;
 		case 0x4:
 			g_BMCInfo.IndexInChassis = 3;
 			break;
-		case 0x3:
+		case 0x5:
 			g_BMCInfo.IndexInChassis = 4;
 			break;
-		case 0x9:
+		case 0x6:
 			g_BMCInfo.IndexInChassis = 5;
 			break;
-		case 0xa:
+		case 0x7:
+			g_BMCInfo.IndexInChassis = 6;
+			break;
+		case 0x8:
 			g_BMCInfo.IndexInChassis = 7;
 			break;
-		case 0xb:
+		case 0x9:
 			g_BMCInfo.IndexInChassis = 8;
 			break;
+		case 0xA:
+			g_BMCInfo.IndexInChassis = 9;
+			break;
+
 		default:
-			g_BMCInfo.IndexInChassis = 0;
+			printf("\n\n\nWarning: Invalid SlotID %#x\n\n\n", g_BMCInfo.SlotID);
+			g_BMCInfo.IndexInChassis = 0xff;
+			break;
+	}
+
+	if(g_BMCInfo.SlotID == 1)
+	{
+		g_BMCInfo.isChMC 		= 1;
+		//IPMB地址
+		g_BMCInfo.PrimaryIPMBAddr = 0x20;
+		g_BMCInfo.SecondaryIPMBAddr = 0x20;
+		if(g_BMCInfo.IndexInChassis < BLADE_NUMBERS)
+		{
+			gChassisIPMBAddr[g_BMCInfo.IndexInChassis] = 0x20;
+		}
+	}
+	else
+	{
+		g_BMCInfo.isChMC 		= 0;
+		//IPMB地址
+		g_BMCInfo.PrimaryIPMBAddr = (0x40+(g_BMCInfo.SlotID&0x1F))<<1;
+		g_BMCInfo.SecondaryIPMBAddr = (0x40+(g_BMCInfo.SlotID&0x1F))<<1;
 	}
 
-	gBladeStatus[g_BMCInfo.IndexInChassis].healthStatus = 1;
-	memset(gBladeStatus[g_BMCInfo.IndexInChassis].bladeName,0,12);
-	memcpy(gBladeStatus[g_BMCInfo.IndexInChassis].bladeName,"光纤卡",12);
-	gBladeStatus[g_BMCInfo.IndexInChassis].slotID = g_BMCInfo.SlotID;
-	gBladeStatus[g_BMCInfo.IndexInChassis].pwrStatus = g_BMCInfo.PowerGoodFlag;
-	
-	gBladeStatus[g_BMCInfo.IndexInChassis].slotID = g_BMCInfo.SlotID;
-	
 	//init DevGUID
 	g_BMCInfo.DeviceGUID[0]	=	0x01;
 	g_BMCInfo.DeviceGUID[1]	=	0x01;
@@ -479,7 +501,7 @@ uint8_t PDK_GetChassisID(void)
 int PDK_PowerOffChassis(void)
 {
 	//printf("Api power off chassis\n");
-	//g_BMCInfo.PowerGoodFlag = 0;
+	g_BMCInfo.PowerGoodFlag = 0;
 	printf("Not support power control!\n");
 	return 0;
 }
@@ -487,14 +509,14 @@ int PDK_PowerOffChassis(void)
 int PDK_PowerOnChassis(void)
 {
 	//printf("power on chassis\n");
-	//g_BMCInfo.PowerGoodFlag = 1;
+	g_BMCInfo.PowerGoodFlag = 1;
 	printf("Not support power control!\n");
 }
 
 int PDK_SoftOffChassis(void)
 {
 	//printf("soft off chassis\n");
-	//g_BMCInfo.PowerGoodFlag = 0;
+	g_BMCInfo.PowerGoodFlag = 0;
 	printf("Not support power control!\n");
 }
 
@@ -775,7 +797,8 @@ int API_BridgeInternal(MsgPkt_T* pReqPkt, MsgPkt_T* pResPkt, uint8_t DestAddr, i
 			m_PendingBridgedResTbl[PBTbl][SeqNum].ChannelNum = pReqPkt->Channel; 
 			m_PendingBridgedResTbl[PBTbl][SeqNum].OriginSrc  = ORIGIN_INT_REQ;
 			g_BMCInfo.SendMsgSeqNum = SeqNum;
-			
+			printf("g_BMCInfo.SendMsgSeqNum %d\n", g_BMCInfo.SendMsgSeqNum);
+
 			/* Format Sequence Number */
 			pReqMsgHdr->RqSeqLUN = ((g_BMCInfo.SendMsgSeqNum) << 2) & 0xFC;
 			pResMsgHdr->RqSeqLUN = pReqMsgHdr->RqSeqLUN + 0x40;
@@ -841,6 +864,15 @@ int API_BridgeInternal(MsgPkt_T* pReqPkt, MsgPkt_T* pResPkt, uint8_t DestAddr, i
 	m_PendingBridgedResTbl[PBTbl][SeqNum].ResDataOk = 1;
 	
     RetVal = GetMsg (fd_BridgeQue, pResPkt, 5000);  //3s
+
+    int i;
+    printf("Bridge recv: ");
+    for(i=0;i<pResPkt->Size;i++)
+    {
+    	printf("%#x ", pResPkt->Data[i]);
+    }
+    printf("\n");
+
 	remove(BRIDGE_QUEUE);
 	pthread_mutex_unlock(&api_bridge_mutex);
 	if(RetVal != 0)

+ 2 - 1
app/bmc/BmcType.h

@@ -107,6 +107,8 @@ typedef struct
 	uint8_t				ChassisIdentifyTimeout;
 	uint8_t				ChassisIdentify;
 	uint8_t				HealthLevel;
+	uint8_t 			BladeHealthSta;	//给网页显示用的。0: 未知(灰色) 1:健康(绿色) 2:警告(黄色)3:错误(红色)
+	char 				BladeName[31];
 	
 	SensorSharedMem_T	SensorSharedMem;
 	SENSOR_T 			SenConfig;
@@ -117,7 +119,6 @@ typedef struct
 	
 	
 	uint8_t				DeviceGUID[16];
-//	OEM_FLAGS_T			OemFlags;
 	
 //	SessionInfo_T		LanSession;
 	uint8_t 			SessionHandle;

+ 1 - 19
app/bmc/ChassisTimer/ChassisTimerTask.c

@@ -46,23 +46,6 @@ void *ChassisTimerTask(void* pArg)
 
 	printf("ChassisTimerTask Started... \n");
 
-	// //create 
- //    if(-1 != access(CHASSIS_PWR_HNDLR_Q, F_OK))
- //    {
- //        remove(CHASSIS_PWR_HNDLR_Q);
- //    }
- //    if(0 != mkfifo (CHASSIS_PWR_HNDLR_Q, 0777))
- //    {
- //        printf("%s: Create %s fifo failed! %s\n", __FUNCTION__, CHASSIS_PWR_HNDLR_Q, strerror(errno));
- //        return (void*)-1;
- //    }
- //    gFd_ChassisPwrHndlrQue = open (CHASSIS_PWR_HNDLR_Q, O_RDWR);
- //    if(-1 == gFd_ChassisPwrHndlrQue)
- //    {
- //        printf("%s: Open %s fifo failed! %s\n", __FUNCTION__, CHASSIS_PWR_HNDLR_Q, strerror(errno));
- //        return (void*)-1;
- //    }
-
 	preChassisSeconds	=	g_BMCInfo.CurTimerSecond;
 	preFanSeconds	=	g_BMCInfo.CurTimerSecond;
 
@@ -116,8 +99,7 @@ void *ChassisTimerTask(void* pArg)
 			g_BMCInfo.ChassisIdentify = FALSE;
 		}
 		
-		
-		sleep(1);
+		usleep(100);
 	}
 }
 

BIN
app/bmc/bmc_app


+ 8 - 4
app/bmc/ipmb/IPMBIfc.c

@@ -267,18 +267,22 @@ ProcessIPMBReq ( MsgPkt_T* pReq)
     	if(pReq->Channel == PRIMARY_IPMB_CHANNEL)
         {
       		RetVal = GetMsg (gFd_PrimaryIpmbResQ, &ResPkt, pReq->ResTimeOut);  
-            if((pReq->Cmd == CMD_GET_SDR) && (pReq->NetFnLUN == (NETFN_STORAGE<<2)) && (pReq->Data[4] == 5))
+            if((pReq->Cmd == CMD_GET_SDR) && (pReq->NetFnLUN == (NETFN_STORAGE<<2)) 
+                && (pReq->Data[4+6] == 5))
             {
-                ResPkt.Data[3] = g_BMCInfo.PrimaryIPMBAddr;
+                ResPkt.Data[3+6] = g_BMCInfo.PrimaryIPMBAddr;
+                ResPkt.Data[ResPkt.Size-1] = CalculateCheckSum (ResPkt.Data, ResPkt.Size-1);
             }
         }
       	else
         {
       		RetVal = GetMsg (gFd_SecondaryIpmbResQ, &ResPkt, pReq->ResTimeOut);  
             //为传感器的owner ID打的补丁 
-            if((pReq->Cmd == CMD_GET_SDR) && (pReq->NetFnLUN == (NETFN_STORAGE<<2)) && (pReq->Data[4] == 5))
+            if((pReq->Cmd == CMD_GET_SDR) && (pReq->NetFnLUN == (NETFN_STORAGE<<2)) 
+                && (pReq->Data[4+6] == 5))
             {
-                ResPkt.Data[3] = g_BMCInfo.SecondaryIPMBAddr;
+                ResPkt.Data[3+6] = g_BMCInfo.SecondaryIPMBAddr;
+                ResPkt.Data[ResPkt.Size-1] = CalculateCheckSum (ResPkt.Data, ResPkt.Size-1);
             }
         }
 

+ 9 - 9
app/bmc/lan/LANIfc.c

@@ -216,14 +216,13 @@ static int InitUDPSocket(void)
     }
 
     //printf("UDP Socket %d\n", gSocket_LAN);
-
-    strcpy(UDPIfcName,"eth0");
-	
-	if (0 != setsockopt (gSocket_LAN, SOL_SOCKET,SO_BINDTODEVICE, UDPIfcName, sizeof (UDPIfcName)+1))
-	{
-		printf("LANIfc.c: SetSockOpt(SO_BINDTODEVICE) Failed for UDP Socket\n");
-		return -1;
-	}
+    //绑定网卡
+    //strcpy(UDPIfcName,"eth0");	
+	// if (0 != setsockopt (gSocket_LAN, SOL_SOCKET,SO_BINDTODEVICE, UDPIfcName, sizeof (UDPIfcName)+1))
+	// {
+	// 	printf("LANIfc.c: SetSockOpt(SO_BINDTODEVICE) Failed for UDP Socket\n");
+	// 	return -1;
+	// }
 	if (0 != setsockopt(gSocket_LAN, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, sizeof(int)))
 	{
 		printf("LANIfc.c: Setsockopt(SO_REUSEADDR) Failed for UDP socket\n");
@@ -469,6 +468,7 @@ void *RecvLANPkt(void *pArg)
         {
             if(0 ==  ReadData( &MsgPkt,gSocket_LAN))
             {
+            	//printf("---> Lan rcv: %d.%d.%d.%d:%d\n", MsgPkt.IPAddr[0],MsgPkt.IPAddr[1],MsgPkt.IPAddr[2],MsgPkt.IPAddr[3],MsgPkt.UDPPort);
                 /* Post the request packet to LAN Interface Queue */
 				if (0 != PostMsg (gFd_LanIfcQ, &MsgPkt))
 				{
@@ -512,7 +512,7 @@ int SendLANPkt (MsgPkt_T *pRes )
 	//Check the socket before send a message on a socket
 	//if (fstat(pRes->Socket, &Stat) != -1) 
 	{
-		
+		//printf("---> Lan sendto %d:%d\n", Dest.sin_addr.s_addr,Dest.sin_port);
 		ret = sendto (pRes->Socket, pRes->Data, pRes->Size, 0, (struct sockaddr*)&Dest, sizeof (Dest));
 		if (ret == -1)
 		{

+ 1 - 0
app/bmc/lan/RMCP.c

@@ -493,6 +493,7 @@ int ProcIPMIReq (  SessionInfo_T*  pSessionInfo, uint8_t Payload, MsgPkt_T *pReq
 	{
 		//FillIPMIResFailure (pReq, pRes);
 		printf("Warning: RMCP get message error!\n");
+		return -1;
 	}
 
 //	printf("===> gFd_LanResQ Recv: ");

+ 696 - 0
app/bmc/lan/loopback_ifc.c

@@ -0,0 +1,696 @@
+/****************************************************************
+ ****************************************************************
+ **                                                            **
+ **    (C)Copyright 2005-2006, American Megatrends Inc.        **
+ **                                                            **
+ **            All Rights Reserved.                            **
+ **                                                            **
+ **        6145-F, Northbelt Parkway, Norcross,                **
+ **                                                            **
+ **        Georgia - 30071, USA. Phone-(770)-246-8600.         **
+ **                                                            **
+ ****************************************************************
+ ****************************************************************/
+/*****************************************************************
+ *
+ * LANIfc.c
+ * LAN Interface Handler
+ *
+ * Author: Govind Kothandapani <govindk@ami.com>
+ *       : Bakka Ravinder Reddy <bakkar@ami.com>
+ *
+ *****************************************************************/
+#include <stdio.h>
+#include <stdint.h>
+#include <string.h>
+#include <errno.h>
+#include <pthread.h>
+#include <fcntl.h>
+#include <sys/socket.h>
+
+#include "com_IPMI_LANIfc.h"
+#include "com_IPMI_RMCP.h"
+#include "RMCP.h"
+#include "LOOPBACK_ifc.h"
+#include "com_IPMIDefs.h"
+#include "RMCP.h"
+#include "MD.h"
+#include <netdb.h>        /* getaddrinfo(3) et al.                       */
+#include <netinet/in.h>   /* sockaddr_in & sockaddr_in6 definition.      */
+#include  <net/if.h>
+#include <sys/prctl.h>
+#include "main.h"
+#include "Session.h"
+
+#define NO_OF_RETRY                     3
+#define MAX_POSSIBLE_IPMI_DATA_SIZE     1000
+#define MAX_LAN_BUFFER_SIZE             1024
+#define LAN_TIMER_INTERVAL              10
+
+#define RMCP_CLASS_MSG_OFFSET           3
+#define IPMI_MSG_AUTH_TYPE_OFFSET       4
+#define RMCP_ASF_PING_MESSAGE_LENGTH    12
+#define IPMI_MSG_LEN_OFFSET             13
+#define IPMI20_MSG_LEN_OFFSET           14
+#define RMCP_CLASS_MSG_ASF              0x06
+#define RMCP_CLASS_MSG_IPMI             0x07
+
+//static void*    LANTimer (void*);
+static void*    RecvLANPkt (void*);
+static int      SendLANPkt (MsgPkt_T *pRes );
+static void     ProcessLANReq (  MsgPkt_T* pReq);
+static void		ProcessBridgeMsg (  MsgPkt_T* pReq );
+
+static int 		InitUDPSocket(void);
+static int SetIPv4Header(int socketID);
+
+int gSocket_lo = -1;
+int gFd_LoIfcQ, gFd_LoResQ;
+
+/**
+ * @brief LAN Interface Task.
+**/
+void *LoIfcTask (void *param)
+{
+	MsgPkt_T    Req;
+	int i,BMC,Buffer = 0;
+	uint8_t ethindex=0;
+	
+	prctl(PR_SET_NAME,__FUNCTION__,0,0,0);
+	int curThreadIndex = 0;
+
+	/* Init LAN SMB */
+	printf("LoIfc Task Started... \n");
+
+	//create LAN_IFC_Q
+    if(-1 != access(LO_IFC_Q, F_OK))
+    {
+        remove(LO_IFC_Q);
+    }
+    if(0 != mkfifo (LO_IFC_Q, 0777))
+    {
+        printf("%s: Create %s fifo failed! %s\n", __FUNCTION__, LO_IFC_Q, strerror(errno));
+        return (void*)-1;
+    }
+    gFd_LoIfcQ = open (LO_IFC_Q, O_RDWR);
+    if(-1 == gFd_LoIfcQ)
+    {
+        printf("%s: Open %s fifo failed! %s\n", __FUNCTION__, LO_IFC_Q, strerror(errno));
+        return (void*)-1;
+    }
+
+	//create LAN_RES_Q
+    if(-1 != access(LO_RES_Q, F_OK))
+    {
+        remove(LO_RES_Q);
+    }
+    if(0 != mkfifo (LO_RES_Q, 0777))
+    {
+        printf("%s: Create %s fifo failed! %s\n", __FUNCTION__, LO_RES_Q, strerror(errno));
+        return (void*)-1;
+    }
+    gFd_LoResQ = open (LO_RES_Q, O_RDWR);
+    if(-1 == gFd_LoResQ)
+    {
+        printf("%s: Open %s fifo failed! %s\n", __FUNCTION__, LO_RES_Q, strerror(errno));
+        return (void*)-1;
+    }
+
+    /* Create LAN socket */
+    if(0 != Lo_InitUDPSocket())
+    {
+    	printf("%s: Create UDP socket failed! %s\n", __FUNCTION__, strerror(errno));
+    	return (void *)-1; 
+    }
+
+	/*Create a thread to recv UDS Pkt */
+	gThreadIndex++;	
+    if(0 != pthread_create(&gThreadIDs[gThreadIndex],NULL,RecvLoPkt,NULL))
+    {
+        printf("%s: Create RecvLANPkt thread failed! %s\n", __FUNCTION__, strerror(errno));
+        return (void *)-1; 
+    }
+
+	while (1)
+	{		
+		/* Wait for a message in LANIfc interface Queue */
+		if (0 != GetMsg (gFd_LoIfcQ, &Req, WAIT_INFINITE))
+		{
+			printf("LANIfc.c : Error fetching message from hLANIfc_Q\n");
+			continue;
+		}
+
+		switch (Req.Param)
+		{
+		case LAN_SMB_REQUEST :
+			ProcessLANReq (&Req);
+			break;
+
+		case BRIDGING_REQUEST :
+			ProcessBridgeMsg (&Req );
+			break;
+
+		default :
+			printf ("LOOPBACK_Ifc.c : Invalid request\n");
+			break;
+		}
+	}
+}
+
+/**
+ * @fn InitUnixDomainSocket
+ * @brief This function is used to create the Socket for each BMC
+ * @param BMCInst
+**/
+static int Lo_InitUDPSocket(void)
+{
+  	struct  sockaddr_in local;
+  	char    UDPIfcName [MAX_STR_LENGTH];
+  	int 	reuseaddr = 1;
+
+  	memset(UDPIfcName,0,sizeof(UDPIfcName));
+
+  	if(gSocket_Lo != -1)
+  	{
+  		close(gSocket_Lo);
+  		gSocket_Lo = -1;
+  	}
+
+	memset(&local, 0, sizeof(struct sockaddr_in));
+	local.sin_family = AF_INET;
+	local.sin_port = htons(623);
+	local.sin_addr.s_addr = htonl(INADDR_ANY);  
+
+    gSocket_LAN = socket(AF_INET,SOCK_DGRAM,0);
+    if(-1 == gSocket_LAN)
+    {
+        printf("LANIfc.c : Unable to create the UDP Socket\n");
+        return -1;
+    }
+
+    //printf("UDP Socket %d\n", gSocket_LAN);
+
+    strcpy(UDPIfcName,"eth0");
+	
+	if (0 != setsockopt (gSocket_LAN, SOL_SOCKET,SO_BINDTODEVICE, UDPIfcName, sizeof (UDPIfcName)+1))
+	{
+		printf("LANIfc.c: SetSockOpt(SO_BINDTODEVICE) Failed for UDP Socket\n");
+		return -1;
+	}
+	if (0 != setsockopt(gSocket_LAN, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, sizeof(int)))
+	{
+		printf("LANIfc.c: Setsockopt(SO_REUSEADDR) Failed for UDP socket\n");
+	}
+	SetIPv4Header(gSocket_LAN);
+  
+    /* Bind */
+    if (-1 == bind(gSocket_LAN,(struct sockaddr *)&local,sizeof(local)))
+    {
+        printf("LANIfc.c : Error binding  UDP Socket, %d, %s\n", errno, strerror(errno));
+        return -1;
+    }
+
+    //printf("Create UDP socket successfully, socket %d, port: %d\n", gSocket_LAN, local.sin_port);
+
+    return 0;
+}
+
+/**
+ * @fn  ReadData
+ * @brief This function receives the IPMI LAN request packets
+ *
+ * @param pMsgPkt - pointer to message packet
+ * @param Socket  - Socket handle
+**/
+static
+int  ReadData (MsgPkt_T *pMsgPkt, int Socket )
+{
+	unsigned int    SourceLen = 0,Index,SocktIndex=0,addrlen=0;
+	int 			Channel = 0;
+	uint8_t   *pData      = pMsgPkt->Data;
+	int16_t   Len         = 0;
+	uint16_t  RecvdLen    = 0;
+	uint16_t  IPMIMsgLen  = 0;
+	uint16_t  IPMIMsgOffset   = 0;
+	struct  sockaddr_in Sourcev4;
+	struct  sockaddr_in server_v4addr;
+	void *Source = NULL ;
+	void *server_addr = NULL ;
+	uint8_t  WaitCount;
+	int i;
+			
+	
+	Source = &Sourcev4;
+	SourceLen = sizeof (Sourcev4);
+	
+	//printf("ReadData:\n");
+	 //SourceLen = sizeof (Source);
+	/* Read minimum bytes to find class of message */
+	while (RecvdLen < RMCP_CLASS_MSG_OFFSET)
+	{
+		Len = recvfrom (Socket, &pData[RecvdLen], MAX_LAN_BUFFER_SIZE, 0, (struct sockaddr *)Source, &SourceLen);
+		// printf("Recv1 %d: ", Len);
+		// for(i=0;i<Len;i++)
+		// 	printf("%#x ", pData[RecvdLen+i]);
+		// printf("\n");
+
+		if ((Len >= -1) && (Len <= 0))
+		{
+			return -1;
+		}
+		RecvdLen += (uint16_t)Len;
+	}
+
+
+	/*  if RMCP Presence Ping Requested */
+	if (RMCP_CLASS_MSG_ASF == pData[RMCP_CLASS_MSG_OFFSET])
+	{
+		/* Read remaining RMCP ASF ping message */
+		while (RecvdLen < RMCP_ASF_PING_MESSAGE_LENGTH)
+		{
+			Len = recvfrom (Socket, &pData[RecvdLen], MAX_LAN_BUFFER_SIZE, 0, (struct sockaddr *)Source, &SourceLen);
+			// printf("Recv2 %d: ", Len);
+			// for(i=0;i<Len;i++)
+			// 	printf("%#x ", pData[RecvdLen+i]);
+			// printf("\n");
+			if ((Len >= -1) && (Len <= 0))
+			{
+				return -1;
+			}
+			RecvdLen += (uint16_t)Len;
+		}
+	}
+			/*else if IPMI RMCP request */
+	else if (RMCP_CLASS_MSG_IPMI == pData[RMCP_CLASS_MSG_OFFSET])
+	{
+		/* Read minimum no of bytes for IPMI Auth type offset*/
+		while (RecvdLen < IPMI_MSG_AUTH_TYPE_OFFSET)
+		{
+			Len = recvfrom (Socket, &pData[RecvdLen], MAX_LAN_BUFFER_SIZE, 0,(struct sockaddr *)Source, &SourceLen);
+			// printf("Recv3 %d: ", Len);
+			// for(i=0;i<Len;i++)
+			// 	printf("%#x ", pData[RecvdLen+i]);
+			// printf("\n");
+			if ((Len >= -1) && (Len <= 0))
+			{
+				return -1;
+			}
+			RecvdLen += (uint16_t)Len;
+		}
+		/* Get the IPMI message length offset based on format/authentication type */
+		if (pData [IPMI_MSG_AUTH_TYPE_OFFSET] == RMCP_PLUS_FORMAT)
+		{
+			IPMIMsgOffset = IPMI20_MSG_LEN_OFFSET + 1;
+		}
+		else if (pData [IPMI_MSG_AUTH_TYPE_OFFSET] == AUTH_TYPE_NONE)
+		{
+			IPMIMsgOffset = IPMI_MSG_LEN_OFFSET;
+		}
+		else
+		{
+			IPMIMsgOffset = IPMI_MSG_LEN_OFFSET + AUTH_CODE_LEN;
+		}
+
+		/* Read minimum no of bytes for IPMI message length offset*/
+		while (RecvdLen < IPMIMsgOffset)
+		{
+			Len = recvfrom (Socket, &pData[RecvdLen], MAX_LAN_BUFFER_SIZE, 0,(struct sockaddr *)Source, &SourceLen);
+			// printf("Recv4 %d: ", Len);
+			// for(i=0;i<Len;i++)
+			// 	printf("%#x ", pData[RecvdLen+i]);
+			// printf("\n");
+			if ((Len >= -1) && (Len <= 0))
+			{
+				return -1;
+			}
+			RecvdLen += (uint16_t)Len;
+		}
+
+		/* Get the IPMI message length based on RMCP format type */
+		if (pData [IPMI_MSG_AUTH_TYPE_OFFSET] == RMCP_PLUS_FORMAT)
+		{
+			IPMIMsgLen = *((uint16_t*)&pData [IPMI20_MSG_LEN_OFFSET]);
+		}
+		else
+		{
+			IPMIMsgLen = pData [IPMIMsgOffset];
+		}
+		/* We are assuming that we cannot get more than 17 K data in IPMI Msg */
+		/* This work around for fix the malformed IPMI Msg length */
+
+		if(IPMIMsgOffset > MAX_POSSIBLE_IPMI_DATA_SIZE )
+		{
+			return -1;
+		}
+		/* Read the remaining IPMI message packets */
+		WaitCount = 3;
+		while (RecvdLen < IPMIMsgLen)
+		{
+			Len = recvfrom (Socket, &pData[RecvdLen], MAX_LAN_BUFFER_SIZE, 0,(struct sockaddr *)Source, &SourceLen);
+			// printf("Recv5 %d: ", Len);
+			// for(i=0;i<Len;i++)
+			// 	printf("%#x ", pData[RecvdLen+i]);
+			// printf("\n");
+			if ((Len >= -1) && (Len <= 0))
+			{
+				if(Len == -1)
+				{
+					if(errno == EAGAIN)
+					{
+					   WaitCount--;
+					}
+					else
+					   return -1;
+				}
+				else
+					return -1;
+			}
+			if(WaitCount == 0)
+			{
+				return -1;
+			}
+			RecvdLen += (uint16_t)Len;
+		}
+	}/* else other RMCP class are not supported. */
+	else
+	{
+		printf ("Unknown RMCP class\n");
+	}
+
+	pMsgPkt->Size     = RecvdLen;
+	pMsgPkt->UDPPort  = ((struct sockaddr_in *)Source)->sin_port;
+	pMsgPkt->Socket   = Socket;
+	pMsgPkt->Channel  = LAN_RMCP_CHANNEL;
+	
+	// printf("\nLan received %d: ",RecvdLen);
+	// for(i=0;i<RecvdLen;i++)
+	// {
+	// 	printf("%#x ", pData[i]);
+	// }
+	// printf("\n");
+
+	if(SourceLen!=0) 
+	{
+		memcpy (pMsgPkt->IPAddr, &((struct sockaddr_in *)Source)->sin_addr.s_addr, sizeof (struct in_addr));
+	}
+
+	pMsgPkt->Param    = LAN_SMB_REQUEST;
+	
+	return 0;
+}
+
+void *RecvLANPkt(void *pArg)
+{
+    MsgPkt_T            MsgPkt;
+    struct timeval Timeout;
+    struct sockaddr_in local;
+    int RetVal,max,Index = 0;
+    unsigned int locallen;
+    prctl(PR_SET_NAME,__FUNCTION__,0,0,0);
+    fd_set  fds;
+
+    memset(&local,0,sizeof(local));
+
+    locallen=sizeof(local);
+
+    printf("RecvLANPkt start...\n");
+    while(1)
+    {
+        Timeout.tv_sec  =   SESSION_TIMEOUT; 
+        Timeout.tv_usec  =   0; 
+
+        FD_ZERO(&fds);
+        if(gSocket_LAN != -1)
+            FD_SET(gSocket_LAN,&fds);
+        
+        max = gSocket_LAN+1;
+
+        /*Waits for an event to occur on socket*/
+        RetVal = select (max, &fds, NULL, NULL, &Timeout);
+        if (-1 == RetVal)
+        {
+            continue;
+        }
+        if (0 == RetVal)
+        {
+            /* Its due to timeout - continue */
+            continue;
+        }
+        
+        /*Accepting Connection*/
+        if(FD_ISSET(gSocket_LAN,&fds))
+        {
+            if(0 ==  ReadData( &MsgPkt,gSocket_LAN))
+            {
+                /* Post the request packet to LAN Interface Queue */
+				if (0 != PostMsg (gFd_LanIfcQ, &MsgPkt))
+				{
+					printf ("Warning: LANIfc.c Error posting message to LANIfc Q\n");
+				}               
+            }       
+            else
+            {
+                close(gSocket_LAN);
+                gSocket_LAN = -1;
+            }      
+        }
+   }
+}
+
+/**
+ * @fn SendLANPkt
+ * @brief This function sends the IPMI LAN Response to the requester
+ * @param pRes - Response message.
+**/
+int SendLANPkt (MsgPkt_T *pRes )
+{
+	struct  sockaddr_in Dest;
+	//struct stat Stat;
+	int ret = 0;
+	
+	/* Set the destination UDP port and IP Address */
+	Dest.sin_family     =   AF_INET;
+	Dest.sin_port       =   pRes->UDPPort;
+	memcpy (&Dest.sin_addr.s_addr, pRes->IPAddr, sizeof (struct in_addr));
+	
+	/* Send the LAN response packet */
+	//int i;
+	//printf("\nLan send socket: %d, byte: %d: ", pRes->Socket, pRes->Size);
+	// for (i = 0; i < pRes->Size; ++i)
+	// {
+	// 	printf("%#x ", pRes->Data[i]);
+	// }
+	//printf("\n");
+
+	//Check the socket before send a message on a socket
+	//if (fstat(pRes->Socket, &Stat) != -1) 
+	{
+		
+		ret = sendto (pRes->Socket, pRes->Data, pRes->Size, 0, (struct sockaddr*)&Dest, sizeof (Dest));
+		if (ret == -1)
+		{
+			printf ("Warning: LANIfc.c Error sending response packets to LAN, %s\n",strerror(errno));
+		}
+		// else
+		// {
+		// 	printf ("LANIfc.c : LAN packet sent successfully\n");
+		// }
+	}
+
+	return 1;
+}
+
+
+/**
+ * @brief Process SMB Request.
+ * @param pReq - Request message.
+**/
+static void
+ProcessLANReq (  MsgPkt_T* pReq )
+{
+	MsgPkt_T        Res;
+	SessionInfo_T*  pSessionInfo;
+	SessionHdr_T*   pSessionHdr;
+	SessionHdr2_T*  pSessionHdr2;
+	uint32_t          SessionID =0;
+
+	/* Copy the request to response */
+	Res = *pReq;
+
+	/* Save the LAN header inofmation */
+	pSessionHdr  = (SessionHdr_T*) (((RMCPHdr_T*)pReq->Data) + 1);
+	pSessionHdr2 = (SessionHdr2_T*)(((RMCPHdr_T*)pReq->Data) + 1);
+	if (RMCP_PLUS_FORMAT == pSessionHdr->AuthType)
+	{
+		SessionID = pSessionHdr2->SessionID;
+		pSessionInfo = getSessionInfo (SESSION_ID_INFO, &SessionID);
+	}
+	else
+	{
+		SessionID = pSessionHdr->SessionID;
+		pSessionInfo = getSessionInfo (SESSION_ID_INFO, &SessionID );
+	}
+	if (NULL != pSessionInfo)
+	{
+		pSessionInfo->LANRMCPPkt.UDPHdr.SrcPort = Res.UDPPort;
+		pSessionInfo->hSocket                   = Res.Socket;
+		//SocktIndex=GetSocketInfoIndex(pSessionInfo->hSocket );
+		
+		memcpy (pSessionInfo->LANRMCPPkt.IPHdr.Srcv4Addr, Res.IPAddr, sizeof (struct in_addr));
+		memcpy (&pSessionInfo->LANRMCPPkt.RMCPHdr, Res.Data, sizeof (RMCPHdr_T));
+	}
+
+	/* Process the RMCP Request */
+	Res.Size = ProcessRMCPReq ((RMCPHdr_T*)pReq->Data, (RMCPHdr_T*)Res.Data);
+
+	/* ResLen is 0, don't send the packet */
+	if (0 == Res.Size )
+	{
+        printf ("Note: LANIfc.c LAN request packet dropped, not processed\n");
+	 	return;
+	}
+
+	/* Sent the response packet */
+	SendLANPkt (&Res);
+
+	return;
+}
+
+/*--------------------------------------------
+ * ProcessBridgeMsg
+ *--------------------------------------------*/
+static void
+ProcessBridgeMsg (  MsgPkt_T* pReq )
+{
+	MsgPkt_T        ResPkt;
+	uint16_t          PayLoadLen   = 0;
+	uint8_t           PayLoadType  = 0;
+	SessionInfo_T   *pSessionInfo = getSessionInfo (SESSION_HANDLE_INFO, pReq->Data);
+
+ 	//printf ("LANIfc: Bridge Request\n");
+
+	if (NULL == pSessionInfo)
+	{
+		printf ("Warning: LANIfc ProcessBridgeMsg - No Session with the LAN\n");
+		return;
+	}
+
+	/* Copy Lan RMCP headers from Session Record */
+	ResPkt.UDPPort  = pSessionInfo->LANRMCPPkt.UDPHdr.SrcPort;
+	ResPkt.Socket   = pSessionInfo->hSocket;
+	
+	memcpy (ResPkt.IPAddr, pSessionInfo->LANRMCPPkt.IPHdr.Srcv4Addr, sizeof (struct in_addr));
+	memcpy (ResPkt.Data, &pSessionInfo->LANRMCPPkt.RMCPHdr, sizeof (RMCPHdr_T));
+
+// #if IPMI20_SUPPORT == 1
+// 	if (RMCP_PLUS_FORMAT == pSessionInfo->AuthType)
+// 	{
+// 		/* Fill Session Header */
+// 		pSessionInfo->OutboundSeq++;
+// 		PayLoadLen      = pReq->Size - 1;
+// 		PayLoadType     = pReq->Cmd;
+// 		PayLoadType    |= (pSessionInfo->SessPyldInfo[PayLoadType].AuxConfig[0] & 0xC0);
+// 		PayLoadLen      = Frame20Payload (PayLoadType, (  RMCPHdr_T*)&ResPkt.Data [0],
+// 									 &pReq->Data[1], PayLoadLen, pSessionInfo );
+// 	}
+// 	else
+// #endif /*IPMI20_SUPPORT == 1*/
+	{
+		/* Fill Session Header */
+		  SessionHdr_T* pSessionHdr = (  SessionHdr_T*)(&ResPkt.Data [sizeof(RMCPHdr_T)]);
+		  uint8_t*        pPayLoad    = (  uint8_t*)(pSessionHdr + 1);
+
+		pSessionHdr->AuthType       = pSessionInfo->AuthType;
+		pSessionHdr->SessionSeqNum  = pSessionInfo->OutboundSeq++;
+		pSessionHdr->SessionID      = pSessionInfo->SessionID;
+
+		/* If AuthType is not 0 - Compute AuthCode */
+		if (0 != pSessionInfo->AuthType)
+		{
+			PayLoadLen = AUTH_CODE_LEN;
+			pPayLoad [PayLoadLen++] = pReq->Size - 1;
+			memcpy (&pPayLoad [PayLoadLen], (pReq->Data + 1), (pReq->Size - 1));
+			PayLoadLen += pReq->Size;
+			PayLoadLen--;
+			PayLoadLen += sizeof (SessionHdr_T) + sizeof (RMCPHdr_T);
+			ComputeAuthCode (pSessionInfo->Password, pSessionHdr,
+							 (  IPMIMsgHdr_T*) &pPayLoad [AUTH_CODE_LEN+1],
+							 pPayLoad, MULTI_SESSION_CHANNEL);
+		}
+		else
+		{
+		   pPayLoad [PayLoadLen++] = pReq->Size - 1;
+			/*  Fill the ipmi message */
+		   memcpy (&pPayLoad [PayLoadLen], (pReq->Data + 1), (pReq->Size - 1));
+		   PayLoadLen += pReq->Size;
+		   PayLoadLen--;
+		   PayLoadLen += sizeof (SessionHdr_T) + sizeof (RMCPHdr_T);
+		}
+
+	}
+
+	ResPkt.Size = PayLoadLen;
+
+	if(pSessionInfo->Activated)
+	{
+		/* Sent the response packet */
+		SendLANPkt (&ResPkt);
+	}
+
+	return;
+}
+
+
+// /**
+//  * @fn  LANTimer
+//  * @brief This function handles the time out for lan connections.
+//  * @param None
+// **/
+// static
+// void*  LANTimer (void *pArg)
+// {
+// 	int *inst = (int*)pArg;
+// 	int BMCInst= *inst;
+// 	prctl(PR_SET_NAME,__FUNCTION__,0,0,0);
+
+// 	while (1)
+// 	{
+// 		UpdateTimeout (BMCInst);
+// 		sleep (LAN_TIMER_INTERVAL);
+// 	}
+
+// 	return 0;
+// }
+
+
+static int SetIPv4Header(int socketID)
+{
+	uint8_t   	flag = 0;
+	uint8_t 	TimeToLive = 64;
+	//uint8_t		TypeOfService = 0;
+
+	if (setsockopt(socketID, IPPROTO_IP, IP_TTL,
+			&TimeToLive, sizeof(uint8_t)) == -1)
+	{
+		printf("LANIfc.c: Setsockopt(IP_TTL) Failed for UDP socket:");
+		return -1;
+	}
+
+	flag = 0;	/* Never send DF frames.  */
+	if (setsockopt(socketID, IPPROTO_IP, IP_MTU_DISCOVER,
+			&(flag), sizeof(uint8_t)) == -1)
+	{
+		printf("LANIfc.c: Setsockopt(IP_MTU_DISCOVER) Failed for UDP socket\n");
+		return -1;
+	}
+
+	// if (setsockopt(socketID, IPPROTO_IP, IP_TOS,
+	// 		&(pBMCInfo->LANCfs[ethIndex].Ipv4HdrParam.TypeOfService), sizeof(INT8U)) == -1)
+	// {
+	// 	printf("LANIfc.c: Setsockopt(IP_TOS) Failed for UDP socket\n");
+	// 	return -1;
+	// }
+
+	return 0;
+}
+

+ 3 - 1
app/bmc/main.c

@@ -44,6 +44,8 @@
 BMCInfo_t 	g_BMCInfo;
 pthread_t 	gThreadIDs[256];
 uint8_t		gThreadIndex = 0;
+uint8_t 	gChassisIPMBAddr[BLADE_NUMBERS] = {0x82, 0x84, 0x86, 0x88, 0x8A, 0x8C,
+											   0x8E, 0x90, 0x92, 0x94}; 
 SensorHistoryInfo_T 	gSensorHistoryInfo[SENSOR_NUMBERS];
 
 FanInfo_T	gFanInfo[FAN_NUMBERS] = {
@@ -61,7 +63,7 @@ BladeStatus_T gBladeStatus[BLADE_NUMBERS] = {
 									{ 0, "---", 0, 0},
 									{ 0, "---", 0, 0},
 									{ 0, "---", 0, 0},
-									{ 0, "test", 7, 1},
+									{ 0, "---", 0, 0},
 									{ 0, "---", 0, 0},
 									{ 0, "---", 0, 0},
 									{ 0, "---", 0, 0},

+ 1 - 0
app/bmc/main.h

@@ -123,5 +123,6 @@ extern BMCInfo_t 			g_BMCInfo;
 extern SensorHistoryInfo_T 	gSensorHistoryInfo[SENSOR_NUMBERS];
 extern FanInfo_T			gFanInfo[FAN_NUMBERS];
 extern BladeStatus_T 		gBladeStatus[BLADE_NUMBERS];
+extern uint8_t 				gChassisIPMBAddr[BLADE_NUMBERS];
 
 #endif /* __MAIN_H__ */

+ 17 - 17
app/bmc/msghndlr/MsgHndlrTask.c

@@ -266,8 +266,7 @@ ValidateMsgHdr (MsgPkt_T* pReq)
 				 }
 				 else
 				 {
-				 	printf("Unknow interface!\n");
-				 	return -1;
+				 	Queuefd = m_PendingBridgedResTbl[PBTbl][SeqNum].DestQ;
 				 }
 						
 				 /* Post the data to Destination Interface queue */
@@ -606,11 +605,7 @@ void RespondSendMessage ( MsgPkt_T* pReq, uint8_t Status)
 	int QueueFd;
 	int HdrOffset = 0;
 	
-	printf("---> RespondSendMessage Status = %d, log111\n", Status);
-	// printf("Req: SeqNum %d, NetFn %#x, Cmd %#x, ResAddr %#x\n", SeqNum, NET_FN(pIPMIReqHdr->NetFnLUN), pIPMIReqHdr->Cmd, pIPMIReqHdr->ResAddr );
-	// printf("Tbl: SeqNum %d, NetFn %#x, Cmd %#x, ResAddr %#x\n",m_PendingBridgedResTbl[PBTbl][SeqNum].SeqNum,
-	// 	NET_FN(m_PendingBridgedResTbl[PBTbl][SeqNum].ReqMsgHdr.NetFnLUN ),
-	// 	m_PendingBridgedResTbl[PBTbl][SeqNum].ReqMsgHdr.Cmd,m_PendingBridgedResTbl[PBTbl][SeqNum].ReqMsgHdr.ResAddr);
+	//printf("---> RespondSendMessage Status = %d, log111\n", Status);
   /* Check for pending responses */
 	PBTbl = ( (pReq->Channel == SECONDARY_IPMB_CHANNEL) ? SECONDARY_PB_TBL : PRIMARY_PB_TBL );
 	if ( (TRUE 		== m_PendingBridgedResTbl[PBTbl][SeqNum].Used) &&
@@ -618,7 +613,7 @@ void RespondSendMessage ( MsgPkt_T* pReq, uint8_t Status)
 		 (pIPMIReqHdr->Cmd               == m_PendingBridgedResTbl[PBTbl][SeqNum].ReqMsgHdr.Cmd) &&
 		 (pIPMIReqHdr->ResAddr           == m_PendingBridgedResTbl[PBTbl][SeqNum].ReqMsgHdr.ResAddr)  )
 	{
-		printf("---> RespondSendMessage/ m_PendingBridgedResTbl: PBTbl: %d, SeqNum %d, log222\n", PBTbl, SeqNum);
+		//printf("---> RespondSendMessage/ m_PendingBridgedResTbl: PBTbl: %d, SeqNum %d, log222\n", PBTbl, SeqNum);
 		// int i;
 		// for(i=0;i<6;i++)
 		// 	printf("%#x ", ((uint8_t*)&m_PendingBridgedResTbl[PBTbl][SeqNum].ResMsgHdr.IPMIMsgHdr)[i]);
@@ -635,7 +630,7 @@ void RespondSendMessage ( MsgPkt_T* pReq, uint8_t Status)
 			}
 		}
 
-		if((m_PendingBridgedResTbl[PBTbl][SeqNum].OriginSrc == ORIGIN_INT_REQ) && (Status = STATUS_OK))
+		if((m_PendingBridgedResTbl[PBTbl][SeqNum].OriginSrc == ORIGIN_INT_REQ) && (Status == STATUS_OK))
 		{
 			return;
 		}
@@ -650,6 +645,13 @@ void RespondSendMessage ( MsgPkt_T* pReq, uint8_t Status)
 			memcpy (pIPMIResHdr, &m_PendingBridgedResTbl[PBTbl][SeqNum].ResMsgHdr.UDSMsgHdr, sizeof (IPMIUDSMsg_T));
 			HdrOffset = sizeof(IPMIUDSMsg_T);
 		}
+		else
+		{
+			//SwapIPMIMsgHdr ( pIPMIReqHdr, pIPMIResHdr);
+		   	//QueueFd = m_PendingBridgedResTbl[PBTbl][SeqNum].DestQ;
+			memcpy (pIPMIResHdr, &m_PendingBridgedResTbl[PBTbl][SeqNum].ResMsgHdr.IPMIMsgHdr, sizeof (IPMIMsgHdr_T));
+			HdrOffset = sizeof(IPMIMsgHdr_T);
+		}
 
 		 if (STATUS_OK == Status)
 		 {
@@ -657,7 +659,6 @@ void RespondSendMessage ( MsgPkt_T* pReq, uint8_t Status)
 				 (m_PendingBridgedResTbl[PBTbl][SeqNum].DestQ == gFd_SecondaryIpmbIfcQ) ||
 				 (ORIGIN_SENDMSG != m_PendingBridgedResTbl[PBTbl][SeqNum].OriginSrc) )
 			{    
-				printf("log333!\n");
 				 return;
 			}
 				
@@ -697,8 +698,7 @@ void RespondSendMessage ( MsgPkt_T* pReq, uint8_t Status)
 		 }
 		 else
 		 {
-			printf("Unknow response interface !\n");
-			return;
+			QueueFd = m_PendingBridgedResTbl[PBTbl][SeqNum].DestQ;
 		 }
 
 		 if (STATUS_OK != Status)
@@ -708,11 +708,11 @@ void RespondSendMessage ( MsgPkt_T* pReq, uint8_t Status)
 		 }
 		 
 		 /* Post the data to Destination Interface queue */
-		 // int i;
-		 // printf("===> RespondSendMessage post to %d: ", QueueFd);
-		 // for(i=0;i<ResPkt.Size;i++)
-		 // 	printf("%#x ", ResPkt.Data[i]);
-		 // printf("\n");
+		 int i;
+		 printf("===> RespondSendMessage post to %d: ", QueueFd);
+		 for(i=0;i<ResPkt.Size;i++)
+		 	printf("%#x ", ResPkt.Data[i]);
+		 printf("\n");
 		 PostMsg (QueueFd, &ResPkt);
 	}
 }

+ 1 - 0
app/bmc/msghndlr/OemSMMCmds/OemSMMCmds.c

@@ -49,6 +49,7 @@ int  SMMExample_1h(uint8_t* pReq, uint8_t ReqLen,  uint8_t* pRes)
 	printf("Secondary IPMB Addr: %#x\n", g_BMCInfo.SecondaryIPMBAddr);
 	printf("Primary IPMB Bus:    %d\n", g_BMCInfo.IpmiConfig.PrimaryIPMBBus);
 	printf("Secondary IPMB Bus:  %d\n", g_BMCInfo.IpmiConfig.SecondaryIPMBBus);
+	printf("Module Name:         %s\n", g_BMCInfo.BladeName);
 	
 	return 	1;
 }

+ 5 - 3
app/bmc/msghndlr/PDKCmds.c

@@ -343,13 +343,15 @@ const CmdHndlrMap_T g_Storlead_CmdHndlr [] =
     { CMD_AUTHOR_VERIFY,        PRIV_USER,      Storlead_AuthorVerify,     0xff,  0xAAAA  ,0xFFFF},
     { CMD_GET_SENSOR_HISTORY,   PRIV_USER,      Storlead_GetSensorHistory,     0xff,  0xAAAA  ,0xFFFF},
     { CMD_GET_FAN_INFO,         PRIV_USER,      Storlead_GetFanInfo,         0xff,  0xAAAA  ,0xFFFF},
-    { CMD_GET_BLADE_INFO,        PRIV_USER,      Storlead_getAllBladeStatus,         0xff,  0xAAAA  ,0xFFFF},
-    { CMD_SET_MANAGE_FN,         PRIV_USER,      Storlead_SetBladeManageFn,         0xff,  0xAAAA  ,0xFFFF},     { CMD_SET_FAN_INFO,         PRIV_USER,      Storlead_SetFanInfo,         0xff,  0xAAAA  ,0xFFFF},
-    { CMD_GET_MANAGE_FN,         PRIV_USER,      Storlead_GetBladeManageFn,         0xff,  0xAAAA  ,0xFFFF},
+    { CMD_GET_ALLBLADE_INFO,        PRIV_USER,      Storlead_getAllBladeStatus,         0xff,  0xAAAA  ,0xFFFF},
+    //{ CMD_SET_MANAGE_FN,         PRIV_USER,      Storlead_SetBladeManageFn,         0xff,  0xAAAA  ,0xFFFF},     { CMD_SET_FAN_INFO,         PRIV_USER,      Storlead_SetFanInfo,         0xff,  0xAAAA  ,0xFFFF},
+    //{ CMD_GET_MANAGE_FN,         PRIV_USER,      Storlead_GetBladeManageFn,         0xff,  0xAAAA  ,0xFFFF},
     { CMD_GET_CHASSIS_INFO,      PRIV_USER,      Storlead_GetChassisInfo,         0xff,  0xAAAA  ,0xFFFF},
     { CMD_RESTORE_FACTORY_SET,      PRIV_USER,      Storlead_RestoreFactorSettings,         0xff,  0xAAAA  ,0xFFFF},
     { CMD_GET_LAN_INFO,      PRIV_USER,      Storlead_GetLanInfo,         0xff,  0xAAAA  ,0xFFFF},
     { CMD_SET_LAN_INFO,      PRIV_USER,      Storlead_SetLanInfo,         0xff,  0xAAAA  ,0xFFFF},
+    { CMD_GET_BLADE_INFO,      PRIV_USER,      Storlead_GetBladeInfo,         0xff,  0xAAAA  ,0xFFFF},
+    
      { 0x00,                     0x00,           0x00,                 0x00, 0x0000  ,  0x0000},
 };
 

+ 117 - 19
app/bmc/msghndlr/Storlead/Storlead.c

@@ -435,34 +435,114 @@ int Storlead_SetFanInfo(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
     return 1;
 }
 
+/*
+    Req[0]: ChassisManageEn
+*/
 int Storlead_getAllBladeStatus(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
 {
+    int i, index;
+    uint8_t mReq[100] = {0};
+    MsgPkt_T    ReqPkt;
+    MsgPkt_T    ResPkt;
     pRes[0] = CC_NORMAL;
+
+    if(pReq[0] == 0)
+    {
+        for(i=0;i<BLADE_NUMBERS;i++)
+        {
+            gBladeStatus[i].healthStatus = 0;
+            sprintf(gBladeStatus[i].bladeName, "---");
+            gBladeStatus[i].slotID = 0;
+            gBladeStatus[i].pwrStatus = 0;
+        }
+
+        //当前模块的信息
+        if(g_BMCInfo.IndexInChassis < BLADE_NUMBERS)
+        {
+            gBladeStatus[g_BMCInfo.IndexInChassis].healthStatus = 1;
+            memcpy(gBladeStatus[g_BMCInfo.IndexInChassis].bladeName, g_BMCInfo.BladeName, 31);
+            gBladeStatus[g_BMCInfo.IndexInChassis].slotID = g_BMCInfo.SlotID;
+            gBladeStatus[g_BMCInfo.IndexInChassis].pwrStatus = g_BMCInfo.PowerGoodFlag;
+        }
+    }
+    else
+    {
+        for(index=0;index<BLADE_NUMBERS;index++)
+        {
+            if(gChassisIPMBAddr[index] == 0x20) //chMC
+            {
+                gBladeStatus[index].healthStatus = 1;
+                memcpy(gBladeStatus[index].bladeName, g_BMCInfo.BladeName, 31);
+                gBladeStatus[index].slotID = g_BMCInfo.SlotID;
+                gBladeStatus[index].pwrStatus = g_BMCInfo.PowerGoodFlag;
+                continue;
+            }
+
+            ReqPkt.NetFnLUN  = NETFNLUN_IPMI_STORLEAD;
+            ReqPkt.Cmd       = CMD_GET_BLADE_INFO;
+            ReqPkt.Size      = 0;
+
+            if(0 == API_BridgeInternal(&ReqPkt, &ResPkt, gChassisIPMBAddr[index], PRIMARY_IPMB_CHANNEL))
+            {
+                printf("RECV: ");
+                for(i=0;i<ResPkt.Size;i++)
+                    printf("%x ", ResPkt.Data[i]);
+                printf("\n");
+
+                if(ResPkt.Data[0] == 0)
+                {
+                    printf("enter here! \n");
+                    gBladeStatus[index].healthStatus = ResPkt.Data[1];
+                    memcpy(gBladeStatus[index].bladeName, &ResPkt.Data[2], 31);
+                    gBladeStatus[index].slotID = ResPkt.Data[33];
+                    gBladeStatus[index].pwrStatus = ResPkt.Data[34];
+                }
+                else
+                {
+                    gBladeStatus[index].healthStatus = 0;
+                    sprintf(gBladeStatus[index].bladeName, "---");
+                    gBladeStatus[index].slotID = 0;
+                    gBladeStatus[index].pwrStatus = 0;
+                }
+            }
+            else
+            {
+                gBladeStatus[index].healthStatus = 0;
+                sprintf(gBladeStatus[index].bladeName, "---");
+                gBladeStatus[index].slotID = 0;
+                gBladeStatus[index].pwrStatus = 0;
+            }
+
+            
+        }
+
+    }
+
     memcpy(pRes+1, gBladeStatus, (BLADE_NUMBERS*sizeof(BladeStatus_T)));
     return 1+(BLADE_NUMBERS*sizeof(BladeStatus_T));
 }
 
-int Storlead_SetBladeManageFn(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
-{
-    if(pReq[0] > 1)
-    {
-        printf("Invalid param %d\n", pReq[0]);
-        pRes[0] = CC_PARAM_OUT_OF_RANGE;
-        return 1;
-    }
+// int Storlead_SetBladeManageFn(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
+// {
+//     if(pReq[0] > 1)
+//     {
+//         printf("Invalid param %d\n", pReq[0]);
+//         pRes[0] = CC_PARAM_OUT_OF_RANGE;
+//         return 1;
+//     }
     
-    g_BMCInfo.BladeManageEn = pReq[0];
-    pRes[0] = CC_NORMAL;
-    return 1;
-}
+//     g_BMCInfo.BladeManageEn = pReq[0];
+//     pRes[0] = CC_NORMAL;
+//     return 1;
+// }
 
-int Storlead_GetBladeManageFn(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
-{
+// int Storlead_GetBladeManageFn(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
+// {
     
-    pRes[0] = CC_NORMAL;
-    pRes[1] = g_BMCInfo.BladeManageEn;
-    return 2;
-}
+//     pRes[0] = CC_NORMAL;
+//     pRes[1] = g_BMCInfo.BladeManageEn;
+//     return 2;
+// }
 
 int Storlead_GetChassisInfo(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
 {
@@ -477,7 +557,7 @@ int Storlead_GetChassisInfo(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
     pRes[0] = CC_NORMAL;
     pRes[1] = BLADE_NUMBERS;
     pRes[2] = g_BMCInfo.isChMC;
-    pRes[3] = g_BMCInfo.BladeManageEn;
+    pRes[3] = 0;//g_BMCInfo.BladeManageEn;  //reserve
     pRes[4] = g_BMCInfo.IndexInChassis;
     return 5;
 }
@@ -564,4 +644,22 @@ int Storlead_SetLanInfo(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
     
     pRes[0] = CC_NORMAL;
     return 1;
+}
+
+/*
+    res[0]: completeCode
+    res[1]: healthStatus;   //0: 未知(灰色) 1:健康(绿色) 2:警告(黄色)3:错误(红色)
+    res[2-22]: bladeName[31];  //10个汉字或30个字符
+    res[23]: slotID;         
+    res[24]: pwrStatus;      //0:未上电(灰色)     1:已上电(绿色)
+*/
+int Storlead_GetBladeInfo(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
+{
+    pRes[0] = CC_NORMAL;
+    pRes[1] = g_BMCInfo.BladeHealthSta;
+    memcpy(&pRes[2], g_BMCInfo.BladeName, 31);
+    pRes[33] = g_BMCInfo.SlotID;
+    pRes[34] = g_BMCInfo.PowerGoodFlag;
+
+    return 35;
 }

+ 4 - 3
app/bmc/msghndlr/Storlead/Storlead.h

@@ -11,9 +11,10 @@ int Storlead_GetSensorHistory(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
 int Storlead_GetFanInfo(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
 int Storlead_SetFanInfo(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
 int Storlead_getAllBladeStatus(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
-int Storlead_SetBladeManageFn(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
-int Storlead_GetBladeManageFn(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
+//int Storlead_SetBladeManageFn(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
+//int Storlead_GetBladeManageFn(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
 int Storlead_GetChassisInfo(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
 int Storlead_RestoreFactorSettings(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
 int Storlead_GetLanInfo(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
-int Storlead_SetLanInfo(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
+int Storlead_SetLanInfo(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);
+int Storlead_GetBladeInfo(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes);

+ 5 - 3
app/bmc/msghndlr/cmdselect.c

@@ -805,13 +805,15 @@ const NetFnCmds_T g_Storlead [] =
 	{ CMD_GET_SENSOR_HISTORY          ,ENABLED},	
 	{ CMD_GET_FAN_INFO          ,ENABLED},	
 	{ CMD_SET_FAN_INFO          ,ENABLED},	
-	{ CMD_GET_BLADE_INFO          ,ENABLED},	
-	{ CMD_SET_MANAGE_FN          ,ENABLED},	
-	{ CMD_GET_MANAGE_FN          ,ENABLED},	
+	{ CMD_GET_ALLBLADE_INFO          ,ENABLED},	
+//	{ CMD_SET_MANAGE_FN          ,ENABLED},	
+//	{ CMD_GET_MANAGE_FN          ,ENABLED},	
 	{ CMD_GET_CHASSIS_INFO          ,ENABLED},	
 	{ CMD_RESTORE_FACTORY_SET          ,ENABLED},	
 	{ CMD_GET_LAN_INFO          ,ENABLED},	
 	{ CMD_SET_LAN_INFO          ,ENABLED},	
+	{ CMD_GET_BLADE_INFO          ,ENABLED},	
+
 	{0,				0		},
 };
 

+ 6 - 1
app/bmc/readme.txt

@@ -15,4 +15,9 @@
 	...
 
 4. SessionTblInfo
-	所有的当前会话信息均保存在SessionTblInfo里,Init_SessionTbl用来初始化结构体。
+	所有的当前会话信息均保存在SessionTblInfo里,Init_SessionTbl用来初始化结构体。
+
+5. 	机箱内所有刀片的IPMB地址在dashboard.c里定义,在goahead.h里声明。
+	机箱内所有刀片的IPMB地址在main.c里定义,在main.h里声明。
+
+6. 机箱管理使能改由前端网页控制,默认是打开的。网页在下发获取机箱信息的时候多下发一个参数,机箱管理是否使能。

+ 30 - 30
app/bmc/sensor_sdr.c

@@ -129,8 +129,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x80,	//Lower Non-Recoverable Threshold
 		0x80,	//Lower Critical Threshold
 		0x80,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -229,8 +229,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x00,	//Lower Non-Recoverable Threshold
 		0x00,	//Lower Critical Threshold
 		0x00,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -328,8 +328,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x0,	//Lower Non-Recoverable Threshold
 		0x0,	//Lower Critical Threshold
 		0x0,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -428,8 +428,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x0,	//Lower Non-Recoverable Threshold
 		0x0,	//Lower Critical Threshold
 		0x0,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -526,8 +526,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x80,	//Lower Non-Recoverable Threshold
 		0x80,	//Lower Critical Threshold
 		0x80,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -624,8 +624,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x00,	//Lower Non-Recoverable Threshold
 		0x00,	//Lower Critical Threshold
 		0x00,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -722,8 +722,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x80,	//Lower Non-Recoverable Threshold
 		0x80,	//Lower Critical Threshold
 		0x80,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -822,8 +822,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x00,	//Lower Non-Recoverable Threshold
 		0x00,	//Lower Critical Threshold
 		0x00,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -921,8 +921,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x0,	//Lower Non-Recoverable Threshold
 		0x0,	//Lower Critical Threshold
 		0x0,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -1021,8 +1021,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x0,	//Lower Non-Recoverable Threshold
 		0x0,	//Lower Critical Threshold
 		0x0,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -1119,8 +1119,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x80,	//Lower Non-Recoverable Threshold
 		0x80,	//Lower Critical Threshold
 		0x80,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -1217,8 +1217,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x80,	//Lower Non-Recoverable Threshold
 		0x80,	//Lower Critical Threshold
 		0x80,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -1315,8 +1315,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x80,	//Lower Non-Recoverable Threshold
 		0x80,	//Lower Critical Threshold
 		0x80,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -1413,8 +1413,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x80,	//Lower Non-Recoverable Threshold
 		0x80,	//Lower Critical Threshold
 		0x80,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM
@@ -1511,8 +1511,8 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x80,	//Lower Non-Recoverable Threshold
 		0x80,	//Lower Critical Threshold
 		0x80,	//Lower Non-Critical threshold
-		0x0,	//Positive - threshold Hysteresis value
-		0x0,	//Negative - threshold Hysteresis value
+		0x1,	//Positive - threshold Hysteresis value
+		0x1,	//Negative - threshold Hysteresis value
 		0x0,	//Reserved
 		0x0,	//Reserved
 		0x0,	//OEM

+ 4 - 14
app/common_include/com_BmcType.h

@@ -207,16 +207,6 @@ typedef struct
     int 		selalmostfull;
 } SEL_T;
 
-typedef struct {
-	uint8_t 	BladeWorkMode;
-	uint8_t 	chassisManageFnEnable;
-	uint8_t 	thisBladeIndex;
-	uint8_t 	bladeStatus;	//0: not present, 1: normal, 2: error, others: reserved.
-	uint8_t 	sensorHistoryEn;
-} OEM_FLAGS_T;
-
-
-
 typedef struct
 {
     SDRRecHdr_T    hdr;
@@ -323,10 +313,10 @@ typedef struct{
 } FanInfo_T;
 
 typedef struct{
-    uint8_t healthStatus;
-    uint8_t bladeName[12];
-    uint8_t slotID;
-    uint8_t pwrStatus;
+    uint8_t healthStatus;   //0: 未知(灰色) 1:健康(绿色) 2:警告(黄色)3:错误(红色)
+    uint8_t bladeName[31];  //10个汉字或30个字符
+    uint8_t slotID;         
+    uint8_t pwrStatus;      //0:未上电(灰色)     1:已上电(绿色)
 } BladeStatus_T;
 
 

+ 2 - 0
app/common_include/com_IPMIDefs.h

@@ -114,6 +114,8 @@
 
 #define LAN_IFC_Q   "/var/LAN_IFC_Q"
 #define LAN_RES_Q   "/var/LAN_RES_Q"
+#define LO_IFC_Q   "/var/LO_IFC_Q"
+#define LO_RES_Q   "/var/LO_RES_Q"
 
 /* ---------------------------------------------
  * IPMB

+ 4 - 3
app/common_include/com_IPMI_Storlead.h

@@ -8,13 +8,14 @@
 #define CMD_GET_SENSOR_HISTORY  0x4
 #define CMD_GET_FAN_INFO		0x5
 #define CMD_SET_FAN_INFO		0x6
-#define CMD_GET_BLADE_INFO		0x7
-#define CMD_SET_MANAGE_FN		0x8
-#define CMD_GET_MANAGE_FN		0x9
+#define CMD_GET_ALLBLADE_INFO	0x7
+//#define CMD_SET_MANAGE_FN		0x8
+//#define CMD_GET_MANAGE_FN		0x9
 #define CMD_GET_CHASSIS_INFO	0xA
 #define CMD_RESTORE_FACTORY_SET 0xB
 #define CMD_GET_LAN_INFO		0xC
 #define CMD_SET_LAN_INFO		0xD
+#define CMD_GET_BLADE_INFO		0xE
 
 
 #endif /* __COM_IPMI_STORLEAD_H__ */

+ 6 - 3
app/goahead-3.6.5/src/libipmi/inc/libipmi_storlead_OEM.h

@@ -11,6 +11,7 @@
 #include "com_BmcType.h"
 #include "libipmi_StorDevice.h"
 #include "com_IPMI_IPM.h"
+#include "com_BMCCfg.h"
 
 #define MAX_TITLE_LEN	20
 #define MAX_TEXT_LEN		256
@@ -92,6 +93,8 @@ typedef struct{
 #pragma pack()
 
 extern OemWebFlags_T g_OemWebFlags;
+extern uint8_t gIPMBAddr[BLADE_NUMBERS];
+extern uint8_t gChassisManageEn;
 //uint16_t LIBIPMI_HL_GetIPMCSensorInfo(IPMI20_UDS_SESSION_T *pUDSSession, SenInfo_T *pSensorInfo,uint32_t *nNumSensor,int timeout);
 
 uint16_t LIBIPMI_HL_SetFanInfo( IPMI20_UDS_SESSION_T *pUDSSession, uint8_t fanIndex, uint8_t fanMode, uint8_t fanLevel, int timeout);
@@ -100,10 +103,10 @@ uint16_t LIBIPMI_HL_GetSysInfo( IPMI20_UDS_SESSION_T *pUDSSession, SysInfo_T *pS
 uint16_t LIBIPMI_HL_GetSensorHistory( IPMI20_UDS_SESSION_T *pUDSSession, sensor_history_st *pSensorHistory_st, int card_index, int sensor_number, int IPMB_ADDR);
 //uint16_t LIBIPMI_HL_GetAllCards(IPMI20_UDS_SESSION_T *pUDSSession, CardStatus_T*	pResBladeSts, int timeout);
 //int	 LIBIPMI_HL_GetChassisInfo(IPMI20_UDS_SESSION_T *pUDSSession, OemChassisInfo_T* pBladeInfo, int timeout);
-int 	 LIBIPMI_HL_GetBladeStatus(IPMI20_UDS_SESSION_T *pUDSSession, BladeStatus_T* pBladeStatus, int timeout);
+int 	 LIBIPMI_HL_GetAllBladeStatus(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t chassisManageEn, BladeStatus_T* pBladeStatus, int timeout);
 //int LIBIPMI_HL_GetIPMCCapability(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t bladeIndex, OemIPMCCapability_T* pIPMCCapability, int timeout);
-int LIBIPMI_HL_SetBladeManageFn(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t enable, int timeout);
-int LIBIPMI_HL_GetBladeManageFn(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t *enable, int timeout);
+//int LIBIPMI_HL_SetBladeManageFn(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t enable, int timeout);
+//int LIBIPMI_HL_GetBladeManageFn(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t *enable, int timeout);
 int LIBIPMI_HL_GetFanInfo(IPMI20_UDS_SESSION_T *pUDSSession, FanInfo_T* pFanInfo, int timeout);
 //int LIBIPMI_HL_GetSensorHistoryCapability(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t sensorNum, SensorHistoryCapability_T* pSensorHistoryCapability, int timeout);
 //int LIBIPMI_HL_GetSensorHistoryEn(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t* SensorHistoryEnable, int timeout);

+ 37 - 37
app/goahead-3.6.5/src/libipmi/src/libipmi_storlead_OEM.c

@@ -429,14 +429,14 @@ int LIBIPMI_HL_GetChassisInfo(IPMI20_UDS_SESSION_T *pUDSSession, OemChassisInfo_
 	return 0;
 }
 
-int LIBIPMI_HL_GetBladeStatus(IPMI20_UDS_SESSION_T *pUDSSession, BladeStatus_T *BladeStatus, int timeout)
+int LIBIPMI_HL_GetAllBladeStatus(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t chassisManageEn, BladeStatus_T *BladeStatus, int timeout)
 {
 	int wRet = 0;
 	uint32_t	dwResLen;
 	uint8_t pRes[BLADE_NUMBERS*sizeof(BladeStatus_T)+1];
 	wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,  
-							NETFNLUN_IPMI_STORLEAD, CMD_GET_BLADE_INFO,
-							NULL, 0,
+							NETFNLUN_IPMI_STORLEAD, CMD_GET_ALLBLADE_INFO,
+							(uint8_t*)&chassisManageEn, 1,
 							(uint8_t*)pRes,  &dwResLen,
 							timeout);
 	if( wRet != 0 )
@@ -479,45 +479,45 @@ int LIBIPMI_HL_GetBladeStatus(IPMI20_UDS_SESSION_T *pUDSSession, BladeStatus_T *
 // 	return 0;
 // }
 
-int LIBIPMI_HL_SetBladeManageFn(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t enable, int timeout)
-{
-	int wRet = 0;
-	uint32_t	dwResLen;
-	uint8_t pReq[10];
-	uint8_t pRes[10];
+// int LIBIPMI_HL_SetBladeManageFn(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t enable, int timeout)
+// {
+// 	int wRet = 0;
+// 	uint32_t	dwResLen;
+// 	uint8_t pReq[10];
+// 	uint8_t pRes[10];
 	
-	pReq[0] = enable;
-	wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,  
-							NETFNLUN_IPMI_STORLEAD, CMD_SET_MANAGE_FN,
-							(uint8_t*)pReq,	(uint32_t)1,
-							(uint8_t*)pRes,  &dwResLen,
-							timeout);
-	if( wRet != 0 )
-			printf("Error LIBIPMI_HL_SetBladeManageFn\n");
+// 	pReq[0] = enable;
+// 	wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,  
+// 							NETFNLUN_IPMI_STORLEAD, CMD_SET_MANAGE_FN,
+// 							(uint8_t*)pReq,	(uint32_t)1,
+// 							(uint8_t*)pRes,  &dwResLen,
+// 							timeout);
+// 	if( wRet != 0 )
+// 			printf("Error LIBIPMI_HL_SetBladeManageFn\n");
 		
-	return 0;
-}
+// 	return 0;
+// }
 
-int LIBIPMI_HL_GetBladeManageFn(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t *enable, int timeout)
-{
-	int wRet = 0;
-	uint32_t	dwResLen;
-	uint8_t pRes[10];
+// int LIBIPMI_HL_GetBladeManageFn(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t *enable, int timeout)
+// {
+// 	int wRet = 0;
+// 	uint32_t	dwResLen;
+// 	uint8_t pRes[10];
 
-	wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,  
-							NETFNLUN_IPMI_STORLEAD, CMD_GET_MANAGE_FN,
-							NULL,	(uint32_t)0,
-							(uint8_t*)pRes,  &dwResLen,
-							timeout);
-	if(( wRet != 0 ) || (pRes[0] != 0))
-	{
-			printf("Error LIBIPMI_HL_SetBladeManageFn\n");
-			return -1;
-	}
+// 	wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,  
+// 							NETFNLUN_IPMI_STORLEAD, CMD_GET_MANAGE_FN,
+// 							NULL,	(uint32_t)0,
+// 							(uint8_t*)pRes,  &dwResLen,
+// 							timeout);
+// 	if(( wRet != 0 ) || (pRes[0] != 0))
+// 	{
+// 			printf("Error LIBIPMI_HL_SetBladeManageFn\n");
+// 			return -1;
+// 	}
 		
-	*enable = pRes[1];
-	return 0;
-}
+// 	*enable = pRes[1];
+// 	return 0;
+// }
 
 
 int LIBIPMI_HL_GetFanInfo(IPMI20_UDS_SESSION_T *pUDSSession, FanInfo_T* pFanInfo, int timeout)

File diff suppressed because it is too large
+ 0 - 0
app/goahead-3.6.5/src/web/static/js/dashbord.js


+ 65 - 41
app/goahead-3.6.5/src/web_interface/src/dashboard.c

@@ -10,8 +10,9 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <unistd.h>
-/*获取设备信息*/
 
+uint8_t gIPMBAddr[BLADE_NUMBERS] = {0x82, 0x84, 0x86, 0x88, 0x8A, 0x8C, 0x8E, 0x90, 0x92, 0x94};
+uint8_t gChassisManageEn = 0;
 /*获取设备信息*/
 void getDeviceInfo(Webs *wp){
     uint16_t    wRet = LIBIPMI_E_SUCCESS;
@@ -434,11 +435,10 @@ void getAllBladeInfo(Webs *wp){
     
     IPMI20_UDS_SESSION_T    UDSSession;
     BladeStatus_T   *pBladeStatus = walloc(BLADE_NUMBERS*sizeof(BladeStatus_T));
-
     //Create session
     LIBIPMI_CreateSession(&UDSSession, DEFAULT_TIMEOUT);
 
-    wRet = LIBIPMI_HL_GetBladeStatus(&UDSSession, pBladeStatus, DEFAULT_TIMEOUT);
+    wRet = LIBIPMI_HL_GetAllBladeStatus(&UDSSession, gChassisManageEn, pBladeStatus, DEFAULT_TIMEOUT);
     if(wRet != 0)
     {
         printf("Get Blade status error!\n");
@@ -487,33 +487,34 @@ void getAllBladeInfo(Webs *wp){
 }
 
 void setBladeManage(Webs *wp){
-    uint16_t    wRet = LIBIPMI_E_SUCCESS;
-    IPMI20_UDS_SESSION_T    UDSSession;
+    // uint16_t    wRet = LIBIPMI_E_SUCCESS;
+    // IPMI20_UDS_SESSION_T    UDSSession;
 
     char *strEnable = websGetVar(wp, "enable", NULL);
-    uint8_t enable = atoi(strEnable);
 
-    if(enable > 1)
-    {
-        websError(wp, 404, "Invalid param");
-        return ;
-    } 
+    gChassisManageEn = atoi(strEnable);
+
+    // if(enable > 1)
+    // {
+    //     websError(wp, 404, "Invalid param");
+    //     return ;
+    // } 
     
 
-    //Create session
-    LIBIPMI_CreateSession(&UDSSession, DEFAULT_TIMEOUT);
+    // //Create session
+    // LIBIPMI_CreateSession(&UDSSession, DEFAULT_TIMEOUT);
 
-    wRet = LIBIPMI_HL_SetBladeManageFn(&UDSSession, enable, DEFAULT_TIMEOUT);
-    if(wRet != 0)
-    {
-        printf("Set Blade Manage error!\n");
-        websError(wp, 404, "Set Blade Manage Error!");
-        LIBIPMI_CloseSession(&UDSSession );
-        return;
-    }
+    // wRet = LIBIPMI_HL_SetBladeManageFn(&UDSSession, enable, DEFAULT_TIMEOUT);
+    // if(wRet != 0)
+    // {
+    //     printf("Set Blade Manage error!\n");
+    //     websError(wp, 404, "Set Blade Manage Error!");
+    //     LIBIPMI_CloseSession(&UDSSession );
+    //     return;
+    // }
 
-    //Close session
-    LIBIPMI_CloseSession(&UDSSession );
+    // //Close session
+    // LIBIPMI_CloseSession(&UDSSession );
 
     
     char *pStr;
@@ -541,24 +542,24 @@ void setBladeManage(Webs *wp){
 }
 
 void getBladeManage(Webs *wp){
-    uint16_t    wRet = LIBIPMI_E_SUCCESS;
-    IPMI20_UDS_SESSION_T    UDSSession;
-    uint8_t     enable = 0;
+    // uint16_t    wRet = LIBIPMI_E_SUCCESS;
+    // IPMI20_UDS_SESSION_T    UDSSession;
+    // uint8_t     enable = 0;
 
-    //Create session
-    LIBIPMI_CreateSession(&UDSSession, DEFAULT_TIMEOUT);
+    // //Create session
+    // LIBIPMI_CreateSession(&UDSSession, DEFAULT_TIMEOUT);
 
-    wRet = LIBIPMI_HL_GetBladeManageFn(&UDSSession, &enable, DEFAULT_TIMEOUT);
-    if(wRet != 0)
-    {
-        printf("Set Blade Manage error!\n");
-        websError(wp, 404, "Set Blade Manage Error!");
-        LIBIPMI_CloseSession(&UDSSession );
-        return;
-    }
+    // wRet = LIBIPMI_HL_GetBladeManageFn(&UDSSession, &enable, DEFAULT_TIMEOUT);
+    // if(wRet != 0)
+    // {
+    //     printf("Set Blade Manage error!\n");
+    //     websError(wp, 404, "Set Blade Manage Error!");
+    //     LIBIPMI_CloseSession(&UDSSession );
+    //     return;
+    // }
 
-    //Close session
-    LIBIPMI_CloseSession(&UDSSession );
+    // //Close session
+    // LIBIPMI_CloseSession(&UDSSession );
 
     
     char *pStr;
@@ -568,7 +569,7 @@ void getBladeManage(Webs *wp){
     cJSON_AddStringToObject(root, "msg", "");
     cJSON_AddNumberToObject(root, "code", 200);
 
-    cJSON_AddNumberToObject(data, "isEnable", enable);  //机箱管理功能是否已经打开    
+    cJSON_AddNumberToObject(data, "isEnable", gChassisManageEn);  //机箱管理功能是否已经打开    
     
     pStr = cJSON_PrintUnformatted(root);
 
@@ -607,7 +608,30 @@ void getChassisInfo(Webs *wp){
     //Close session
     LIBIPMI_CloseSession(&UDSSession );
 
-    
+    if(ChassisInfo.supportChassisManageFn)
+    {
+        if(ChassisInfo.curIndex < BLADE_NUMBERS)
+        {
+            gIPMBAddr[ChassisInfo.curIndex] = 0x20;
+        }
+        else
+        {
+            printf("\n\n\nWarning: Invalid curIndex %d\n\n\n", ChassisInfo.curIndex);
+        }
+    }
+    else
+    {
+        gChassisManageEn = 0;
+    }
+
+    // int i;
+    // printf("IPMBAddr ");
+    // for(i=0;i<BLADE_NUMBERS;i++)
+    // {
+    //     printf("%#X ", gIPMBAddr[i]);
+    // }
+    // printf("\n");
+
     char *pStr;
     cJSON * root =  cJSON_CreateObject();
     cJSON * data =  cJSON_CreateObject();
@@ -617,7 +641,7 @@ void getChassisInfo(Webs *wp){
 
     cJSON_AddNumberToObject(data, "slotNum", ChassisInfo.slotNum);    //机箱内一共有多少个槽位
     cJSON_AddNumberToObject(data, "supportManage", ChassisInfo.supportChassisManageFn); //是否支持机箱管理功能。 0:不支持, 1:支持
-    cJSON_AddNumberToObject(data, "ManageEn", ChassisInfo.chassisManageFnEnable);   //是否打开机箱管理功能。0:关闭, 1:打开
+    cJSON_AddNumberToObject(data, "ManageEn", gChassisManageEn);   //是否打开机箱管理功能。0:关闭, 1:打开
     cJSON_AddNumberToObject(data, "curIndex", ChassisInfo.curIndex);   //当前刀片插在第几个槽位。
     
     pStr = cJSON_PrintUnformatted(root);

+ 2 - 0
app/goahead-3.6.5/src/web_interface/src/user.c

@@ -33,6 +33,8 @@ PUBLIC bool websVerifyPasswordFromBMC(Webs *wp)
     //Close session
     LIBIPMI_CloseSession(&UDSSession );
 
+    gChassisManageEn = 1;
+
     return success;
 }
 

BIN
app/ipmitool-1.8.18.tar.gz


+ 72 - 64
app/ipmitool-1.8.18/Makefile

@@ -1,64 +1,72 @@
-EXEC		:= ipmitool
-
-CFLAGS		:= -Os -mcpu=cortex-m3 -mthumb
-LDFLAGS		:= -mcpu=cortex-m3 -mthumb -L$(INSTALL_ROOT)/A2F/root/usr/lib
-
-
-
-CC	:= $(CROSS_COMPILE_APPS)gcc
-
-#source
-SRC	:= src/ipmitool.c
-SRC += src/plugins/ipmi_intf.c
-SRC += src/plugins/lan/lan.c
-SRC += src/plugins/lan/auth.c
-SRC += src/plugins/lan/md5.c
-#SRC += lib/log.c
-SRC += lib/helper.c
-SRC += lib/ipmi_strings.c
-SRC += lib/ipmi_main.c
-SRC += lib/ipmi_raw.c
-
-#SRC += lib/ipmi_delloem.c
-SRC += lib/ipmi_oem.c
-SRC += lib/ipmi_sdr.c
-#SRC += lib/ipmi_sel.c
-SRC += lib/dimm_spd.c
-SRC += lib/ipmi_sdradd.c
-SRC += lib/ipmi_sel.c
-SRC += lib/ipmi_sensor.c
-SRC += lib/ipmi_fru.c
-SRC += lib/hpm2.c
-
-
-
-
-
-#SRC += $(wildcard ./lib/*.c) 
-
-#incldue
-CFLAGS	+= -I$(INSTALL_ROOT)/A2F/root/usr/include
-CFLAGS	+= -I ./include
-CFLAGS  += -I ./src/plugins/lan
-CFLAGS  += -I ./src/plugins/bmc
-CFLAGS  += -I ./src/plugins/dummy
-CFLAGS  += -I ./src/plugins/free
-CFLAGS  += -I ./src/plugins/imb
-CFLAGS  += -I ./src/plugins/lanplus
-CFLAGS  += -I ./src/plugins/lipmi
-CFLAGS  += -I ./src/plugins/open
-CFLAGS  += -I ./src/plugins/serial
-CFLAGS  += -I ./src/plugins/usb
-
-
-
-$(EXEC): $(SRC)
-	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(LIBS) -lpthread -lm -lc
-
-
-#object
-OBJS	= $(SRC:%.c=%.o)
-clean:
-	rm -rf $(EXEC) $(OBJS)
-
-
+EXEC		= ipmitool
+
+CFLAGS		:= -Os -mcpu=cortex-m3 -mthumb
+LDFLAGS		:= -mcpu=cortex-m3 -mthumb -L$(INSTALL_ROOT)/A2F/root/usr/lib
+
+
+
+CC	= $(CROSS_COMPILE_APPS)gcc
+
+#source
+SRC	= ./src/ipmitool.c
+
+SRC += ./src/plugins/ipmi_intf.c
+SRC += ./src/plugins/lan/auth.c
+SRC += ./src/plugins/lan/md5.c
+SRC += ./src/plugins/lan/lan.c
+
+SRC += ./lib/log.c
+SRC += ./lib/helper.c
+SRC += ./lib/hpm2.c
+SRC += ./lib/dimm_spd.c
+SRC += ./lib/ipmi_strings.c
+SRC += ./lib/ipmi_sdr.c
+SRC += ./lib/ipmi_sensor.c
+SRC += ./lib/ipmi_sel.c
+SRC += ./lib/ipmi_mc.c
+SRC += ./lib/ipmi_sdradd.c
+SRC += ./lib/ipmi_oem.c
+SRC += ./lib/ipmi_fru.c
+SRC += ./lib/ipmi_raw.c
+SRC += ./lib/ipmi_main.c
+SRC += ./lib/ipmi_picmg.c
+SRC += ./lib/ipmi_vita.c
+SRC += ./lib/ipmi_kontronoem.c
+SRC += ./lib/ipmi_chassis.c
+SRC += ./lib/ipmi_user.c
+
+#incldue
+CFLAGS	+= -I$(INSTALL_ROOT)/A2F/root/usr/include
+CFLAGS	+= -I ./
+CFLAGS	+= -I ./src/plugins
+CFLAGS	+= -I ./src/plugins/bmc
+CFLAGS	+= -I ./src/plugins/dummy
+CFLAGS	+= -I ./src/plugins/free
+CFLAGS	+= -I ./src/plugins/imb
+CFLAGS	+= -I ./src/plugins/lan
+CFLAGS	+= -I ./src/plugins/lanplus
+CFLAGS	+= -I ./src/plugins/lipmi
+CFLAGS	+= -I ./src/plugins/open
+CFLAGS	+= -I ./src/plugins/serial
+CFLAGS	+= -I ./src/plugins/usb
+
+CFLAGS	+= -I ./include
+CFLAGS	+= -I ./include/ipmitool
+
+
+
+
+
+$(EXEC): $(SRC)
+	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(LIBS) -lpthread -lm -lc
+
+
+
+#object
+OBJS	:= $(SRC:%.c=%.o)
+
+clean:
+	rm -f $(EXEC) $(OBJS)
+	rm -f *.gdb
+
+

+ 250 - 0
app/ipmitool-1.8.18/config.h

@@ -0,0 +1,250 @@
+/* config.h.  Generated from config.h.in by configure.  */
+/* config.h.in.  Generated from configure.ac by autoheader.  */
+
+/* Define if building universal (internal helper macro) */
+/* #undef AC_APPLE_UNIVERSAL_BUILD */
+
+/* Define to 1 to enable all command line options. */
+#define ENABLE_ALL_OPTIONS 1
+
+/* Define to 1 for extra file security. */
+/* #undef ENABLE_FILE_SECURITY */
+
+/* Define to 1 to enable OpenIPMI interface dual bridge support */
+/* #undef ENABLE_INTF_OPEN_DUAL_BRIDGE */
+
+/* Define to 1 if you have the `alarm' function. */
+#define HAVE_ALARM 1
+
+/* Define to 1 if you have the <arpa/inet.h> header file. */
+#define HAVE_ARPA_INET_H 1
+
+/* Define to 1 if you have the <byteswap.h> header file. */
+#define HAVE_BYTESWAP_H 1
+
+/* Define to 1 if libcrypto supports MD2. */
+/* #undef HAVE_CRYPTO_MD2 */
+
+/* Define to 1 if libcrypto supports MD5. */
+/* #undef HAVE_CRYPTO_MD5 */
+
+/* Define to 1 if libcrypto supports SHA256. */
+/* #undef HAVE_CRYPTO_SHA256 */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define to 1 if you have the <sys/ipmi.h> header file. */
+/* #undef HAVE_FREEBSD_IPMI_H */
+
+/* Define to 1 if you have the `getaddrinfo' function. */
+#define HAVE_GETADDRINFO 1
+
+/* Define to 1 if you have the `gethostbyname' function. */
+#define HAVE_GETHOSTBYNAME 1
+
+/* Define to 1 if you have the `getifaddrs' function. */
+#define HAVE_GETIFADDRS 1
+
+/* Define to 1 if you have the `getpassphrase' function. */
+/* #undef HAVE_GETPASSPHRASE */
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the <linux/compiler.h> header file. */
+/* #undef HAVE_LINUX_COMPILER_H */
+
+/* Define to 1 if you have the `memmove' function. */
+#define HAVE_MEMMOVE 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the `memset' function. */
+#define HAVE_MEMSET 1
+
+/* Define to 1 if you have the <netdb.h> header file. */
+#define HAVE_NETDB_H 1
+
+/* Define to 1 if you have the <netinet/in.h> header file. */
+#define HAVE_NETINET_IN_H 1
+
+/* Define to 1 if you have the <linux/ipmi.h> header file. */
+#define HAVE_OPENIPMI_H 1
+
+/* Define to 1 if you have the <paths.h> header file. */
+#define HAVE_PATHS_H 1
+
+/* Define to 1 if you need to use #pragma pack instead of __attribute__
+   ((packed)) */
+#define HAVE_PRAGMA_PACK 1
+
+/* Define to 1 if readline present. */
+/* #undef HAVE_READLINE */
+
+/* Define to 1 if you have the `select' function. */
+#define HAVE_SELECT 1
+
+/* Define to 1 if you have the `socket' function. */
+#define HAVE_SOCKET 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the `strchr' function. */
+#define HAVE_STRCHR 1
+
+/* Define to 1 if you have the `strdup' function. */
+#define HAVE_STRDUP 1
+
+/* Define to 1 if you have the `strerror' function. */
+#define HAVE_STRERROR 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/byteorder.h> header file. */
+/* #undef HAVE_SYS_BYTEORDER_H */
+
+/* Define to 1 if you have the <sys/ioccom.h> header file. */
+/* #undef HAVE_SYS_IOCCOM_H */
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#define HAVE_SYS_IOCTL_H 1
+
+/* Define to 1 if you have the <sys/select.h> header file. */
+#define HAVE_SYS_SELECT_H 1
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+#define HAVE_SYS_SOCKET_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have <sys/termios.h>. */
+/* #undef HAVE_SYS_TERMIOS_H */
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have <termios.h>. */
+#define HAVE_TERMIOS_H 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 to enable Solaris 10 BMC interface. */
+/* #undef IPMI_INTF_BMC */
+
+/* Define to 1 to enable Dummy interface. */
+/* #undef IPMI_INTF_DUMMY */
+
+/* Define to 1 to enable FreeIPMI interface. */
+/* #undef IPMI_INTF_FREE */
+
+/* Define to 1 for FreeIPMI 0.3.0. */
+/* #undef IPMI_INTF_FREE_0_3_0 */
+
+/* Define to 1 for FreeIPMI 0.4.0. */
+/* #undef IPMI_INTF_FREE_0_4_0 */
+
+/* Define to 1 for FreeIPMI 0.5.0. */
+/* #undef IPMI_INTF_FREE_0_5_0 */
+
+/* Define to 1 for FreeIPMI 0.6.0. */
+/* #undef IPMI_INTF_FREE_0_6_0 */
+
+/* Define to 1 to enable FreeIPMI Bridging Support. */
+/* #undef IPMI_INTF_FREE_BRIDGING */
+
+/* Define to 1 to enable Intel IMB interface. */
+/* #undef IPMI_INTF_IMB */
+
+/* Define to 1 to enable LAN IPMIv1.5 interface. */
+#define IPMI_INTF_LAN 1
+
+/* Define to 1 to enable LAN+ IPMIv2 interface. */
+/* #undef IPMI_INTF_LANPLUS */
+
+/* Define to 1 to enable Solaris 9 LIPMI interface. */
+/* #undef IPMI_INTF_LIPMI */
+
+/* Define to 1 to enable Linux OpenIPMI interface. */
+/* #undef IPMI_INTF_OPEN */
+
+/* Define to 1 to enable serial interface. */
+/* #undef IPMI_INTF_SERIAL */
+
+/* Define to 1 to enable USB interface. */
+/* #undef IPMI_INTF_USB */
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+   */
+#define LT_OBJDIR ".libs/"
+
+/* Name of package */
+#define PACKAGE "ipmitool"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT ""
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "ipmitool"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "ipmitool 1.8.18"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "ipmitool"
+
+/* Define to the home page for this package. */
+#define PACKAGE_URL ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "1.8.18"
+
+/* Define to the type of arg 1 for `select'. */
+#define SELECT_TYPE_ARG1 int
+
+/* Define to the type of args 2, 3 and 4 for `select'. */
+#define SELECT_TYPE_ARG234 (fd_set *)
+
+/* Define to the type of arg 5 for `select'. */
+#define SELECT_TYPE_ARG5 (struct timeval *)
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Version number of package */
+#define VERSION "1.8.18"
+
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+   significant byte first (like Motorola and SPARC, unlike Intel). */
+#if defined AC_APPLE_UNIVERSAL_BUILD
+# if defined __BIG_ENDIAN__
+#  define WORDS_BIGENDIAN 1
+# endif
+#else
+# ifndef WORDS_BIGENDIAN
+/* #  undef WORDS_BIGENDIAN */
+# endif
+#endif
+
+/* Define to empty if `const' does not conform to ANSI C. */
+/* #undef const */
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+   calls it, or to nothing if 'inline' is not supported under any name.  */
+#ifndef __cplusplus
+/* #undef inline */
+#endif

+ 0 - 41
app/ipmitool-1.8.18/contrib/Makefile.am

@@ -1,41 +0,0 @@
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-MAINTAINERCLEANFILES	= Makefile.in
-
-dist_pkgdata_DATA = oem_ibm_sel_map
-
-EXTRA_DIST = README \
-	bmclanconf ipmi.init.basic ipmi.init.redhat \
-	exchange-bmc-os-info.init.redhat exchange-bmc-os-info.service.redhat \
-	exchange-bmc-os-info.sysconf log_bmc.sh\
-	ipmievd.init.redhat ipmievd.init.suse ipmievd.init.debian \
-	collect_data.sh create_rrds.sh create_webpage_compact.sh create_webpage.sh \
-	bmc-snmp-proxy bmc-snmp-proxy.service bmc-snmp-proxy.sysconf

+ 0 - 550
app/ipmitool-1.8.18/contrib/Makefile.in

@@ -1,550 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = contrib
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
-	$(dist_pkgdata_DATA) README
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-SOURCES =
-DIST_SOURCES =
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
-    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
-    *) f=$$p;; \
-  esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
-  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
-  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
-  for p in $$list; do echo "$$p $$p"; done | \
-  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
-  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
-    if (++n[$$2] == $(am__install_max)) \
-      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
-    END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
-  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
-  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
-  test -z "$$files" \
-    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
-    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
-         $(am__cd) "$$dir" && rm -f $$files; }; \
-  }
-am__installdirs = "$(DESTDIR)$(pkgdatadir)"
-DATA = $(dist_pkgdata_DATA)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-ARCH = @ARCH@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BASEDIR = @BASEDIR@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DISTRO = @DISTRO@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTF_BMC = @INTF_BMC@
-INTF_BMC_LIB = @INTF_BMC_LIB@
-INTF_DUMMY = @INTF_DUMMY@
-INTF_DUMMY_LIB = @INTF_DUMMY_LIB@
-INTF_FREE = @INTF_FREE@
-INTF_FREE_LIB = @INTF_FREE_LIB@
-INTF_IMB = @INTF_IMB@
-INTF_IMB_LIB = @INTF_IMB_LIB@
-INTF_LAN = @INTF_LAN@
-INTF_LANPLUS = @INTF_LANPLUS@
-INTF_LANPLUS_LIB = @INTF_LANPLUS_LIB@
-INTF_LAN_LIB = @INTF_LAN_LIB@
-INTF_LIPMI = @INTF_LIPMI@
-INTF_LIPMI_LIB = @INTF_LIPMI_LIB@
-INTF_OPEN = @INTF_OPEN@
-INTF_OPEN_LIB = @INTF_OPEN_LIB@
-INTF_SERIAL = @INTF_SERIAL@
-INTF_SERIAL_LIB = @INTF_SERIAL_LIB@
-INTF_USB = @INTF_USB@
-INTF_USB_LIB = @INTF_USB_LIB@
-IPMITOOL_INTF_LIB = @IPMITOOL_INTF_LIB@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS = @OS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-POW_LIB = @POW_LIB@
-PSTAMP = @PSTAMP@
-RANLIB = @RANLIB@
-RPMBUILD = @RPMBUILD@
-RPM_RELEASE = @RPM_RELEASE@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_configure_args = @ac_configure_args@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-MAINTAINERCLEANFILES = Makefile.in
-dist_pkgdata_DATA = oem_ibm_sel_map
-EXTRA_DIST = README \
-	bmclanconf ipmi.init.basic ipmi.init.redhat \
-	exchange-bmc-os-info.init.redhat exchange-bmc-os-info.service.redhat \
-	exchange-bmc-os-info.sysconf log_bmc.sh\
-	ipmievd.init.redhat ipmievd.init.suse ipmievd.init.debian \
-	collect_data.sh create_rrds.sh create_webpage_compact.sh create_webpage.sh \
-	bmc-snmp-proxy bmc-snmp-proxy.service bmc-snmp-proxy.sysconf
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign contrib/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign contrib/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-install-dist_pkgdataDATA: $(dist_pkgdata_DATA)
-	@$(NORMAL_INSTALL)
-	@list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
-	if test -n "$$list"; then \
-	  echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \
-	  $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \
-	fi; \
-	for p in $$list; do \
-	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-	  echo "$$d$$p"; \
-	done | $(am__base_list) | \
-	while read files; do \
-	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \
-	  $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \
-	done
-
-uninstall-dist_pkgdataDATA:
-	@$(NORMAL_UNINSTALL)
-	@list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
-	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
-	dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir)
-tags TAGS:
-
-ctags CTAGS:
-
-cscope cscopelist:
-
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-am
-all-am: Makefile $(DATA)
-installdirs:
-	for dir in "$(DESTDIR)$(pkgdatadir)"; do \
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
-	done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic clean-libtool mostlyclean-am
-
-distclean: distclean-am
-	-rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-dist_pkgdataDATA
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-dist_pkgdataDATA
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-am clean clean-generic clean-libtool \
-	cscopelist-am ctags-am distclean distclean-generic \
-	distclean-libtool distdir dvi dvi-am html html-am info info-am \
-	install install-am install-data install-data-am \
-	install-dist_pkgdataDATA install-dvi install-dvi-am \
-	install-exec install-exec-am install-html install-html-am \
-	install-info install-info-am install-man install-pdf \
-	install-pdf-am install-ps install-ps-am install-strip \
-	installcheck installcheck-am installdirs maintainer-clean \
-	maintainer-clean-generic mostlyclean mostlyclean-generic \
-	mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
-	uninstall-am uninstall-dist_pkgdataDATA
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:

+ 0 - 95
app/ipmitool-1.8.18/contrib/README

@@ -1,95 +0,0 @@
-
-Graphs for ipmitool
--------------------
-
-This is a set of shell-scripts to quickly create a webpage with pretty graphs!
-
-Prerequisites are a webserver with cgi-bin support and RRDtool, a data
-collection and graphing utility you can get here:
-
-http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
-
-
-First, decide on a directory where to store the RRDtool database files and make
-sure it exists. The user that will run the cronjob to collect updates must have
-write permissions in this dir.
-
-Next, you'll need to edit some variables at the top of each script.
-
-Common to all scripts:
-
-hostname	Override this if you are collecting data from a remote host,
-		or if the $HOSTNAME variable is incorrect. 
-
-ipmi_cmd	Command line used to call ipmitool. Default is to collect
-		data from the local server using OpenIPMI.
-
-		If you want to collect data from a remote host, add the
-		-I lan, -H, -U and -P options as necessary.
-
-		BIG NOTE! I do not recommend using remote data collection since
-		you'll have to store the password in the script. If you do,
-		make sure unauthorized people can't read or execute the scripts
-		or they'll be able to wreak havoc on your server.
-
-rrd_dir		Enter the dir where to store the RRDtool database here.
-
-
-Now you can get the data collection going. Run create_rrds.sh to create the
-RDDtool database, you'll find one .rrd file per sensor in the designated dir.
-Add a line to your crontab that executes collect_data.sh every 5 minutes.
-
-Something like this:
-*/5 * * * * /usr/local/bin/collect_data.sh
-
-If you are a Solaris user you'll have to write the more verbose:
-0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/collect_data.sh
-
-
-Finally it's time to create the webpage, begin with editing some more variables
-in the create_webpage.sh and/or create_webpage_compact.sh scripts:
-
-rrdcgi		Full path to the rrdcgi executable.
-
-img_dir		Directory to store the graph images. This path must be within
-		the document root and writable by the web server user.
-
-		Example: /usr/local/apache2/htdocs/images/graphs
-
-web_dir		Relative path of the URL where the images will show up
-		on the web server.
-
-		Example: With the img_dir path above the corresponding web_dir
-		would be /images/graphs
-
-graph_width	Size of the graph area in pixels (excluding title, legends etc.)
-graph_height
-
-graph_daily	Decide which of daily, weekly and monthly graphs you want
-graph_weekly	included on the page.
-graph_monthly
-
-
-Finally run the create webpage script and store the output as a cgi-script and
-don't forget to make it executable.
-
-Example:
-
-create_webpage.sh > /usr/local/apache2/cgi-bin/my_ipmi_graphs.cgi
-chmod 755 /usr/local/apache2/cgi-bin/my_ipmi_graphs.cgi
-
-Now you can surf to http://my.server.com/cgi-bin/my_ipmi_graphs.cgi and enjoy!
-
-
-The difference between create_webpage.sh and create_webpage_compact.sh is that
-the first script displays sensor thresholds in the graphs. The second script
-collects all sensors that measure the same unit into the same graph thus
-producing a lot fewer graphs.
-
-Note, RRDtool sometimes scales the graphs such that the sensor thresholds
-fall outside the visible area.
-
-
-Happy graphing!
-
-

+ 0 - 403
app/ipmitool-1.8.18/contrib/bmc-snmp-proxy

@@ -1,403 +0,0 @@
-#!/bin/sh
-#############################################################################
-#
-# bmc-snmp-proxy:	Set SNMP proxy to BMC (Baseboard Management Controller)
-#
-# version:	0.62
-#
-# Authors:	Charles Rose <charles_rose@dell.com>
-#		Jordan Hargrave <jordan_hargrave@dell.com>
-#
-# Description:  Script to set snmp proxy to the BMC for certain OID
-#		See here for details:
-#		https://fedoraproject.org/wiki/Features/AgentFreeManagement
-#
-# Assumptions:  This script will work only when /etc/snmp/ is writable.
-#
-#############################################################################
-# GLOBALS
-#############################################################################
-SYSCONF_DIR="/etc/sysconfig"
-CONFIG="${SYSCONF_DIR}/bmc-snmp-proxy"
-
-SNMPD_BMC_CONF_DIR="/etc/snmp/bmc"
-SNMPD_BMC_CONF="${SNMPD_BMC_CONF_DIR}/snmpd.local.conf"
-TRAPD_BMC_CONF="${SNMPD_BMC_CONF_DIR}/snmptrapd.local.conf"
-
-TRAPD_CONF="/etc/snmp/snmptrapd.conf"
-
-LOCKFILE="/var/lock/subsys/bmc-snmp-proxy"
-BMC_INFO="/var/run/bmc-info"
-
-IPMITOOL=`which ipmitool`
-
-#Default config
-BMC_COMMUNITY="public"
-BMC_OID=".1.3.6.1.4.1.674.10892.2"  # Dell iDRAC
-TRAP_FORWARD="no"
-RELOAD_SERVICES="yes"
-
-#############################################################################
-
-#TODO: Use inotify and daemonize when $BMC_INFO changes
-
-# source config
-[ -r ${CONFIG} ] && . ${CONFIG}
-
-. gettext.sh
-
-SCRIPT_NAME=$(basename $0)
-RETVAL=0
-
-# Check if bmc-info created by exchange-bmc-os-info
-bmc_info_exists()
-{
-	if [ -r "${BMC_INFO}" ]; then
-		. ${BMC_INFO}
-	else
-		RETVAL=2
-	fi
-
-	return $RETVAL
-}
-
-check_snmp()
-{
-	if [ ! -d /etc/snmp ] || [ ! -x /usr/sbin/snmpd ]; then
-		RETVAL=12
-	fi
-
-	return $RETVAL
-}
-
-#############################################################################
-# configure SNMP proxy
-#############################################################################
-write_snmp_conf()
-{
-	# SNMPv3 security: bmcview, bmc_ctx, bmc_sec, bmc_grp, bmc_cmty
-	printf "###############################################\n"
-	printf "# Automatically created by %s #\n" "${SCRIPT_NAME}"
-	printf "###############################################\n"
-	printf "#view bmcview included %s 80\n" "${BMC_OID}"
-	printf "#com2sec -Cn bmc_ctx bmc_sec default bmc_cmty\n"
-	printf "#group bmc_grp v1 bmc_sec\n"
-	printf "#access bmc_grp bmc_ctx any noauth exact bmcview none none\n"
-	printf "#proxy -Cn bmc_ctx -v 1 %s\n" "${PROXY_TOKEN}"
-	printf "proxy -v 1 %s\n" "${PROXY_TOKEN}"
-	printf "###############################################\n"
-}
-
-valid_ip()
-{
-        #Thanks to mkyong.com
-        octet="([01]?[[:digit:]][[:digit:]]?|2[0-4][[:digit:]]|25[0-5])"
-
-        printf -- "%s" "${1}"| grep -Eq \
-		"^${octet}\\.${octet}\\.${octet}\\.${octet}$"
-
-        return $?
-}
-
-check_vars()
-{
-	[ -z ${BMC_COMMUNITY} ] && BMC_COMMUNITY="public"
-	[ -z ${BMC_OID} ] && return 1
-
-	if [ -n "${BMC_IPv4}" ] && valid_ip ${BMC_IPv4}; then
-		return 0
-	else
-		return 1
-	fi
-}
-
-set_snmp_proxy()
-{
-	if check_vars; then
-		PROXY_TOKEN="-c ${BMC_COMMUNITY} ${BMC_IPv4} ${BMC_OID}"
-
-		if [ -d ${SNMPD_BMC_CONF_DIR} ]; then
-			write_snmp_conf > ${SNMPD_BMC_CONF} || RETVAL=4
-		fi
-	else
-		RETVAL=3
-	fi
-}
-
-set_snmpd_conf_path()
-{
-	if [ ! -d ${SNMPD_BMC_CONF_DIR} ]; then
-		mkdir ${SNMPD_BMC_CONF_DIR} || RETVAL=7
-	fi
-
-	# We need SNMPCONFPATH set for both snmpd and snmptrapd
-	for sysconf in ${SYSCONF_DIR}/snmp*d;
-	do
-		if ! grep -q "^SNMPCONFPATH.*${SNMPD_BMC_CONF_DIR}" \
-			"${sysconf}" > /dev/null 2>&1; then
-			printf "SNMPCONFPATH=/etc/snmp:%s\n" \
-				"${SNMPD_BMC_CONF_DIR}" >> ${sysconf} || \
-				RETVAL=7
-		fi
-	done
-
-	return $RETVAL
-}
-
-disable_snmp_proxy()
-{
-	if [ -f ${SNMPD_BMC_CONF} ]; then
-		rm -f ${SNMPD_BMC_CONF} || RETVAL=5
-	fi
-}
-#############################################################################
-# Trap Forwarding
-#############################################################################
-
-pick_alert_dest()
-{
-	test_ip="$1"
-	# We have 4 IPv4 and 4 IPv6 alert dest. We will set IPv4 for now.
-	for ALERT_DEST in `seq 1 4`
-	do
-		temp_ip=$(${IPMITOOL} lan alert print ${CHANNEL} ${ALERT_DEST}\
-			2>/dev/null| sed -n "s#^Alert IP Address.*: ##p")
-
-		[ "${temp_ip}" = "${test_ip}" ] && return 0
-	done
-	return 1
-}
-
-set_alert_dest_ip()
-{
-	${IPMITOOL} lan alert set ${CHANNEL} ${ALERT_DEST} ipaddr ${1} \
-		retry 4 type pet >/dev/null 2>&1 || RETVAL=8
-}
-
-config_bmc_alert_dest()
-{
-	# call with enable|disable
-	# Pick the first active LAN channel
-        for CHANNEL in `seq 1 14`
-        do
-                [ $(${IPMITOOL} -I open channel info ${CHANNEL} 2>/dev/null \
-                        | grep -q "802\.3") ] || break
-        done
-
-	# If TRAPD_IP is already set as an alert dest,
-	if pick_alert_dest "${TRAPD_IP}"; then
-		# disable: reset it if we are called with disable
-		[ "${1}" = "disable" ] && \
-			set_alert_dest_ip "0.0.0.0"
-	# else, find the next free alert dest,
-	elif pick_alert_dest "0.0.0.0"; then
-		[ "${1}" = "disable" ] && \
-			return $RETVAL
-		# set: the TRAPD_IP
-		set_alert_dest_ip "${TRAPD_IP}"
-	else
-		# No free alert destinations
-		RETVAL=9
-	fi
-
-	return $RETVAL
-}
-
-set_ipmi_pef()
-{
-	# Needs ipmitool-1.8.13 + patches
-	${IPMITOOL} pef policy set ${ALERT_DEST} "${1}" >/dev/null 2>&1 || \
-		RETVAL=10
-}
-
-get_host_ip()
-{
-	# Get host's IP that the BMC can reach. This is at best a hack.
-	IFACE=$(/usr/sbin/ip -o -f inet address |awk '!/: lo/ {print $2}')
-
-	for dev in ${IFACE}
-	do
-		temp_ping=$(ping -c 1 -I ${dev} ${BMC_IPv4})
-		[ $? -ne 0 ] && continue
-
-		printf -- "%s" "$temp_ping"| awk 'NR==1{print $5}' && break
-	done
-}
-
-config_bmc_alert()
-{
-	# Do two things
-	# Set/Reset TRAP IP in BMC
-	# Enable/Disable PEF alerting in BMC for TRAP
-
-	# Get Host's IP that the BMC can send traps to
-	TRAPD_IP=$(get_host_ip)
-
-	# Set Host's IP as the alert destination in the BMC
-	valid_ip ${TRAPD_IP} && config_bmc_alert_dest "${ACTION}"
-
-	# Enable/Disable alerting on the LAN channel
-	[ $RETVAL -eq 0 ] && set_ipmi_pef "${ACTION}"
-
-	return $RETVAL
-}
-
-write_trapd_conf()
-{
-	printf "###############################################\n"
-	printf "# Automatically created by %s #\n" "${SCRIPT_NAME}"
-	printf "forward default %s\n" "${FORWARD_HOST}"
-	printf "###############################################\n"
-}
-
-config_trapd()
-{
-	# Proceed only if snmptrapd is available on the system
-	if [ -f ${TRAPD_CONF} ]; then
-		write_trapd_conf > ${TRAPD_BMC_CONF} || RETVAL=11
-	else
-		RETVAL=11
-	fi
-}
-
-trap_sink_exists()
-{
-	# TODO: We only set the first match. We should be able to set
-	# multiple
-	FORWARD_HOST=$(awk '/^trap.*sink/{print $2}; /^informsink/{print $2}' \
-			/etc/snmp/snmpd*conf | head -1)
-
-	if [ -z "${FORWARD_HOST}" ]; then
-		# there is no trapsink setup.
-		return 1
-	else
-		return 0
-	fi
-}
-
-# Forward SNMP traps from the BMC to trapsink.
-trap_forward()
-{
-	NO_TRAP=0
-	ACTION=${1} # enable or disable
-
-	if [ "${ACTION}" = "enable" ]; then
-		# Get trapd config,
-		if trap_sink_exists; then
-			config_bmc_alert && config_trapd
-		else
-			# exit silently if there is no sink
-			NO_TRAP=1
-		fi
-	else
-		if [ -f ${TRAPD_BMC_CONF} ]; then
-			rm -f ${TRAPD_BMC_CONF} >/dev/null 2>&1
-			config_bmc_alert
-		else
-			NO_TRAP=1
-		fi
-	fi
-}
-
-#############################################################################
-service_reload()
-{
-	#TODO: do this in systemd
-	if [ ${RETVAL} -eq 0 ] && [ "${RELOAD_SERVICES}" = "yes" ]; then
-		service $1 reload
-		[ $? -ne 0 ] && RETVAL=6
-	fi
-}
-
-#############################################################################
-start()
-{
-	if bmc_info_exists && check_snmp; then
-		touch ${LOCKFILE}
-
-		set_snmpd_conf_path && set_snmp_proxy
-		[ $RETVAL -eq 0 ] && service_reload snmpd
-
-		if [ "${TRAP_FORWARD}" = "yes" ]; then
-			trap_forward "enable"
-			[ $RETVAL -eq 0 ] && [ $NO_TRAP -eq 0 ] && \
-				service_reload snmptrapd
-		fi
-	fi
-}
-
-#############################################################################
-stop()
-{
-	[ ! -f ${LOCKFILE} ] && return
-	if bmc_info_exists && check_snmp; then
-		disable_snmp_proxy
-		[ $RETVAL -eq 0 ] && service_reload snmpd
-
-		if [ "${TRAP_FORWARD}" = "yes" ]; then
-			trap_forward "disable"
-			[ $RETVAL -eq 0 ] && [ $NO_TRAP -eq 0 ] && \
-				service_reload snmptrapd
-		fi
-
-		rm -f ${LOCKFILE}
-	fi
-}
-
-#############################################################################
-status()
-{
-	eval_gettext "${SCRIPT_NAME}: snmp proxy to BMC is "
-	# Checking for lockfile is better.
-	#if grep -q "^proxy" "${SNMPD_BMC_CONF}" > /dev/null 2>&1 ; then
-	if [ -f ${LOCKFILE} ]; then
-		eval_gettext "set"
-	else
-		eval_gettext "not set"
-	fi
-
-	echo
-	RETVAL=0
-}
-
-#############################################################################
-usage()
-{
-	eval_gettext "Usage: $0 {start|stop|status}"; echo 1>&2
-	RETVAL=1
-}
-
-#############################################################################
-# MAIN
-#############################################################################
-case "$1" in
-	start) start ;;
-	stop)  stop ;;
-	status)	status ;;
-	*) usage ;;
-esac
-
-case "$RETVAL" in
-	0|1) ;;
-	2) eval_gettext "${SCRIPT_NAME}: failed to read ${BMC_INFO} " 1>&2 ;;
-	3) eval_gettext "${SCRIPT_NAME}: failed to get proxy config." 1>&2 ;;
-	4) eval_gettext "${SCRIPT_NAME}: failed to set ${SNMPD_BMC_CONF}." 1>&2 ;;
-	5) eval_gettext "${SCRIPT_NAME}: failed to disable snmp proxy." 1>&2 ;;
-	6) eval_gettext "${SCRIPT_NAME}: failed to reload snmpd." 1>&2 ;;
-	7) eval_gettext "${SCRIPT_NAME}: failed to set snmpd config." 1>&2 ;;
-	8) eval_gettext "${SCRIPT_NAME}: failed to set IPMI alert dest." 1>&2 ;;
-	9) eval_gettext "${SCRIPT_NAME}: no free IPMI alert dest." 1>&2 ;;
-	10) eval_gettext "${SCRIPT_NAME}: failed to set IPMI PEF." 1>&2 ;;
-	11) eval_gettext "${SCRIPT_NAME}: failed to write snmptrapd.conf." 1>&2 ;;
-	12) eval_gettext "${SCRIPT_NAME}: snmpd not found." 1>&2 ;;
-	*) eval_gettext "${SCRIPT_NAME}: unknown error." 1>&2 ;;
-esac
-
-if [ ${RETVAL} -gt 1 ]; then
-        eval_gettext " Return code: ${RETVAL}"; echo
-fi
-
-exit ${RETVAL}
-#############################################################################
-# end of file
-#############################################################################

+ 0 - 18
app/ipmitool-1.8.18/contrib/bmc-snmp-proxy.service

@@ -1,18 +0,0 @@
-[Unit]
-Description=Setup SNMP proxy to BMC
-
-After=exchange-bmc-os-info.service
-Requires=exchange-bmc-os-info.service
-PartOf=exchange-bmc-os-info.service
-
-ConditionPathExists=/var/run/bmc-info
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-
-ExecStart=/usr/libexec/bmc-snmp-proxy start
-ExecStop=/usr/libexec/bmc-snmp-proxy stop
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 48
app/ipmitool-1.8.18/contrib/bmc-snmp-proxy.sysconf

@@ -1,48 +0,0 @@
-# bmc-snmp-proxy
-#
-# Config file to control SNMP redirection between
-# the OS and Service Processor/Baseboard Management Controller (BMC)
-#
-# bmc-snnmp-proxy helps redirect certain SNMP requests (to this host)
-# destined to the Service Processor. We will need the Service Processor's
-# SNMP community string and the OID of the Service Processor's SNMP agent.
-#
-# For redirecting Traps from the Service Processor to the trap sink
-# configured in the host (this system), we will have to set
-# TRAP_FORWARD below.
-#
-# See here for details
-#    https://fedoraproject.org/wiki/Features/AgentFreeManagement
-
-### Configure SNMP proxy to BMC/Service Processor ###
-
-### Service Processor/BMC SNMP Community String. 
-# Name: BMC_COMMUNITY
-# Description: Set community string of the Service Processor (BMC)'s
-# 		SNMP agent.
-# Default: public
-#
-BMC_COMMUNITY="public"
-
-### OEM Specific OID of Service Processor
-# Name: BMC_OID
-# Description: SNMP OID that we would like to redirect to the Service
-# 		Processor (BMC). This can be unique to each OEM.
-# Default: ".1.3.6.1.4.1.674.10892.2"
-BMC_OID=".1.3.6.1.4.1.674.10892.2"  # Dell iDRAC
-
-### Forward Traps from the Service Processor to trap sink
-# Name: TRAP_FORWARD
-# Description: Enabling this will allow traps from the Service Processor
-# 		to be directed to this system and configure snmptrapd
-# Note: This option will have no effect if trap sink on the system is
-# 	not configured
-# Default: "no"
-TRAP_FORWARD="yes"
-
-### Reload snmpd and snmptrapd
-# Name: RELOAD_SERVICES
-# Description: Reload snmpd and snmptrapd after making changes to their config
-# 		files.
-# Default: "yes"
-RELOAD_SERVICES="yes"

+ 0 - 308
app/ipmitool-1.8.18/contrib/bmclanconf

@@ -1,308 +0,0 @@
-#!/bin/bash
-#
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-
-# This script is designed for Sun Fire LX50, V60x and V65x systems.
-# It may work with other setups as long as you use the correct channel
-# and interface settings.  It can be used on the V20z as long as you
-# specify network settings on the command line.
-#
-# If the wrong channel is used you could lose network access to the
-# box because your BMC will be sending out bad Gratuitous ARP packets
-# with the wrong MAC address.  You will need to use a console or
-# override your local ARP cache with the correct addr.
-
-usage ()
-{
-    echo "
-usage: $0 -c <chan> -i <interface> [options]
-       $0 -c <chan> [-v|w|x|y|z address] [options]
-
-    -c channel     Which BMC channel to configure [-c help for more info]
-    -i interface   Auto-configure BMC based on interface network settings
-    -v address     Use specified IP address
-    -w address     Use specified Netmask address
-    -x address     Use specified MAC address
-    -y address     Use specified Gateway IP address
-    -z address     Use specified Gateway MAC address
-    -m interface   Which IPMI interface to use [default linux=open solaris=lipmi]
-    -p password    Set BMC channel password
-    -s string      Set SNMP community string
-    -a interval    Set Gratuitous ARP interval, off=0, default=4
-    -r             Reset BMC channel, zero all network settings, disable
-    -d             Debug mode, does not make any changes
-"
-    exit 0;
-}
-
-channel_usage ()
-{
-    echo "
- Sun Fire V60x and V65x - Linux 2.4
-   eth0 = channel 6, top
-   eth1 = channel 7, bottom
-
- Sun Fire V60x and V65x - Linux 2.6
-   eth0 = channel 7, bottom
-   eth1 = channel 6, top
-
- Sun Fire V60x and V65x - Solaris x86
-   e1000g0 = channel 7, bottom
-   e1000g1 = channel 6, top
-
- Sun LX50 - Linux
-   eth0 = channel 7, bottom
-   eth1 = channel 6, top
-
- Sun LX50 - Solaris x86
-   le0 = channel 7, bottom
-   le1 = channel 6, top
-
- Sun Fire V20z (-i option does not apply)
-   channel 1
-"
-    exit 0
-}
-
-hex_to_ip ()
-{
-    test $# -ge 1 || return;
-    local HEX B1 B2 B3 B4;
-    HEX=`echo $1 | tr '[:lower:]' '[:upper:]'`;
-    H1=`echo $HEX | cut -c1-2`
-    H2=`echo $HEX | cut -c3-4`
-    H3=`echo $HEX | cut -c5-6`
-    H4=`echo $HEX | cut -c7-8`
-    B1=`echo 10 o 16 i $H1 p | dc`
-    B2=`echo 10 o 16 i $H2 p | dc`
-    B3=`echo 10 o 16 i $H3 p | dc`
-    B4=`echo 10 o 16 i $H4 p | dc`
-    echo "$B1.$B2.$B3.$B4"
-}
-
-ipmitool_lan_set ()
-{
-    [ $# -lt 1 ] && return
-    local PARAM=$1
-    local VALUE=
-    [ $# -ge 2 ] && VALUE=$2
-
-    if [ $DEBUG -gt 0 ]; then
-	echo "Setting LAN parameter $PARAM $VALUE"
-	echo "$IPMITOOL -I $IPMIINTF lan set $CHANNEL $PARAM $VALUE"
-	return
-    fi
-
-    $IPMITOOL -I $IPMIINTF lan set $CHANNEL $PARAM $VALUE
-}
-
-ipmitool_lan_reset ()
-{
-    ipmitool_lan_set "ipsrc" "static"
-    ipmitool_lan_set "ipaddr" "0.0.0.0"
-    ipmitool_lan_set "netmask" "0.0.0.0"
-    ipmitool_lan_set "macaddr" "00:00:00:00:00:00"
-    ipmitool_lan_set "defgw ipaddr" "0.0.0.0"
-    ipmitool_lan_set "defgw macaddr" "00:00:00:00:00:00"
-    ipmitool_lan_set "password"
-    ipmitool_lan_set "snmp" "public"
-    ipmitool_lan_set "arp generate" "off"
-    ipmitool_lan_set "access" "off"
-    exit 0
-}
-
-DEBUG=0
-LINUX=0
-SOLARIS=0
-CHANNEL=0
-IFACE=
-PASSWORD=
-SNMP=
-GRATARP=8
-PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin
-
-case `uname -s` in
-    Linux)
-	IPMIINTF=open
-	IPMITOOL=ipmitool
-	PING=ping
-	IFCONFIG=ifconfig
-	ARP=arp
-	ROUTE=route
-	;;
-    SunOS)
-	IPMIINTF=lipmi
-	IPMITOOL=ipmiadm
-	PING=ping
-	IFCONFIG=ifconfig
-	ARP=arp
-	ROUTE=route
-	;;
-    *)
-	echo "Invalid OS!"
-	exit 1
-esac
-
-while getopts "dhri:c:m:p:s:a:v:w:x:y:z:" OPTION ; do
-    case "$OPTION" in
-	i) IFACE=$OPTARG ;;
-	c) CHANNEL=$OPTARG ; test X$CHANNEL = Xhelp && channel_usage ;;
-	m) IPMIINTF=$OPTARG ;;
-	p) PASSWORD=$OPTARG ;;
-	s) SNMP=$OPTARG ;;
-	a) GRATARP=$OPTARG ;;
-	d) DEBUG=1 ;;
-	v) IP_ADDRESS=$OPTARG ;;
-	w) IP_NETMASK=$OPTARG ;;
-	x) MAC_ADDRESS=$OPTARG ;;
-	y) GATEWAY_IP=$OPTARG ;;
-	z) GATEWAY_MAC=$OPTARG ;;
-	r) ipmitool_lan_reset ;;
-	h) usage ;;
-	*) echo "Ignoring invalid option : -$OPTARG" ;;
-    esac
-done
-
-if [ ! -x `which $IPMITOOL` ]; then
-    echo "Error: unable to find $IPMITOOL"
-    exit 1
-fi
-
-if [ $CHANNEL -eq 0 ]; then
-    echo
-    echo "Error: you must specify a channel with -c"
-    echo
-    exit 1
-fi
-
-if [ "$IFACE" ]; then
-    if ! $IFCONFIG $IFACE 2>/dev/null | grep "inet " >/dev/null 2>&1 ; then
-	echo
-	echo "Error: unable to find interface $IFACE"
-	echo
-	exit 1
-    fi
-    echo "Auto-configuring $IFACE (channel $CHANNEL)"
-fi
-
-case `uname -s` in
-    SunOS)
-	if [ X$IFACE != X ]; then
-	    if [ X$IP_ADDRESS = X ]; then
-		IP_ADDRESS=`$IFCONFIG $IFACE | grep inet | awk '{print $2}'`
-	    fi
-	    if [ X$IP_NETMASK = X ]; then
-		HEX_NETMASK=`$IFCONFIG $IFACE | grep netmask | awk '{print $4}'`
-		IP_NETMASK=`hex_to_ip $HEX_NETMASK`
-	    fi
-	    if [ X$MAC_ADDRESS = X ]; then
-		MAC_ADDRESS=`$IFCONFIG $IFACE | grep ether | awk '{print $2}'`
-	    fi
-	    if [ X$GATEWAY_IP = X ]; then
-		GATEWAY_IP=`$ROUTE -n get default | grep gateway: | awk '{print $2}'`
-	    fi
-	    if [ X$GATEWAY_MAC = X ]; then
-		$PING -i $IFACE $GATEWAY_IP 1 >/dev/null 2>&1
-		GATEWAY_MAC=`$ARP $GATEWAY_IP | awk '{print $4}'`
-		if [ X$GATEWAY_MAC = Xno ]; then
-		    GATEWAY_MAC=
-		fi
-	    fi
-	fi
-	;;
-
-    Linux)
-	if [ X$IFACE != X ]; then
-	    if [ X$IP_ADDRESS = X ]; then
-		IP_ADDRESS=`$IFCONFIG $IFACE | grep "inet addr" | awk -F"[:[:space:]]+" '{print $4}'`
-	    fi
-	    if [ X$IP_NETMASK = X ]; then
-		IP_NETMASK=`$IFCONFIG $IFACE | grep Bcast | awk -F"[:[:space:]]+" '{print $8}'`
-	    fi
-	    if [ X$MAC_ADDRESS = X ]; then
-		MAC_ADDRESS=`$IFCONFIG $IFACE | grep HWaddr | awk '{print $5}'`
-	    fi
-	    if [ X$GATEWAY_IP = X ]; then
-		GATEWAY_IP=`$ROUTE -n | awk '/^0.0.0.0/ {print $2}'`
-	    fi
-	    if [ X$GATEWAY_MAC = X ]; then
-		$PING -q -c1 $GATEWAY_IP >/dev/null 2>&1
-		GATEWAY_MAC=`$ARP -an | grep "$GATEWAY_IP[^0-9]" | awk '{print $4}'`
-	    fi
-	fi
-	;;
-esac
-
-if [ X$IP_ADDRESS != X ]; then
-    ipmitool_lan_set "ipsrc" "static"
-    ipmitool_lan_set "ipaddr" "$IP_ADDRESS"
-fi
-
-if [ X$IP_NETMASK != X ]; then
-    ipmitool_lan_set "netmask" "$IP_NETMASK"
-fi
-
-if [ X$MAC_ADDRESS != X ]; then
-    ipmitool_lan_set "macaddr" "$MAC_ADDRESS"
-fi
-
-if [ X$GATEWAY_IP != X ]; then
-    ipmitool_lan_set "defgw ipaddr" "$GATEWAY_IP"
-fi
-
-if [ X$GATEWAY_MAC != X ]; then
-    ipmitool_lan_set "defgw macaddr" "$GATEWAY_MAC"
-fi
-
-if [ X$PASSWORD != X ]; then
-    ipmitool_lan_set "password" "$PASSWORD"
-fi
-
-if [ X$SNMP != X ]; then
-    ipmitool_lan_set "snmp" "$SNMP"
-fi
-
-if [ "$GRATARP" -ne 0 ]; then
-    ipmitool_lan_set "arp generate" "on"
-    ipmitool_lan_set "arp interval" "$GRATARP"
-else
-    ipmitool_lan_set "arp generate" "off"
-fi
-
-echo "Setting channel authentication capabilities"
-ipmitool_lan_set "auth callback,user,operator,admin" "md2,md5"
-
-echo "Enabling channel $CHANNEL"
-ipmitool_lan_set "access" "on"
-ipmitool_lan_set "user"
-
-exit 0

+ 0 - 29
app/ipmitool-1.8.18/contrib/collect_data.sh

@@ -1,29 +0,0 @@
-#!/bin/bash
-#
-#  Copyright (c) 2003 Fredrik Ohrn.  All Rights Reserved.
-#
-#  See the included COPYING file for license details.
-# 
-
-# Edit the variables
-
-hostname=$HOSTNAME
-
-ipmi_cmd="/usr/local/bin/ipmitool -I open"
-rrd_dir="/some/dir/rrd"
-
-# No need to edit below this point.
-
-IFS="
-"
-
-for line in `eval $ipmi_cmd -c sdr list full` ; do
-
-	IFS=,
-
-	split=($line)
-
-	file="$rrd_dir/$hostname-${split[0]}.rrd"
-
-	rrdupdate "$file" "N:${split[1]}"
-done

+ 0 - 40
app/ipmitool-1.8.18/contrib/create_rrds.sh

@@ -1,40 +0,0 @@
-#!/bin/bash
-#
-#  Copyright (c) 2003 Fredrik Ohrn.  All Rights Reserved.
-#
-#  See the included COPYING file for license details.
-#
-
-# Edit the variables
-
-hostname=$HOSTNAME
-
-ipmi_cmd="/usr/local/bin/ipmitool -I open"
-rrd_dir="/some/dir/rrd"
-
-# No need to edit below this point.
-
-IFS="
-"
-
-for line in `eval $ipmi_cmd -c -v sdr list full` ; do
-
-	IFS=,
-
-	split=($line)
-
-	file="$rrd_dir/$hostname-${split[0]}.rrd"
-
-	if [ -e "$file" ] ; then
-		echo "Skipping existing file $file"
-		continue
-	fi
-
-	echo "Creating file $file"
-
-	rrdtool create "$file" \
-		--step 300 DS:var:GAUGE:900:${split[16]}:${split[17]} \
-		RRA:AVERAGE:0.5:1:288 \
-		RRA:AVERAGE:0.5:6:336 \
-		RRA:AVERAGE:0.5:12:720
-done

+ 0 - 211
app/ipmitool-1.8.18/contrib/create_webpage.sh

@@ -1,211 +0,0 @@
-#!/bin/bash
-#
-#  Copyright (c) 2003-2004 Fredrik Ohrn.  All Rights Reserved.
-#
-#  See the included COPYING file for license details.
-#
-
-# Edit the variables
-
-hostname=$HOSTNAME
-
-ipmi_cmd="/usr/local/bin/ipmitool -I open"
-rrd_dir="/some/dir/rrd"
-
-# Full path to the rrdcgi executable.
-rrdcgi=/usr/local/bin/rrdcgi
-
-# Where should rrdcgi store the graphs? This path must be within the
-# document root and writable by the webserver user.
-img_dir=/usr/local/apache2/htdocs/images/graphs
-
-# Where will the graphs show up on the webserver?
-web_dir=/images/graphs
-
-# Size of graph area (excluding title, legends etc.)
-graph_width=500
-graph_height=150
-
-# Graphs to include on page
-graph_daily=1
-graph_weekly=1
-graph_monthly=0
-
-
-# No need to edit below this point.
-
-color[0]="2020FF"
-color[1]="20FF20"
-color[2]="FF2020"
-color[3]="FF21FF"
-color[4]="21FFFF"
-color[5]="FFFF21"
-color[6]="8F21FF"
-color[7]="21FF8F"
-color[8]="FF8F21"
-color[9]="FF2190"
-color[10]="2190FF"
-color[11]="90FF21"
-
-cat << EOF
-#!$rrdcgi
-<html>
-<head>
-<title>$hostname</title>
-<RRD::GOODFOR 300>
-<body>
-<h2>$hostname</h2>
-EOF
-
-
-IFS="
-"
-
-i=0
-groups=
-
-for line in `eval $ipmi_cmd -c -v sdr list full` ; do
-
-	IFS=,
-
-	split=($line)
-
-	file="$rrd_dir/$hostname-${split[0]}.rrd"
-	group=`echo "${split[2]} ${split[*]:10:6}" | tr ' .-' ___`
-
-	group_color=${group}_color
-
-	if [ -z "${!group}" ] ; then
-		groups="$groups $group"
-
-		declare $group_color=0
-
-		group_unit=${group}_unit
-		declare $group_unit="${split[2]}"
-
-		group_title=${group}_title
-		declare $group_title="${split[5]} / ${split[6]}"
-
-		group_thres=${group}_thres
-		declare $group_thres="${split[10]},${split[11]},${split[12]},${split[13]},${split[14]},${split[15]}"
-	fi
-
-	declare $group="${!group}
-  DEF:var$i=\"$file\":var:AVERAGE LINE1:var$i#${color[${!group_color}]}:\"${split[0]}\""
-
-	declare $group_color=$[ ${!group_color} + 1 ]
-
-	c=$[ c + 1 ]
-	i=$[ i + 1 ]
-done
-
-IFS=" "
-
-for group in $groups ; do
-
-	group_unit=${group}_unit
-	group_title=${group}_title
-	group_thres=${group}_thres
-
-	IFS=,
-
-	split=(${!group_thres})
-
-	thres=
-
-	if [ -n "${split[0]}" ] ; then
-		if [ -n "${split[3]}" ] ; then
-			thres="
-  HRULE:${split[0]}#000000
-  HRULE:${split[3]}#000000:\"Upper & lower non-recoverable thresholds\""
-		else
-			thres="
-  HRULE:${split[0]}#000000:\"Upper non-recoverable threshold\""
-		fi
-	else
-		if [ -n "${split[3]}" ] ; then
-			thres="
-  HRULE:${split[3]}#000000:\"Lower non-recoverable threshold\""
-		fi
-	fi
-
-	if [ -n "${split[1]}" ] ; then
-		if [ -n "${split[4]}" ] ; then
-			thres="$thres
-  HRULE:${split[1]}#FF0000
-  HRULE:${split[4]}#FF0000:\"Upper & lower critical thresholds\""
-		else
-			thres="$thres
-  HRULE:${split[1]}#FF0000:\"Upper critical threshold\""
-		fi
-	else
-		if [ -n "${split[4]}" ] ; then
-			thres="$thres
-  HRULE:${split[4]}#FF0000:\"Lower critical threshold\""
-		fi
-	fi
-
-	if [ -n "${split[2]}" ] ; then
-		if [ -n "${split[5]}" ] ; then
-			thres="$thres
-  HRULE:${split[2]}#FFCC00
-  HRULE:${split[5]}#FFCC00:\"Upper & lower warning thresholds\""
-		else
-			thres="$thres
-  HRULE:${split[2]}#FFCC00:\"Upper warning threshold\""
-		fi
-	else
-		if [ -n "${split[5]}" ] ; then
-			thres="$thres
-  HRULE:${split[5]}#FFCC00:\"Lower warning threshold\""
-		fi
-	fi
-
-	echo "<h3>${!group_title}</h3>"
-
-	if [ "$graph_daily" -ne 0 ] ; then
-		cat << EOF
-<RRD::GRAPH "$img_dir/$hostname-$group-daily.gif"
-  --imginfo "<img src="$web_dir/%s" width="%lu" height="%lu">"
-  --lazy
-  --vertical-label "${!group_unit}"
-  --title "Daily graph"
-  --height $graph_height
-  --width $graph_width ${!group} $thres
->
-EOF
-	fi
-
-	if [ "$graph_weekly" -ne 0 ] ; then
-		cat << EOF
-<RRD::GRAPH "$img_dir/$hostname-$group-weekly.gif"
-  --imginfo "<img src="$web_dir/%s" width="%lu" height="%lu">"
-  --lazy
-  --start -7d
-  --vertical-label "${!group_unit}"
-  --title "Weelky graph"
-  --height $graph_height
-  --width $graph_width ${!group} $thres
->
-EOF
-	fi
-
-	if [ "$graph_monthly" -ne 0 ] ; then
-		cat << EOF
-<RRD::GRAPH "$img_dir/$hostname-$group-monthly.gif"
-  --imginfo "<img src="$web_dir/%s" width="%lu" height="%lu">"
-  --lazy
-  --start -30d
-  --vertical-label "${!group_unit}"
-  --title "Monthly graph"
-  --height $graph_height
-  --width $graph_width ${!group} $thres
->
-EOF
-	fi
-done
-
-cat << EOF
-</body>
-</html>
-EOF

+ 0 - 151
app/ipmitool-1.8.18/contrib/create_webpage_compact.sh

@@ -1,151 +0,0 @@
-#!/bin/bash
-#
-#  Copyright (c) 2003-2004 Fredrik Ohrn.  All Rights Reserved.
-#
-#  See the included COPYING file for license details.
-#
-
-# Edit the variables
-
-hostname=$HOSTNAME
-
-ipmi_cmd="/usr/local/bin/ipmitool -I open"
-rrd_dir="/some/dir/rrd"
-
-# Full path to the rrdcgi executable.
-rrdcgi=/usr/local/bin/rrdcgi
-
-# Where should rrdcgi store the graphs? This path must be within the
-# document root and writable by the webserver user.
-img_dir=/usr/local/apache2/htdocs/images/graphs
-
-# Where will the graphs show up on the webserver?
-web_dir=/images/graphs
-
-# Size of graph area (excluding title, legends etc.)
-graph_width=500
-graph_height=150
-
-# Graphs to include on page
-graph_daily=1
-graph_weekly=1
-graph_monthly=0
-
-
-# No need to edit below this point.
-
-color[0]="2020FF"
-color[1]="20FF20"
-color[2]="FF2020"
-color[3]="FF21FF"
-color[4]="21FFFF"
-color[5]="FFFF21"
-color[6]="8F21FF"
-color[7]="21FF8F"
-color[8]="FF8F21"
-color[9]="FF2190"
-color[10]="2190FF"
-color[11]="90FF21"
-
-cat << EOF
-#!$rrdcgi
-<html>
-<head>
-<title>$hostname</title>
-<RRD::GOODFOR 300>
-<body>
-<h2>$hostname</h2>
-EOF
-
-
-IFS="
-"
-
-i=0
-groups=
-
-for line in `eval $ipmi_cmd -c -v sdr list full` ; do
-
-	IFS=,
-
-	split=($line)
-
-	file="$rrd_dir/$hostname-${split[0]}.rrd"
-	group=`echo "${split[2]}" | tr ' .-' ___`
-
-	group_color=${group}_color
-
-	if [ -z "${!group}" ] ; then
-		groups="$groups $group"
-
-		declare $group_color=0
-
-		group_unit=${group}_unit
-		declare $group_unit="${split[2]}"
-	fi
-
-	declare $group="${!group}
-  DEF:var$i=\"$file\":var:AVERAGE LINE1:var$i#${color[${!group_color}]}:\"${split[0]}\""
-
-	declare $group_color=$[ ${!group_color} + 1 ]
-
-	c=$[ c + 1 ]
-	i=$[ i + 1 ]
-done
-
-IFS=" "
-
-for group in $groups ; do
-
-	group_unit=${group}_unit
-
-	IFS=,
-
-	echo "<h3>${!group_unit}</h3>"
-
-	if [ "$graph_daily" -ne 0 ] ; then
-		cat << EOF
-<RRD::GRAPH "$img_dir/$hostname-$group-daily.gif"
-  --imginfo "<img src="$web_dir/%s" width="%lu" height="%lu">"
-  --lazy
-  --vertical-label "${!group_unit}"
-  --title "Daily graph"
-  --height $graph_height
-  --width $graph_width ${!group}
->
-EOF
-	fi
-
-	if [ "$graph_weekly" -ne 0 ] ; then
-		cat << EOF
-<RRD::GRAPH "$img_dir/$hostname-$group-weekly.gif"
-  --imginfo "<img src="$web_dir/%s" width="%lu" height="%lu">"
-  --lazy
-  --start -7d
-  --vertical-label "${!group_unit}"
-  --title "Weelky graph"
-  --height $graph_height
-  --width $graph_width ${!group}
->
-EOF
-	fi
-
-	if [ "$graph_monthly" -ne 0 ] ; then
-		cat << EOF
-<RRD::GRAPH "$img_dir/$hostname-$group-monthly.gif"
-  --imginfo "<img src="$web_dir/%s" width="%lu" height="%lu">"
-  --lazy
-  --start -30d
-  --vertical-label "${!group_unit}"
-  --title "Monthly graph"
-  --height $graph_height
-  --width $graph_width ${!group}
->
-EOF
-	fi
-done
-
-cat << EOF
-</body>
-</html>
-EOF

+ 0 - 326
app/ipmitool-1.8.18/contrib/exchange-bmc-os-info.init.redhat

@@ -1,326 +0,0 @@
-#!/bin/sh
-#############################################################################
-#
-# exchange-bmc-os-info: Set OS and BMC (Baseboard Management Controller)
-#			 parameters during system startup.
-#
-# version:	0.72
-#
-# Authors:	Charles Rose <charles_rose@dell.com>
-#		Jordan Hargrave <jordan_hargrave@dell.com>
-#
-# Description:  Script to set OS information in the BMC; fetch BMC IP/URL
-#		and set in the OS for use by other scripts/user.
-#
-#		BMC IP and URL are made available in /var/run/bmc-info
-#
-#		Example to launch BMC web-interface:
-#		# . /var/run/bmc-info
-#		# xdg-open $BMC_URL
-#
-#		See here for details:
-#		https://fedoraproject.org/wiki/Features/AgentFreeManagement
-#
-# OEM Specific: OEM specific ipmi commands go in:
-#		'oem_set_os_version' and 'oem_get_bmc_url'
-#############################################################################
-#
-# chkconfig: 345 99 00
-# description: Set OS name, hostname in BMC; make BMC IP/URL available in OS
-# processname: exchange-bmc-os-info
-# config:      /etc/sysconfig/exchange-bmc-os-info
-#
-### BEGIN INIT INFO
-# Provides:          exchange-bmc-os-info
-# Required-Start:    ipmi
-# Default-Start:     3 4 5
-# Default-Stop:      0 1 2 6
-
-
-#############################################################################
-# GLOBALS
-#############################################################################
-CONFIGFILE=/etc/sysconfig/exchange-bmc-os-info
-IPMI_TOOL=/usr/bin/ipmitool
-BMC_INFO=/var/run/bmc-info
-
-# BMC Manufacturer ID used in 'oem_set_os_version' and 'oem_get_bmc_url'
-DELL="674"
-#OTHER_OEM="123"
-
-# Defaults for ${CONFIGFILE}
-SET_OS_INFO="yes"
-RESET_OS_INFO="no"
-SET_BMC_INFO="yes"
-
-# getsysinfo and setsysinfo commands
-IPMI_SET_SYSINFO="${IPMI_TOOL} mc setsysinfo"
-IPMI_GET_SYSINFO="${IPMI_TOOL} mc getsysinfo"
-#############################################################################
-SCRIPT_NAME=$(basename $0)
-
-# source config
-[ -r ${CONFIGFILE} ] && . ${CONFIGFILE}
-
-RETVAL=0
-
-if [ -f /bin/gettext.sh ]; then
-	GETTEXT=1
-	. /bin/gettext.sh
-	OUTPUT="eval_gettext"
-else
-	GETTEXT=0
-	OUTPUT="echo"
-fi
-
-#############################################################################
-# Get Vendor ID of BMC for use in 'oem_set_os_version' and 'oem_get_bmc_url'
-#
-get_bmc_vendor_id()
-{
-	BMC_VENDOR=$(${IPMI_TOOL} mc info 2>/dev/null | \
-		sed -n "s#^Manufacturer ID.*: ##p")
-	[ -z "${BMC_VENDOR}" ] && RETVAL=4
-}
-
-check_ipmitool()
-{
-	if [ -x ${IPMI_TOOL} ]; then
-	# v1.8.12 plus patches are required for set/getsysinfo support
-	# http://sourceforge.net/mailarchive/message.php?msg_id=29647222
-		[ ! ${IPMI_GET_SYSINFO} >/dev/null 2>&1 ] && \
-			RETVAL=3
-	else
-		RETVAL=2
-	fi
-}
-
-bmc_exists()
-{
-	check_ipmitool
-	[ $RETVAL -eq 0 ] && get_bmc_vendor_id
-	return $RETVAL
-}
-#############################################################################
-
-get_os_info()
-{
-	OS_HOSTNAME=$(hostname)
-	KERNEL_VERSION=$(uname -r -m)
-
-	if  [ -e /etc/lsb-release ] ; then
-		. /etc/lsb-release
-		NAME=${DISTRIB_ID}
-		VERSION="${DISTRIB_RELEASE} ${DISTRIB_CODENAME}"
-	fi
-
-	# we prefer systemd's /etc/os-release over other sources
-	[ -e /etc/os-release ] && . /etc/os-release
-
-	OS_NAME=${NAME}
-	OS_VERSION="${VERSION} kernel ${KERNEL_VERSION}"
-}
-
-oem_set_os_version()
-{
-	# OS Version setting is not standard yet
-	# we need per vendor oem commands
-	case "${BMC_VENDOR}" in
-		$DELL) ${IPMI_SET_SYSINFO} delloem_os_version \
-				"${OS_VERSION}" > /dev/null 2>&1
-			return $?
-			;;
-# Add OEM specific commands.
-# Example:
-#		$OTHER_OEM) ${IPMI_SET_SYSINFO} otheroem_os_version \
-#				"${OS_VERSION}" > /dev/null 2>&1
-#			return $?
-#			;;
-		*) 	return 0
-			;;
-	esac
-}
-
-set_os_info()
-{
-	# Set and reset OS info in the BMC
-	if [ "$1" = "reset" ]; then
-		OS_NAME=""
-		OS_HOSTNAME=""
-		OS_VERSION=""
-	fi
-
-	${IPMI_SET_SYSINFO} os_name "${OS_NAME}" >/dev/null 2>&1 \
-		|| RETVAL=6
-	${IPMI_SET_SYSINFO} primary_os_name "${OS_NAME}" >/dev/null 2>&1 \
-		|| RETVAL=6
-	${IPMI_SET_SYSINFO} system_name "${OS_HOSTNAME}" >/dev/null 2>&1 \
-		|| RETVAL=6
-	oem_set_os_version || RETVAL=6
-}
-
-#############################################################################
-valid_url()
-{
-	url="(https?|http)://[a-z0-9-]+(\.[a-z0-9-]+)+([/?].*)?"
-	printf -- "%s" "${TMP_URL}"| grep -Eq "^${url}"
-	return $?
-}
-
-oem_get_bmc_url()
-{
-	# BMC URL is not standard yet
-	# we need per vendor oem commands
-	case "$BMC_VENDOR" in
-		$DELL)	TMP_URL=$(${IPMI_GET_SYSINFO} delloem_url 2> /dev/null)
-				;;
-# Add OEM specific commands
-# Example:
-#		$OTHER_OEM)
-#			TMP_URL=$(${IPMI_GET_SYSINFO} otheroem_url 2> /dev/null)
-#				;;
-		*)  TMP_URL=""	;;
-	esac
-
-	valid_url && BMC_URL=${TMP_URL} || BMC_URL=""
-}
-
-valid_ip()
-{
-	#Thanks to mkyong.com
-	octet="([01]?[[:digit:]][[:digit:]]?|2[0-4][[:digit:]]|25[0-5])"
-
-	printf -- "%s" "${TMP_IPv4}"| grep -Eq "^${octet}\\.${octet}\\.${octet}\\.${octet}$"
-	return $?
-}
-
-get_bmc_ip()
-{
-	#Thanks to http://ingvar.blog.redpill-linpro.com
-	for CHANNEL in `seq 1 14`
-	do
-		[ $(${IPMI_TOOL} lan print ${CHANNEL} 2>/dev/null \
-			| grep -q "^Set") ] || break
-	done
-
-	# Get BMC_IPv4 and BMC_URL from BMC
-	TMP_IPv4=$(${IPMI_TOOL} lan print ${CHANNEL} 2>/dev/null \
-			| sed -n "s#^IP Address  .*: ##p")
-
-	valid_ip && BMC_IPv4=${TMP_IPv4} || BMC_IPv4=""
-}
-
-get_bmc_info()
-{
-	get_bmc_ip
-	if [ -z "${BMC_IPv4}" ] || [ "${BMC_IPv4}" = "0.0.0.0" ]; then
-		BMC_IPv4=""
-		RETVAL=5
-	else
-		# URL makes sense only if there is an IP
-		oem_get_bmc_url
-	fi
-}
-
-set_bmc_info()
-{
-	if [ ! $(touch "${BMC_INFO}" && chmod 600 "${BMC_INFO}") ]; then
-		printf "BMC_IPv4=%s\n" "${BMC_IPv4}" > "${BMC_INFO}"
-		[ -n "${BMC_URL}" ] && \
-			printf "BMC_URL=%s\n" "${BMC_URL}" >> "${BMC_INFO}"
-	else
-		RETVAL=5
-	fi
-}
-
-unset_bmc_info()
-{
-	[ -f ${BMC_INFO} ] && rm -f ${BMC_INFO} > /dev/null 2>&1
-}
-
-#############################################################################
-start()
-{
-	if bmc_exists; then
-		[ "${SET_OS_INFO}" = "yes" ] && \
-			get_os_info && set_os_info
-
-		if [ "${SET_BMC_INFO}" = "yes" ]; then
-			get_bmc_info
-			if [ ${RETVAL} -eq 0 ]; then
-				set_bmc_info
-			fi
-		fi
-	fi
-}
-
-#############################################################################
-stop()
-{
-	if bmc_exists; then
-		# reset OS info while system reboots
-		# aids with debugging OS boot-up issues
-		if [ "${RESET_OS_INFO}" = "yes" ]; then
-			set_os_info reset
-		fi
-		unset_bmc_info
-	fi
-}
-
-#############################################################################
-restart()
-{
-	stop
-	[ $RETVAL -eq 0 ] && start
-}
-
-#############################################################################
-status()
-{
-	[ -r ${BMC_INFO} ] && \
-		grep -q "BMC_IPv4" "${BMC_INFO}" >/dev/null 1>&2 && \
-			BMC_STATUS="ok" || BMC_STATUS="inactive"
-	${OUTPUT} "${SCRIPT_NAME}: ${BMC_STATUS}" 1>&2
-	[ ${GETTEXT} -eq 1 ] && echo
-}
-
-#############################################################################
-usage()
-{
-	${OUTPUT} "Usage: ${SCRIPT_NAME} {start|stop|restart|status}" 1>&2
-	[ ${GETTEXT} -eq 1 ] && echo
-	RETVAL=1
-}
-
-#############################################################################
-# MAIN
-#############################################################################
-case "$1" in
-	start) start ;;
-	stop)  stop ;;
-	restart) restart ;;
-	status)	status ;;
-	*) usage ;;
-esac
-
-case "$RETVAL" in
-	0|1) ;;
-	2) ${OUTPUT} "${SCRIPT_NAME}: ipmitool(1) not found." 1>&2 ;;
-	3) ${OUTPUT} "${SCRIPT_NAME}: this version of ipmitool does not support getsysinfo." 1>&2 ;;
-	4) ${OUTPUT} "${SCRIPT_NAME}: failed to communicate with BMC." 1>&2 ;;
-	5) ${OUTPUT} "${SCRIPT_NAME}: failed to set OS information in BMC." 1>&2 ;;
-	6) ${OUTPUT} "${SCRIPT_NAME}: failed to get BMC information." 1>&2 ;;
-	*) ${OUTPUT} "${SCRIPT_NAME}: unexpected error." 1>&2 ;;
-esac
-
-if [ ${RETVAL} -gt 1 ]; then
-	${OUTPUT} " Return code: ${RETVAL}" 1>&2
-	[ ${GETTEXT} -eq 1 ] && echo
-fi
-
-
-exit ${RETVAL}
-
-#############################################################################
-# end of file
-#############################################################################

+ 0 - 13
app/ipmitool-1.8.18/contrib/exchange-bmc-os-info.service.redhat

@@ -1,13 +0,0 @@
-[Unit]
-Description=Exchange Information between BMC and OS
-After=ipmi.service network.target
-Requires=ipmi.service
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-ExecStart=/usr/libexec/exchange-bmc-os-info start
-ExecStop=/usr/libexec/exchange-bmc-os-info stop
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 26
app/ipmitool-1.8.18/contrib/exchange-bmc-os-info.sysconf

@@ -1,26 +0,0 @@
-# exchange-bmc-os-info
-#
-# Config file to control Exchange of information between
-# the OS and Service Processor/Baseboard Management Controller (BMC)
-#
-# See here for details
-#    https://fedoraproject.org/wiki/Features/AgentFreeManagement
-
-### Set OS Info in BMC/Service Processor ###
-# Name: SET_OS_INFO
-# Description: Set OS Name, Version and Hostname in the Service Processor (BMC)
-# Default: yes
-SET_OS_INFO="yes"
-
-### Reset OS Info in BMC/Service Processor ###
-# Name: RESET_OS_INFO
-# Description: Reset OS Name, Version and Hostname in the Service Processor (BMC).
-# 		Useful when the OS Name/Hostname should be empty on reboot
-# Default: no
-RESET_OS_INFO="no"
-
-### Set BMC/Service Processor Info in OS ###
-# Name; SET_BMC_INFO
-# Description: Set IP Address and URL of Service Processor/BMC in /run/bmc-info
-# Default: yes
-SET_BMC_INFO="yes"

+ 0 - 17
app/ipmitool-1.8.18/contrib/ipmi.init.basic

@@ -1,17 +0,0 @@
-#!/bin/sh
-
-echo "Setting up OpenIPMI driver..."
-
-# load the ipmi modules
-modprobe ipmi_msghandler
-modprobe ipmi_devintf
-if ! modprobe ipmi_si_drv ; then
-	modprobe ipmi_si # try new module name
-fi
-
-maj=$(cat /proc/devices | awk '/ipmidev/{print $1}')
-if [ "$maj" ]; then
-    test -e /dev/ipmi0 && rm -f /dev/ipmi0
-    /bin/mknod /dev/ipmi0 c $maj 0
-fi
-

+ 0 - 222
app/ipmitool-1.8.18/contrib/ipmi.init.redhat

@@ -1,222 +0,0 @@
-#!/bin/sh
-#
-# chkconfig: 2345 11 60
-# description: start, stop, or query ipmi system monitoring tools
-# config: /etc/sysconfig/ipmi
-#
-# For Redhat, Fedora, or similar systems.  Handles both 2.4 and 2.6
-# configurations.  Requires an /etc/sysconfig/ipmi file to function,
-# see below.
-#
-# Phil Hollenback
-# philiph@pobox.com
-
-# Source function library.
-. /etc/init.d/functions
-
-# Exit silently if we don't have a sysconfig file,
-# and read IPMI setting from it to determine whether or
-# not to continue.
-# The only current setting is ipmi={YES|NO}, whether or not
-# to enable IPMI.
-[ -f /etc/sysconfig/ipmi ] || exit 0
-. /etc/sysconfig/ipmi
-[ "${IPMI}" = "yes" ] || exit 0
-
-RETVAL=0
-
-start() {
-	echo -n $"Starting ipmi: "
-
-	# If ipmidev isn't listed in /proc/devices, try
-	# loading the modules.
-	if ! grep -q ipmidev /proc/devices
-	then
-	    /sbin/modprobe ipmi_msghandler || RETVAL=1
-	    /sbin/modprobe ipmi_devintf || RETVAL=1
-	    # Try loading new driver module, fall back to old
-	    # module if that fails.
-	    if ! /sbin/modprobe ipmi_si >/dev/null 2>&1
-	    then
-		/sbin/modprobe ipmi_si_drv || RETVAL=1
-	    fi
-	fi
-
-
-	# If ipmidev still isn't listed in /proc/devices after we load
-	# modules, this just isn't going to work.  Set RETVAL to mark
-	# this failure.
-	grep -q ipmidev /proc/devices || RETVAL=1
-
-	# remove old device file always
-	# in case ipmi gets assigned new dynamic major number from kernel
-	if [ -c /dev/ipmi0 ]; then
-	    rm -f /dev/ipmi0
-	fi
-
-	# Check if the device file exists and create if not.
-	if [ ! -c /dev/ipmi0 ] && [ $RETVAL -eq 0 ]
-	then
-	    major=$(awk '/ ipmidev$/{print $1}' /proc/devices)
-	    /bin/mknod -m 0600 /dev/ipmi0 c $major 0 || RETVAL=1
-	fi
-
-	if [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ipmi ; then
-		echo_success
-		echo
-	else
-		echo_failure
-		echo
-	fi
-}
-
-stop() {
-	echo -n $"Shutting down ipmi: "
-
-	# Stop doesn't actually do anything because we currently don't
-	# unload ipmi modules on stop.  That might change in the future
- 	# if we decide unloading the ipmi modules is safe.
-	RETVAL=0
-
-	if [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/ipmi ; then
-		echo_success
-		echo
-	else
-		echo_failure
-		echo
-	fi
-}
-
-dostatus() {
-	# Extract cpu temperatures from ipmitool output.
-
-	# Abort if we don't have the ipmitool program.
-	if ! /usr/bin/ipmitool -V >/dev/null
-	then
-	    echo "/usr/bin/ipmitool not found!" >&2
-	    exit 1
-	fi
-
-	# Abort if ipmi isn't loaded.
-	if ! grep -q ipmidev /proc/devices
-	then
-	    echo "ipmi not listed in /proc/devices!" >&2
-	    exit 1
-	fi
-
-	# Check if we are running on a v1.0 IPMI system, and
-	# change our processor search string appropriately.
-	if /usr/bin/ipmitool -I open bmc info | \
-		grep -q "IPMI Version.*1.0"
-	then
-	    IpmiVersion="1.0"
-	fi
-
-	# Determine # of running processors
-	NumProcs=$(grep -c processor /proc/cpuinfo)
-	if [ $NumProcs -eq 0 ]
-	then
-	    echo "Can't determine number of processors!" >&2
-	    exit 1
-	fi
-
-	# Now build the query string.  Concatenate it into
-	# one string because that's more efficient on 2.4 systems.
-	Count=1
-	TempString=""
-	while [ $Count -le $NumProcs ]
-	do
-	    if [ x$IpmiVersion  = x"1.0" ]
-	    then
-		TempString="$TempString CPU\ $Count"
-	    else
-		TempString="$TempString Processor$Count\ Temp"
-	    fi
-	    Count=$((Count + 1))
-	done
-	# building TempString like this and eval'ing it is ugly, but
-	# it's the only way I could make the quoting work.  Sorry.
-	TempString="/usr/bin/ipmitool -I open sensor get $TempString"
-	eval $TempString | awk -v "c=$Count" '
-BEGIN {
-   n = 1
-}
-/Sensor Reading/ {
-   printf "CPU%s Temp: %s\n",n,$4
-   n++
-}
-END {
-   if ( n != c) {
-	printf "Error: found %s CPUs, but got temps for %s\n",--c,--n >"/dev/stderr"
-	exit 1
-   }
-   exit 0
-}'
-	RETVAL=$((RETVAL + $?))
-	return $RETVAL
-}
-
-restart() {
-	stop
-	start
-	RETVAL=$?
-}
-
-condrestart() {
-	[ -e /var/lock/subsys/ipmi ] && restart || :
-}
-
-remove () {
-	# Actually remove the drivers.  Don't do during stop in case
-	# this causes system to become unstable (a la lm_sensors)
-	if /sbin/lsmod | awk '{print $1}' | grep -q ipmi_
-	then
-	    # Try removing both 2.4 and 2.6 modules.
-	    /sbin/rmmod ipmi_si 2>/dev/null
-	    /sbin/rmmod ipmi_si_drv 2>/dev/null
-	    /sbin/rmmod ipmi_devintf
-	    /sbin/rmmod ipmi_msghandler
-	else
-	    echo "No ipmi modules loaded!" >&2
-	    RETVAL=1
-	    return $RETVAL
-	fi
-
-	# Wait a sec to give modules time to unload.
-	sleep 1
-
-	# Check if we failed to remove any modules, and complain if so.
-	if /sbin/lsmod | awk '{print $1}' | grep -q ipmi_
-	then
-	    echo "ipmi modules still loaded!" >&2
-	    RETVAL=1
-	    return $RETVAL
-	fi
-}
-
-# See how we were called.
-case "$1" in
-  start)
-	start
-	;;
-  stop)
-	stop
-	;;
-  status)
-	dostatus
-	;;
-  restart|reload)
-	restart
-	;;
-  condrestart)
-	condrestart
-	;;
-  remove)
-	remove
-	;;
-  *)
-	echo "Usage: ipmi {start|stop|status|restart|condrestart|remove}"
-	exit 1
-esac
-
-exit $RETVAL

+ 0 - 92
app/ipmitool-1.8.18/contrib/ipmievd.init.debian

@@ -1,92 +0,0 @@
-#! /bin/sh
-### BEGIN INIT INFO
-# Provides:          ipmievd
-# Required-Start:    $local_fs $remote_fs $syslog
-# Required-Stop:     $local_fs $remote_fs $syslog
-# Default-Start:     2 3 4 5
-# Default-Stop:      S 0 1 6
-# Short-Description: IPMI event daemon
-# Description:       ipmievd  is a daemon which will listen for events
-#                    from the BMC that are being sent to the SEL and
-#                    also log those messages to syslog.
-### END INIT INFO
-#
-# Author:	Elmar Hoffmann <elho@elho.net>
-# Licence:      This script is public domain using the same
-#               licence as ipmitool itself.
-# Modified by:  Petter Reinholdtsen
-
-set -e
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DESC="IPMI event daemon"
-NAME=ipmievd
-DAEMON=/usr/sbin/$NAME
-PIDFILE=/var/run/$NAME.pid
-SCRIPTNAME=/etc/init.d/$NAME
-
-# Gracefully exit if the package has been removed.
-test -x $DAEMON || exit 0
-
-. /lib/lsb/init-functions
-. /etc/default/rcS
-
-# Options used by ipmievd.
-#
-# "open" uses the asynchronous event notification from the OpenIPMI
-# kernel driver, "sel" uses active polling of the contents of the SEL
-# for new events.
-#
-# Need to force 'daemon' mode, to make sure messages are sent to
-# syslog and the program forks into the background.
-#
-# Se ipmievd(8) for more info.
-IPMIEVD_OPTIONS="open daemon"
-
-# Read config file if it is present.
-[ -f /etc/default/$NAME ] && . /etc/default/$NAME
-
-#
-#	Function that starts the daemon/service.
-#
-d_start() {
-	start-stop-daemon --start --quiet --exec $DAEMON -- $IPMIEVD_OPTIONS
-}
-
-#
-#	Function that stops the daemon/service.
-#
-d_stop() {
-	start-stop-daemon --stop --quiet --name $NAME --exec $DAEMON
-}
-
-CODE=0
-
-case "$1" in
-  start)
-	[ "$VERBOSE" != no ] && log_begin_msg "Starting $DESC" "$NAME"
-	d_start || CODE=$?
-	[ "$VERBOSE" != no ] && log_end_msg $CODE
-	exit $CODE
-	;;
-  stop)
-	log_begin_msg "Stopping $DESC" "$NAME"
-	d_stop || CODE=$?
-	log_end_msg $CODE
-	exit $CODE
-	;;
-  restart|force-reload)
-	log_begin_msg "Restarting $DESC" "$NAME"
-	d_stop || true
-	sleep 1
-	d_start || CODE=$?
-	log_end_msg $CODE
-	exit $CODE
-	;;
-  *)
-	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
-	exit 1
-	;;
-esac
-
-exit 0

+ 0 - 87
app/ipmitool-1.8.18/contrib/ipmievd.init.redhat

@@ -1,87 +0,0 @@
-#!/bin/bash
-#
-#	/etc/rc.d/init.d/ipmievd
-#
-#       Based on example sysvinitfiles script
-#       Copyright (c) 2000 Red Hat Software, Inc.
-#
-# chkconfig: 345 99 00
-# description: ipmievd daemon to send events to syslog
-# processname: ipmievd
-# config:      /etc/sysconfig/ipmievd
-#
-### BEGIN INIT INFO
-# Provides:          ipmievd
-# Required-Start:    $syslog ipmi
-# Should-Start: $time
-# Required-Stop:     $syslog ipmi
-# Should-Stop: $time
-# Default-Start:     3 4 5
-# Default-Stop:      0 1 2 6
-# Short-Description: ipmievd daemon to send events to syslog
-# Description:       Start ipmievd to read events from BMC and
-#	             log them to syslog.  Events correspond to hardware faults,
-#	             state transitions such as power on and off, and sensor
-#	             readings such as temperature, voltage and fan speed that
-#	             are abnormal.
-### END INIT INFO
-
-IPMIEVD_BIN=/usr/sbin/ipmievd
-test -x $IPMIEVD_BIN || { echo "$IPMIEVD_BIN not installed";
-        if [ "$1" = "stop" ]; then exit 0;
-        else exit 5; fi; }
-
-# Check for existence of needed config file
-IPMIEVD_CONFIG=/etc/sysconfig/ipmievd
-test -r $IPMIEVD_CONFIG || { echo "$IPMIEVD_CONFIG does not exist";
-        if [ "$1" = "stop" ]; then exit 0;
-        else exit 6; fi; }
-
-# Read config file
-. $IPMIEVD_CONFIG
-
-# Source function library.
-. /etc/init.d/functions
-
-start() {
-	echo "Starting ipmievd:"
-	if [ -f /var/lock/subsys/ipmievd ]; then
-		return 0
-	fi
-	daemon $IPMIEVD_BIN $IPMIEVD_OPTIONS
-	ret=$?
-	[ $ret -eq 0 ] && touch /var/lock/subsys/ipmievd
-	return $ret
-}	
-
-stop() {
-	echo "Shutting down ipmievd:"
-	killproc $IPMIEVD_BIN
-	ret=$?
-	[ $ret -eq 0 ] && rm -f /var/lock/subsys/ipmievd
-	return $ret
-}
-
-case "$1" in
-    start)
-	start
-	;;
-    stop)
-	stop
-	;;
-    status)
-	status $IPMIEVD_BIN
-	;;
-    restart|reload)
-    	stop
-	start
-	;;
-    condrestart)
-	[ -f /var/lock/subsys/ipmievd ] && restart || :
-	;;
-    *)
-	echo "Usage: ipmievd {start|stop|status|reload|restart|condrestart}"
-	exit 1
-	;;
-esac
-exit $?

+ 0 - 212
app/ipmitool-1.8.18/contrib/ipmievd.init.suse

@@ -1,212 +0,0 @@
-#!/bin/bash
-#
-#     System startup script for ipmievd
-#     Based on skeleton.compat example script
-#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
-#          
-#     This library is free software; you can redistribute it and/or modify it
-#     under the terms of the GNU Lesser General Public License as published by
-#     the Free Software Foundation; either version 2.1 of the License, or (at
-#     your option) any later version.
-#			      
-#     This library is distributed in the hope that it will be useful, but
-#     WITHOUT ANY WARRANTY; without even the implied warranty of
-#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-#     Lesser General Public License for more details.
-#      
-#     You should have received a copy of the GNU Lesser General Public
-#     License along with this library; if not, write to the Free Software
-#     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
-#     USA.
-#
-# Note: This template uses functions rc_XXX defined in /etc/rc.status on
-# UnitedLinux/SUSE/Novell based Linux distributions. However, it will work
-# on other distributions as well, by using the LSB (Linux Standard Base) 
-# or RH functions or by open coding the needed functions.
-# Read http://www.tldp.org/HOWTO/HighQuality-Apps-HOWTO/ if you prefer not 
-# to use this template.
-#
-# chkconfig: 345 99 00
-# description: ipmievd daemon
-# 
-### BEGIN INIT INFO
-# Provides:          ipmievd
-# Required-Start:    $syslog ipmi
-# Should-Start: $time
-# Required-Stop:     $syslog ipmi
-# Should-Stop: $time
-# Default-Start:     3 4 5
-# Default-Stop:      0 1 2 6
-# Short-Description: ipmievd daemon to send events to syslog
-# Description:       Start ipmievd to read events from BMC and
-#	log them to syslog.  Events correspond to hardware faults,
-#	state transitions such as power on and off, and sensor
-#	readings such as temperature, voltage and fan speed that
-#	are abnormal.
-### END INIT INFO
-# 
-
-# Check for missing binaries (stale symlinks should not happen)
-# Note: Special treatment of stop for LSB conformance
-IPMIEVD_BIN=/usr/sbin/ipmievd
-test -x $IPMIEVD_BIN || { echo "$IPMIEVD_BIN not installed"; 
-	if [ "$1" = "stop" ]; then exit 0;
-	else exit 5; fi; }
-
-# Check for existence of needed config file and read it
-IPMIEVD_CONFIG=/etc/sysconfig/ipmievd
-test -r $IPMIEVD_CONFIG || { echo "$IPMIEVD_CONFIG does not exist";
-	if [ "$1" = "stop" ]; then exit 0;
-	else exit 6; fi; }
-
-# Read config	
-. $IPMIEVD_CONFIG
-
-if test -e /etc/rc.status; then
-    # SUSE rc script library
-    . /etc/rc.status
-else
-    export LC_ALL=POSIX
-    _cmd=$1
-    declare -a _SMSG
-    if test "${_cmd}" = "status"; then
-	_SMSG=(running dead dead unused unknown reserved)
-	_RC_UNUSED=3
-    else
-	_SMSG=(done failed failed missed failed skipped unused failed failed reserved)
-	_RC_UNUSED=6
-    fi
-    if test -e /lib/lsb/init-functions; then
-	# LSB    
-    	. /lib/lsb/init-functions
-	echo_rc()
-	{
-	    if test ${_RC_RV} = 0; then
-		log_success_msg "  [${_SMSG[${_RC_RV}]}] "
-	    else
-		log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
-	    fi
-	}
-	# TODO: Add checking for lockfiles
-	checkproc() { return pidofproc ${1+"$@"} >/dev/null 2>&1; }
-    elif test -e /etc/init.d/functions; then
-	# RHAT
-	. /etc/init.d/functions
-	echo_rc()
-	{
-	    #echo -n "  [${_SMSG[${_RC_RV}]}] "
-	    if test ${_RC_RV} = 0; then
-		success "  [${_SMSG[${_RC_RV}]}] "
-	    else
-		failure "  [${_SMSG[${_RC_RV}]}] "
-	    fi
-	}
-	checkproc() { return status ${1+"$@"}; }
-	start_daemon() { return daemon ${1+"$@"}; }
-    else
-	# emulate it
-	echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
-    fi
-    rc_reset() { _RC_RV=0; }
-    rc_failed()
-    {
-	if test -z "$1"; then 
-	    _RC_RV=1;
-	elif test "$1" != "0"; then 
-	    _RC_RV=$1; 
-    	fi
-	return ${_RC_RV}
-    }
-    rc_check()
-    {
-	return rc_failed $?
-    }	
-    rc_status()
-    {
-	rc_failed $?
-	if test "$1" = "-r"; then _RC_RV=0; shift; fi
-	if test "$1" = "-s"; then rc_failed 5; echo_rc; rc_failed 3; shift; fi
-	if test "$1" = "-u"; then rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift; fi
-	if test "$1" = "-v"; then echo_rc; shift; fi
-	if test "$1" = "-r"; then _RC_RV=0; shift; fi
-	return ${_RC_RV}
-    }
-    rc_exit() { exit ${_RC_RV}; }
-    rc_active() 
-    {
-	if test -z "$RUNLEVEL"; then read RUNLEVEL REST < <(/sbin/runlevel); fi
-	if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
-	return 1
-    }
-fi
-
-# Reset status of this service
-rc_reset
-
-# Return values acc. to LSB for all commands but status:
-# 0	  - success
-# 1       - generic or unspecified error
-# 2       - invalid or excess argument(s)
-# 3       - unimplemented feature (e.g. "reload")
-# 4       - user had insufficient privileges
-# 5       - program is not installed
-# 6       - program is not configured
-# 7       - program is not running
-# 8--199  - reserved (8--99 LSB, 100--149 distrib, 150--199 appl)
-# 
-# Note that starting an already running service, stopping
-# or restarting a not-running service as well as the restart
-# with force-reload (in case signaling is not supported) are
-# considered a success.
-
-case "$1" in
-    start)
-	echo -n "Starting ipmievd "
-	start_daemon $IPMIEVD_BIN $IPMIEVD_OPTIONS
-	rc_status -v
-	;;
-    stop)
-	echo -n "Shutting down ipmievd "
-	killproc -TERM $IPMIEVD_BIN
-	rc_status -v
-	;;
-    try-restart|condrestart)
-	## Do a restart only if the service was active before.
-	## Note: try-restart is now part of LSB (as of 1.9).
-	## RH has a similar command named condrestart.
-	if test "$1" = "condrestart"; then
-		echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}"
-	fi
-	$0 status
-	if test $? = 0; then
-		$0 restart
-	else
-		rc_reset	# Not running is not a failure.
-	fi
-	rc_status
-	;;
-    restart)
-	$0 stop
-	$0 start
-	rc_status
-	;;
-    force-reload)
-	echo -n "Reload service ipmievd "
-	$0 try-restart
-	rc_status
-	;;
-    reload)
-	rc_failed 3
-	rc_status -v
-	;;
-    status)
-	echo -n "Checking for service ipmievd "
-	checkproc $IPMIEVD_BIN
-	rc_status -v
-	;;
-    *)
-	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload| reload}"
-	exit 1
-	;;
-esac
-rc_exit

+ 0 - 88
app/ipmitool-1.8.18/contrib/log_bmc.sh

@@ -1,88 +0,0 @@
-#!/bin/sh
-#############################################################################
-#
-# log_bmc.sh: Add SEL entries to indicate OS Boot/Install status.
-#
-# version:      0.1
-#
-# Authors:      Charles Rose <charles_rose@dell.com>
-#               Jordan Hargrave <jordan_hargrave@dell.com>
-#
-# Description:  Script to log OS boot/install status to the BMC. Primarily
-#		meant for use in automated installs and start up scripts.
-#		Will provide administrators with OS boot/install status in
-#		BMC and aid with debugging.
-#
-#               Example usage:
-#               # ./log_bmc.sh inst_start
-#               # ipmitool sel list
-#		b | 05/07/2014 | 12:07:32 | OS Boot | Installation started
-#
-#               See here for details:
-#               https://fedoraproject.org/wiki/Features/AgentFreeManagement
-#
-#############################################################################
-IPMI_CMD="/usr/bin/ipmitool"
-
-#############################################################################
-# SEL Event types from ipmi_sel.h
-OS_STOP="0x20"
-OS_BOOT="0x1f"
-# SEL Event data from ipmi_sel.h
-GRACEFUL_SHUTDOWN="0x03" # OS Stop/Shutdown: Installation started
-BOOT_COMPLETED="0x01" # OS Boot: Installation started
-INSTALL_STARTED="0x07" # OS Boot: Installation started
-INSTALL_COMPLETED="0x08" # OS Boot: Installation completed
-INSTALL_ABORTED="0x09" # OS Boot: Installation aborted
-INSTALL_FAILED="0x0a" # OS Boot: Installation failed
-
-##########################################################################
-
-# check for ipmi functionality.
-check_ipmi()
-{
-	# ensures presence of ipmitool and /dev/ipmi*
-	${IPMI_CMD} mc info > /dev/null 2>&1
-	[ $? -ne 0 ] && RETVAL=2
-}
-
-# Write out the events to SEL
-ipmi_sel_add()
-{
-	# Refer ipmitool(1) event for details on format.
-	printf "0x04 %s 0x00 0x6f %s 0x00 0x00" ${type} ${status} > \
-		${tmpfile} && \
-		${IPMI_CMD} sel add ${tmpfile} > /dev/null 2>&1
-	[ $? -ne 0 ] && RETVAL=3
-}
-
-### Main
-# Most of the status is for this event type
-tmpfile=$(/usr/bin/mktemp)
-RETVAL=0
-type=${OS_BOOT}
-
-case ${1} in
-	os_shutdown)   type=${OS_STOP}; status=${GRACEFUL_SHUTDOWN} ;;
-	os_boot)       status=${BOOT_COMPLETED} ;;
-	inst_start)    status=${INSTALL_STARTED} ;;
-	inst_complete) status=${INSTALL_COMPLETED} ;;
-	inst_abort)    status=${INSTALL_ABORTED} ;;
-	inst_fail)     status=${INSTALL_FAILED} ;;
-	*)             RETVAL=1 ;;
-esac
-
-[ ${RETVAL} -eq 0 ] && check_ipmi
-[ ${RETVAL} -eq 0 ] && ipmi_sel_add ${status}
-
-case ${RETVAL} in
-	0) ;;
-	1) printf -- %s\\n "Usage: $0 <os_boot|os_shutdown|inst_start|inst_complete|inst_abort|inst_fail>" ;;
-	2) printf -- %s\\n "failed to communicate with BMC." ;;
-	3) printf -- %s\\n "error adding ipmi sel entry." ;;
-esac
-
-[ -f ${tmpfile} ] && rm -f ${tmpfile} > /dev/null 2>&1
-
-exit ${RETVAL}
-### End

+ 0 - 229
app/ipmitool-1.8.18/contrib/oem_ibm_sel_map

@@ -1,229 +0,0 @@
-"0xC1","XX","XX","XX","XX","XX","XX","XX","0x01","0x00","Chassis Number","R","R","0x00","CPU shutdown - Potential cause "triple fault" a software address problem"
-"0xC1","XX","XX","XX","XX","XX","XX","XX","0x02","0x01","Chassis Number","Failed Memory Card","Spare Memory Card","0x00","Memory Mirrored Failover Occurred - System running from mirrored memory image"
-"0xC1","XX","XX","XX","XX","XX","XX","XX","0x02","0x04","Chassis Number","Memory Card","Completion Code (0x00=Success)","0x00","Memory hot replace event"
-"0xC1","XX","XX","XX","XX","XX","XX","XX","0x02","0x05","Chassis Number","Memory Card","Memory Size (in 512MB units)","0x00","Memory hot add event"
-"0xC1","XX","XX","XX","XX","XX","XX","XX","0x03","0x00","Chassis Number","Scalability Port Number","R","0x00","Scalability link down"
-"0xC1","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","Chassis Number","Scalability Port Number","R","0x00","Scalability link up"
-"0xC1","XX","XX","XX","XX","XX","XX","XX","0x03","0x02","Chassis Number","Scalability Port Number","R","0x00","Scalability link double wide down"
-"0xC1","XX","XX","XX","XX","XX","XX","XX","0x03","0x03","Chassis Number","Scalability Port Number","R","0x00","Scalability link double wide up"
-"0xC1","XX","XX","XX","XX","XX","XX","XX","0x03","0x80","Chassis Number","Scalability Port Number","R","0x00","Scalability link PFA"
-"0xC1","XX","XX","XX","XX","XX","XX","XX","0x03","0x81","Chassis Number","Scalability Port Number","R","0x00","Scalability link invalid port"
-"0xC1","XX","XX","XX","XX","XX","XX","XX","0x03","0x82","Chassis Number","Scalability Port Number","R","0x00","Scalability link invalid node"
-"0xC1","XX","XX","XX","XX","XX","XX","XX","0x03","0x83","Chassis Number","Scalability Port Number","R","0x00","Scalability link kill"
-"0xE0","0x00","0x00","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Device OK"
-"0xE0","0x00","0x01","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Required ROM space not available"
-"0xE0","0x00","0x02","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Required I/O Space not available"
-"0xE0","0x00","0x03","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Required memory not available"
-"0xE0","0x00","0x04","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Required memory below 1MB not available"
-"0xE0","0x00","0x05","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","ROM checksum failed"
-"0xE0","0x00","0x06","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","BIST failed"
-"0xE0","0x00","0x07","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Planar device missing or disabled by user"
-"0xE0","0x00","0x08","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","PCI device has an invalid PCI configuration space header"
-"0xE0","0x00","0x09","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","FRU information for added PCI device"
-"0xE0","0x00","0x0A","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","FRU information for removed PCI device"
-"0xE0","0x00","0x0B","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","A PCI device was removed, PCI FRU information is stored in next log entry"
-"0xE0","0x00","0x0C","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","A PCI device was added, PCI FRU information is stored in next log entry"
-"0xE0","0x00","0x0D","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Requested resources not available"
-"0xE0","0x00","0x13","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Planar video disabled due to add in video card"
-"0xE0","0x00","0x14","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","FRU information for PCI device partially disabled "
-"0xE0","0x00","0x15","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","A PCI device was partially disabled, PCI FRU information is stored in next log entry"
-"0xE0","0x00","0x16","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","A 33Mhz device is installed on a 66Mhz bus, PCI device information is stored in next log entry"
-"0xE0","0x00","0x17","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","FRU information, 33Mhz device installed on 66Mhz bus"
-"0xE0","0x00","0x18","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Merge cable missing"
-"0xE0","0x00","0x19","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Node 1 to Node 2 cable missing"
-"0xE0","0x00","0x1A","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Node 1 to Node 3 cable missing"
-"0xE0","0x00","0x1B","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Node 2 to Node 3 cable missing"
-"0xE0","0x00","0x1C","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Nodes could not merge"
-"0xE0","0x00","0x1D","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","No 8 way SMP cable"
-"0xE0","0x00","0x1E","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Primary North Bridge to PCI Host Bridge IB Link has failed"
-"0xE0","0x00","0x1F","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0x00","Redundant PCI Host Bridge IB Link has failed"
-"0xE0","0x00","0x00","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Device OK"
-"0xE0","0x00","0x01","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Required ROM space not available"
-"0xE0","0x00","0x02","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Required I/O Space not available"
-"0xE0","0x00","0x03","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Required memory not available"
-"0xE0","0x00","0x04","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Required memory below 1MB not available"
-"0xE0","0x00","0x05","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","ROM checksum failed"
-"0xE0","0x00","0x06","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","BIST failed"
-"0xE0","0x00","0x07","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Planar device missing or disabled by user"
-"0xE0","0x00","0x08","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","PCI device has an invalid PCI configuration space header"
-"0xE0","0x00","0x09","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","FRU information for added PCI device"
-"0xE0","0x00","0x0A","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","FRU information for removed PCI device"
-"0xE0","0x00","0x0B","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","A PCI device was added, PCI FRU information is stored in next log entry"
-"0xE0","0x00","0x0C","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","A PCI device was removed, PCI FRU information is stored in next log entry"
-"0xE0","0x00","0x0D","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Requested resources not available"
-"0xE0","0x00","0x13","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Planar video disabled due to add in video card"
-"0xE0","0x00","0x14","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","FRU information for PCI device partially disabled "
-"0xE0","0x00","0x15","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","A PCI device was partially disabled, PCI FRU information is stored in next log entry"
-"0xE0","0x00","0x16","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","A 33Mhz device is installed on a 66Mhz bus, PCI device information is stored in next log entry"
-"0xE0","0x00","0x17","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","FRU information, 33Mhz device installed on 66Mhz bus"
-"0xE0","0x00","0x18","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Merge cable missing"
-"0xE0","0x00","0x19","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Node 1 to Node 2 cable missing"
-"0xE0","0x00","0x1A","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Node 1 to Node 3 cable missing"
-"0xE0","0x00","0x1B","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Node 2 to Node 3 cable missing"
-"0xE0","0x00","0x1C","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Nodes could not merge"
-"0xE0","0x00","0x1D","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","No 8 way SMP cable"
-"0xE0","0x00","0x1E","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Primary North Bridge to PCI Host Bridge IB Link has failed"
-"0xE0","0x00","0x1F","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","R","R","R","0x01","Redundant PCI Host Bridge IB Link has failed"
-"0xE0","0x01","0x00","Chassis Number","Processor Number","R","R","R","R","R","R","R","R","0x00","Processor has failed BIST"
-"0xE0","0x01","0x01","Chassis Number","Processor Number","R","R","R","R","R","R","R","R","0x00","Unable to apply processor microcode update"
-"0xE0","0x01","0x02","Chassis Number","Processor Number","R","R","R","R","R","R","R","R","0x00","POST does not support current stepping level of processor"
-"0xE0","0x01","0x03","Chassis Number","Processor Number","R","R","R","R","R","R","R","R","0x00","CPU mismatch detected"
-"0xE0","0x01","0x04","Chassis Number","R","R","R","R","R","R","R","R","R","0x00","Invalid configuration of processor card."
-"0xE0","0x02","0x00","Chassis Number","Memory Card","Memory DIMM","R","R","R","R","R","R","R","0x00","Uncorrectable memory error occurred"
-"0xE0","0x02","0x01","Chassis Number","Memory Card","Memory DIMM","Failing Symbol","R","R","R","R","R","R","0x00","Correctable memory threshold occurred"
-"0xE0","0x02","0x02","0x00","Chassis","Memory Card","Memory DIMM","R","R","R","R","R","R","0x00","DIMM enabled"
-"0xE0","0x02","0x02","0x01","Chassis","Memory Card","Memory DIMM","R","R","R","R","R","R","0x00","DIMM disabled, failed ECC test"
-"0xE0","0x02","0x02","0x02","Chassis","Memory Card","Memory DIMM","R","R","R","R","R","R","0x00","DIMM disabled, failed POST/BIOS memory test"
-"0xE0","0x02","0x02","0x03","Chassis","Memory Card","Memory DIMM","R","R","R","R","R","R","0x00","DIMM disabled, non-supported memory device"
-"0xE0","0x02","0x02","0x04","Chassis","Memory Card","Memory DIMM","R","R","R","R","R","R","0x00","DIMM disabled, non-matching or missing DIMM(s)"
-"0xE0","0x02","0x03","0x00","Chassis Number","Memory Card","R","R","R","R","R","R","R","0x00","Memory card enabled"
-"0xE0","0x02","0x03","0x01","Chassis Number","Memory Card","R","R","R","R","R","R","R","0x00","Memory card disabled"
-"0xE0","0x02","0x00","0x00","Chassis","Memory Card","Memory DIMM","R","R","R","R","R","R","0x01","DIMM enabled"
-"0xE0","0x02","0x00","0x01","Chassis","Memory Card","Memory DIMM","R","R","R","R","R","R","0x01","DIMM disabled, failed ECC test"
-"0xE0","0x02","0x00","0x02","Chassis","Memory Card","Memory DIMM","R","R","R","R","R","R","0x01","DIMM disabled, failed POST/BIOS memory test"
-"0xE0","0x02","0x00","0x03","Chassis","Memory Card","Memory DIMM","R","R","R","R","R","R","0x01","DIMM disabled, non-supported memory device"
-"0xE0","0x02","0x00","0x04","Chassis","Memory Card","Memory DIMM","R","R","R","R","R","R","0x01","DIMM disabled, non-matching or missing DIMM(s)"
-"0xE0","0x02","0x00","0x05","Chassis","Memory Card","Memory DIMM","R","R","R","R","R","R","0x01","DIMM disabled, multi-bit or multi-symbol error"
-"0xE0","0x02","0x01","0x00","Chassis","Failed Channel","R","R","R","R","R","R","R","0x01","AMB Failure Detected on Channel X During Last Boot"
-"0xE1","0x00","0x00","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","Unknown SERR/PERR detected on PCI bus"
-"0xE1","0x00","0x01","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Address of special cycle DPE"
-"0xE1","0x00","0x02","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: Master read parity error"
-"0xE1","0x00","0x03","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Received target parity error"
-"0xE1","0x00","0x04","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: Master write parity error"
-"0xE1","0x00","0x05","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Device signaled SERR"
-"0xE1","0x00","0x06","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: Slave signaled parity error"
-"0xE1","0x00","0x07","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Signaled Target Abort"
-"0xE1","0x00","0x08","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","BUS_CORRECTABLE: Additional Correctable ECC Error"
-"0xE1","0x00","0x09","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Received Master Abort"
-"0xE1","0x00","0x0A","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: Additional Uncorrectable ECC Error"
-"0xE1","0x00","0x0B","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Split Completion Discarded"
-"0xE1","0x00","0x0C","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","BUS_CORRECTABLE: Correctable ECC Error"
-"0xE1","0x00","0x0D","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Unexpected Split Completion"
-"0xE1","0x00","0x0E","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: Uncorrectable ECC Error"
-"0xE1","0x00","0x0F","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Received split completion error"
-"0xE1","0x00","0x11","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCI-PCI bridge secondary error: Address of special cycle DPE"
-"0xE1","0x00","0x12","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: PCI-PCI bridge secondary error: Master read parity error"
-"0xE1","0x00","0x13","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCI-PCI bridge secondary error: Received target parity error"
-"0xE1","0x00","0x14","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: PCI-PCI bridge secondary error: Master write parity error"
-"0xE1","0x00","0x15","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCI-PCI bridge secondary error: Device Signaled SERR"
-"0xE1","0x00","0x16","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: PCI-PCI bridge secondary error: Slave Signaled Parity Error"
-"0xE1","0x00","0x17","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCI-PCI bridge secondary error: Signaled Target Abort"
-"0xE1","0x00","0x18","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","BUS_CORRECTABLE: PCI-PCI bridge secondary error: Additional Correctable ECC Error"
-"0xE1","0x00","0x19","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCI-PCI bridge secondary error: Received Master Abort"
-"0xE1","0x00","0x1A","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: PCI-PCI bridge secondary error: Additional Uncorrectable ECC Error"
-"0xE1","0x00","0x1B","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCI-PCI bridge secondary error: Split Completion Discarded"
-"0xE1","0x00","0x1C","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","BUS_CORRECTABLE: PCI-PCI bridge secondary error: Correctable ECC Error"
-"0xE1","0x00","0x1D","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCI-PCI bridge secondary error: Unexpected Split Completion"
-"0xE1","0x00","0x1E","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: PCI-PCI bridge secondary error: Uncorrectable ECC Error"
-"0xE1","0x00","0x1F","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCI-PCI bridge secondary error: Received split completion error"
-"0xE1","0x00","0x20","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","BUS_CORRECTABLE: PCI ECC Error (Corrected)"
-"0xE1","0x00","0x21","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCI Bus Address Parity Error"
-"0xE1","0x00","0x22","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: PCI Bus Data Parity Error"
-"0xE1","0x00","0x23","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: SERR# Asserted"
-"0xE1","0x00","0x24","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: PERR Received by Calgary on a PCIX Split Completion"
-"0xE1","0x00","0x25","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Invalid Address"
-"0xE1","0x00","0x27","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: TCE Extent Error"
-"0xE1","0x00","0x29","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Page Fault"
-"0xE1","0x00","0x2B","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Unauthorized Access"
-"0xE1","0x00","0x2D","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Parity Error in DMA Read Data Buffer"
-"0xE1","0x00","0x2F","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCI Bus Time Out"
-"0xE1","0x00","0x31","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: DMA Delayed Read Timeout"
-"0xE1","0x00","0x33","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Internal Error on PCIX Split Completion"
-"0xE1","0x00","0x35","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: DMA Read Reply (RIO) Timeout"
-"0xE1","0x00","0x37","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Internal RAM Error on DMA Write"
-"0xE1","0x00","0x39","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: MVE Valid Bit Off"
-"0xE1","0x00","0x3B","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: MVE Index Invalid"
-"0xE1","0x00","0x40","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: ECC Error (Corrected)"
-"0xE1","0x00","0x41","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: SERR# Detected"
-"0xE1","0x00","0x42","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: PCI Bus Data Parity Error"
-"0xE1","0x00","0x43","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: No DEVSEL#"
-"0xE1","0x00","0x45","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Bus Time Out"
-"0xE1","0x00","0x47","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Retry Count Expired"
-"0xE1","0x00","0x49","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Target-Abort"
-"0xE1","0x00","0x4B","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Invalid Size"
-"0xE1","0x00","0x4D","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Access Not Enabled"
-"0xE1","0x00","0x4F","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Internal RAM Error on MMIO Store"
-"0xE1","0x00","0x51","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Split Response Received"
-"0xE1","0x00","0x53","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCIX Split Completion Error Status Received"
-"0xE1","0x00","0x55","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Unexpected PCIX Split Completion Received"
-"0xE1","0x00","0x57","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCIX Split Completion Timeout"
-"0xE1","0x00","0x59","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Recoverable Error Summary Bit"
-"0xE1","0x00","0x5B","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: CSR Error Summary Bit"
-"0xE1","0x00","0x5D","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Internal RAM Error on MMIO Load"
-"0xE1","0x00","0x61","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Bad Command"
-"0xE1","0x00","0x63","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Length Field Invalid"
-"0xE1","0x00","0x65","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Load Greater Than 8 & No Write Buffer Enabled"
-"0xE1","0x00","0x67","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCIX Discontiguous Byte Enable Error"
-"0xE1","0x00","0x69","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: 4K Address Boundary Crossing Error"
-"0xE1","0x00","0x6B","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Store Wrap State Machine Check"
-"0xE1","0x00","0x6D","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Target State Machine Check"
-"0xE1","0x00","0x6F","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Invalid Transaction PM/DW"
-"0xE1","0x00","0x71","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Invalid Transaction PM/DR"
-"0xE1","0x00","0x73","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: Invalid Transaction PS/DW"
-"0xE1","0x00","0x75","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: DMA Write Command FIFO Parity Error"
-"0xE1","0x00","0x76","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PERR: PCI Secondary Status Register Dump"
-"0xE1","0x00","0x77","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","SERR: PCI Secondary Status Register Dump"
-"0xE1","0x00","0x81","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x00","PCI-to-PCI Bridge Discard Timer Error"
-"0xE1","0x00","0x01","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x01","SERR detected on PCI bus"
-"0xE1","0x00","0x02","Chassis Number","Slot Number","Bus Number","Device ID (LSB)","Device ID (MSB)","Vendor ID (LSB)","Vendor ID (MSB)","Status Register (LSB)","Status Register (MSB)","DevFun Number","0x01","PERR detected on PCI bus"
-"0xE1","0x01","0x00","R","R","Bank (LSB)","Bank (MSB)","Apic ID (LSB)","Apic ID (MSB)","CK4(LSB)","CK4","CK4","CK4(MSB)","0x00","Processor Error Information Data A"
-"0xE1","0x01","0x01","R","R","Address high (LSB)","Address high","Address high","Address high (MSB)","Address low (LSB)","Address low ","Address low ","Address low (MSB)","0x00","Processor Error Information Data B1"
-"0xE1","0x01","0x02","R","R","Timestamp high (LSB)","Timestamp high","Timestamp high","Timestamp high (MSB)","Timestamp Low (LSB)","Timestamp low","Timestamp low","Timestamp low (MSB)","0x00","Processor Error Information Data B2"
-"0xE1","0x01","0x03","R","R","MCA status register high (LSB)","MCA status register high","MCA status register high","MCA status register high (MSB)","MCA status register low (LSB)","MCA status register low","MCA status register low","MCA status register low (MSB)","0x00","Processor Error Information Data C"
-"0xE1","0x01","0x04","Chassis","0x00","Processor ID","R","R","R","R","R","R","R","0x00","Processor recoverable error"
-"0xE1","0x01","0x04","Chassis","0x01","Processor ID","R","R","R","R","R","R","R","0x00","Processor unrecoverable error"
-"0xE1","0x02","0x00","0x00","Failed Row","Spare Row","R","R","R","R","R","R","R","0x00","Memory sparing event, start 1"
-"0xE1","0x02","0x00","0x02","Failed Row","Spare Row","R","R","R","R","R","R","R","0x00","Memory sparing event, done  1"
-"0xE1","0x02","0x00","0x01","Failed Row 1","Failed Row 2","Spare Row 1","Spare Row 2","R","R","R","R","R","0x00","Memory sparing event, start 2"
-"0xE1","0x02","0x00","0x03","Failed Row 1","Failed Row 2","Spare Row 1","Spare Row 2","R","R","R","R","R","0x00","Memory sparing event, done  2"
-"0xE1","0x02","0x01","Failed Port","Spare Port","R","R","R","R","R","R","R","R","0x00","Memory mirroring failover occurred"
-"0xE1","0x02","0x00","0x00","R","R","R","R","R","R","R","R","R","0x01","Memory sparing event, start 1"
-"0xE1","0x02","0x00","0x02","R","R","R","R","R","R","R","R","R","0x01","Memory sparing event, done 1"
-"0xE1","0x04","0x00","0x00","FSB FERR/NERR Register","FSB FERR/NERR Register","Chassis Number","R","R","R","R","R","R","0x00","FSB A Fatal"
-"0xE1","0x04","0x00","0x01","FSB FERR/NERR Register","FSB FERR/NERR Register","Chassis Number","R","R","R","R","R","R","0x00","FSB A Nonfatal"
-"0xE1","0x04","0x00","0x02","FSB FERR/NERR Register","FSB FERR/NERR Register","Chassis Number","R","R","R","R","R","R","0x00","FSB B Fatal"
-"0xE1","0x04","0x00","0x03","FSB FERR/NERR Register","FSB FERR/NERR Register","Chassis Number","R","R","R","R","R","R","0x00","FSB B Nonfatal"
-"0xE1","0x05","0x00","0x02","Hi FERR or NERR Register","R","R","R","R","R","R","R","R","0x00","Lindenhurst Chipset Event: Hi Fatal"
-"0xE1","0x05","0x00","0x03","Hi FERR or NERR Register","R","R","R","R","R","R","R","R","0x00","Lindenhurst Chipset Event: Hi Nonfatal"
-"0xE1","0x05","0x01","0x02","Status Register Contents","R","R","R","R","R","R","R","R","0x00","Fatal internal north bridge error"
-"0xE1","0x05","0x01","0x03","Status Register Contents","R","R","R","R","R","R","R","R","0x00","Nonfatal internal north bridge error"
-"0xE1","0x05","0x01","0x04","Bus","Device","Function Number","R","R","R","R","R","R","0x00","Link Degrade Event"
-"0xE1","0x05","0x01","0x05","R","R","R","R","R","R","R","R","R","0x00","Spurious Memory Event"
-"0xE2","0x00","Register ID","R","First Fire Bit (0xFF=N/A)","Register Data (LSB)","Register Data","Register Data","Register Data","Register Data","Register Data","Register Data","Register Data (MSB)","0x00","PCI Industry Standard Register Dump"
-"0xE2","0x01","Register ID","R","First Fire Bit (0xFF if N/A)","Register Data (LSB)","Register Data","Register Data","Register Data","Register Data","Register Data","Register Data","Register Data (MSB)","0x00","PCI-X Industry Standard Register Dump"
-"0xE2","0x02","Register ID","R","First Fire Bit (0xFF if N/A)","Register Data (LSB)","Register Data","Register Data","Register Data","Register Data","Register Data","Register Data","Register Data (MSB)","0x00","PCI Express Industry Standard Register Dump"
-"0xE3","Platform ID","Register ID","R","R","R","R","R","R","Register Data (LSB)","Register Data","Register Data","Register Data (MSB)","0x00","RAW Hex Dump"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x00","0x00","R","R","R","0x00","PCI Event/Error Occurred. Next non-timestamped OEM SEL entry will contain details of the specific PCI event/error"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x01","0x00","R","R","R","0x00","Processor Event/Error Occurred. Next non-timestamped OEM SEL entry will contain details of the specific PCI event/error"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x02","0x00","R","R","R","0x00","Memory Event/Error Occurred. Next non-timestamped OEM SEL entry will contain details of the specific PCI event/error"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x00","R","R","R","0x00"," Scalability Event/Error Occurred. Next non-timestamped OEM SEL entry will contain details of the specific PCI event/error"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x07","R","R","0x00","Merge Failure - BIOS version is newer than secondary server BIOS"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x08","R","R","0x00","Merge Failure - BIOS version is older than secondary server BIOS"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x09","R","R","0x00","Merge Failure - Primary server booted standalone"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x0A","R","R","0x00","Merge Failure - Communication error occurred with secondary server"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x0B","R","R","0x00","Merge Failure - Timed out waiting for secondary server"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x10","R","R","0x00","Merge Failure - No path through partition"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x11","Expected Chassis Count","R","0x00","Merge Information - Expected chassis count"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x12","Actual Chassis Count","R","0x00","Merge Information - Actual chassis count"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x19","R","R","0x00","Merge Failure - No secondary servers found to merge"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x34","R","R","0x00","Merge Failure - Primary server booted standalone"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x35","R","R","0x00","Merge Failure - Communication error occurred with primary server"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x36","R","R","0x00","Merge Failure - Secondary server booted standalone"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x41","R","R","0x00","Merge Failure - Timeout occurred waiting for primary server"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x46","R","R","0x00","Merge Failure - BIOS version is newer than primary server BIOS"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x47","R","R","0x00","Merge Failure - BIOS version is older than primary server BIOS"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x52","R","R","0x00","Merge Failure - Scalability hardware not detected"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x53","R","R","0x00","Merge Failure - No partition descriptor found"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x54","R","R","0x00","Merge Failure - Error Reading partition descriptor"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x55","R","R","0x00","Merge Failure - Error Reading system UUID"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x56","R","R","0x00","Merge Failure [Byte 13 value]"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x57","R","R","0x00","Merge Failure [Byte 13 value]"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x58","R","R","0x00","Merge Failure [Byte 13 value]"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x59","R","R","0x00","Merge Failure [Byte 13 value]"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x5A","R","R","0x00","Merge Failure [Byte 13 value]"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x5B","R","R","0x00","Merge Failure [Byte 13 value]"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x03","0x01","0x5C","R","R","0x00","Merge Failure [Byte 13 value]"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x04","0x00","R","R","R","0x00","Bus PCI Event/Error Occurred. Next non-timestamped OEM SEL entry will contain details of the specific PCI event/error"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x05","0x00","R","R","R","0x00","Chipset Event/Error Occurred. Next non-timestamped OEM SEL entry will contain details of the specific PCI event/error"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x06","0x01","PostVersion","BMCVersion","R","0x00","Incompatible BIOS-BMC Power Executive support"
-"0xC0","XX","XX","XX","XX","XX","XX","XX","0x06","0x02","R","R","R","0x00","Boot denied due to power limitations"

+ 0 - 37
app/ipmitool-1.8.18/control/Makefile.am

@@ -1,37 +0,0 @@
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-MAINTAINERCLEANFILES	= Makefile.in
-
-EXTRA_DIST		= pkginfo.in prototype.in \
-			  ipmitool.spec.in rpmmacros.in rpmrc
-
-dist-hook: pkginfo prototype rpmmacros
-

+ 0 - 503
app/ipmitool-1.8.18/control/Makefile.in

@@ -1,503 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = control
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
-	$(srcdir)/pkginfo.in $(srcdir)/prototype.in \
-	$(srcdir)/rpmmacros.in $(srcdir)/ipmitool.spec.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES = pkginfo prototype rpmmacros ipmitool.spec
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-SOURCES =
-DIST_SOURCES =
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-ARCH = @ARCH@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BASEDIR = @BASEDIR@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DISTRO = @DISTRO@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTF_BMC = @INTF_BMC@
-INTF_BMC_LIB = @INTF_BMC_LIB@
-INTF_DUMMY = @INTF_DUMMY@
-INTF_DUMMY_LIB = @INTF_DUMMY_LIB@
-INTF_FREE = @INTF_FREE@
-INTF_FREE_LIB = @INTF_FREE_LIB@
-INTF_IMB = @INTF_IMB@
-INTF_IMB_LIB = @INTF_IMB_LIB@
-INTF_LAN = @INTF_LAN@
-INTF_LANPLUS = @INTF_LANPLUS@
-INTF_LANPLUS_LIB = @INTF_LANPLUS_LIB@
-INTF_LAN_LIB = @INTF_LAN_LIB@
-INTF_LIPMI = @INTF_LIPMI@
-INTF_LIPMI_LIB = @INTF_LIPMI_LIB@
-INTF_OPEN = @INTF_OPEN@
-INTF_OPEN_LIB = @INTF_OPEN_LIB@
-INTF_SERIAL = @INTF_SERIAL@
-INTF_SERIAL_LIB = @INTF_SERIAL_LIB@
-INTF_USB = @INTF_USB@
-INTF_USB_LIB = @INTF_USB_LIB@
-IPMITOOL_INTF_LIB = @IPMITOOL_INTF_LIB@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS = @OS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-POW_LIB = @POW_LIB@
-PSTAMP = @PSTAMP@
-RANLIB = @RANLIB@
-RPMBUILD = @RPMBUILD@
-RPM_RELEASE = @RPM_RELEASE@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_configure_args = @ac_configure_args@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-MAINTAINERCLEANFILES = Makefile.in
-EXTRA_DIST = pkginfo.in prototype.in \
-			  ipmitool.spec.in rpmmacros.in rpmrc
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign control/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign control/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-pkginfo: $(top_builddir)/config.status $(srcdir)/pkginfo.in
-	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
-prototype: $(top_builddir)/config.status $(srcdir)/prototype.in
-	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
-rpmmacros: $(top_builddir)/config.status $(srcdir)/rpmmacros.in
-	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
-ipmitool.spec: $(top_builddir)/config.status $(srcdir)/ipmitool.spec.in
-	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-tags TAGS:
-
-ctags CTAGS:
-
-cscope cscopelist:
-
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-	$(MAKE) $(AM_MAKEFLAGS) \
-	  top_distdir="$(top_distdir)" distdir="$(distdir)" \
-	  dist-hook
-check-am: all-am
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic clean-libtool mostlyclean-am
-
-distclean: distclean-am
-	-rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-am clean clean-generic clean-libtool \
-	cscopelist-am ctags-am dist-hook distclean distclean-generic \
-	distclean-libtool distdir dvi dvi-am html html-am info info-am \
-	install install-am install-data install-data-am install-dvi \
-	install-dvi-am install-exec install-exec-am install-html \
-	install-html-am install-info install-info-am install-man \
-	install-pdf install-pdf-am install-ps install-ps-am \
-	install-strip installcheck installcheck-am installdirs \
-	maintainer-clean maintainer-clean-generic mostlyclean \
-	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
-	tags-am uninstall uninstall-am
-
-
-dist-hook: pkginfo prototype rpmmacros
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:

+ 0 - 10
app/ipmitool-1.8.18/control/pkginfo.in

@@ -1,10 +0,0 @@
-PKG="@PACKAGE@"
-NAME="@PACKAGE@ - Utility for Intelligent Platform Management Interface (IPMI) control"
-ARCH="@ARCH@"
-VERSION="@VERSION@"
-CATEGORY="system"
-VENDOR="Duncan Laurie"
-EMAIL="duncan@iceblink.org"
-PSTAMP="@PSTAMP@"
-BASEDIR="@BASEDIR@"
-CLASSES="none"

+ 0 - 12
app/ipmitool-1.8.18/control/prototype.in

@@ -1,12 +0,0 @@
-i pkginfo
-d none bin ? ? ?
-f none bin/@PACKAGE@=../src/@PACKAGE@ 0755 root bin
-d none sbin ? ? ?
-f none sbin/ipmievd=../src/ipmievd 0755 root bin
-d none share ? ? ?
-d none share/man ? ? ?
-d none share/man/man1 ? ? ?
-f none share/man/man1/@PACKAGE@.1=../doc/@PACKAGE@.1 0644 root bin
-d none share/man/man8 ? ? ?
-f none share/man/man8/ipmievd.8=../doc/ipmievd.8 0644 root bin
-

+ 0 - 12
app/ipmitool-1.8.18/control/rpmmacros.in

@@ -1,12 +0,0 @@
-%_topdir	%(echo $BUILDDIR)
-%_sourcedir     %{_topdir}/..
-%_specdir       %{_sourcedir}
-%_tmppath	%{_topdir}/tmp
-%_builddir	%{_topdir}/BUILD
-%_buildroot	%{_topdir}/%{_tmppath}/%{name}-%{version}-root
-%_rpmdir	%{_topdir}/RPMS
-%_srcrpmdir	%{_topdir}/SRPMS
-%_distro	@DISTRO@
-%_rpmfilename	%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
-%packager	jmank@hp.com
-%distribution	Sourceforge Build

+ 0 - 8
app/ipmitool-1.8.18/control/rpmrc

@@ -1,8 +0,0 @@
-macrofiles: /usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:/etc/rpm/macros.specspo:/etc/rpm/macros:/etc/rpm/%{_target}/macros:%(echo $CONFIGDIR)/rpmmacros
-
-buildarchtranslate: athlon: i386
-buildarchtranslate: i686: i386
-buildarchtranslate: i586: i386
-buildarchtranslate: i486: i386
-buildarchtranslate: i386: i386
-

+ 0 - 36
app/ipmitool-1.8.18/doc/Makefile.am

@@ -1,36 +0,0 @@
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-MAINTAINERCLEANFILES	= Makefile.in
-
-man_MANS		= ipmitool.1 ipmievd.8
-
-EXTRA_DIST		= $(man_MANS)
-

+ 0 - 611
app/ipmitool-1.8.18/doc/Makefile.in

@@ -1,611 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = doc
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-SOURCES =
-DIST_SOURCES =
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
-    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
-    *) f=$$p;; \
-  esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
-  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
-  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
-  for p in $$list; do echo "$$p $$p"; done | \
-  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
-  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
-    if (++n[$$2] == $(am__install_max)) \
-      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
-    END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
-  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
-  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
-  test -z "$$files" \
-    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
-    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
-         $(am__cd) "$$dir" && rm -f $$files; }; \
-  }
-man1dir = $(mandir)/man1
-am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man8dir)"
-man8dir = $(mandir)/man8
-NROFF = nroff
-MANS = $(man_MANS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-ARCH = @ARCH@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BASEDIR = @BASEDIR@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DISTRO = @DISTRO@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTF_BMC = @INTF_BMC@
-INTF_BMC_LIB = @INTF_BMC_LIB@
-INTF_DUMMY = @INTF_DUMMY@
-INTF_DUMMY_LIB = @INTF_DUMMY_LIB@
-INTF_FREE = @INTF_FREE@
-INTF_FREE_LIB = @INTF_FREE_LIB@
-INTF_IMB = @INTF_IMB@
-INTF_IMB_LIB = @INTF_IMB_LIB@
-INTF_LAN = @INTF_LAN@
-INTF_LANPLUS = @INTF_LANPLUS@
-INTF_LANPLUS_LIB = @INTF_LANPLUS_LIB@
-INTF_LAN_LIB = @INTF_LAN_LIB@
-INTF_LIPMI = @INTF_LIPMI@
-INTF_LIPMI_LIB = @INTF_LIPMI_LIB@
-INTF_OPEN = @INTF_OPEN@
-INTF_OPEN_LIB = @INTF_OPEN_LIB@
-INTF_SERIAL = @INTF_SERIAL@
-INTF_SERIAL_LIB = @INTF_SERIAL_LIB@
-INTF_USB = @INTF_USB@
-INTF_USB_LIB = @INTF_USB_LIB@
-IPMITOOL_INTF_LIB = @IPMITOOL_INTF_LIB@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS = @OS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-POW_LIB = @POW_LIB@
-PSTAMP = @PSTAMP@
-RANLIB = @RANLIB@
-RPMBUILD = @RPMBUILD@
-RPM_RELEASE = @RPM_RELEASE@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_configure_args = @ac_configure_args@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-MAINTAINERCLEANFILES = Makefile.in
-man_MANS = ipmitool.1 ipmievd.8
-EXTRA_DIST = $(man_MANS)
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign doc/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-install-man1: $(man_MANS)
-	@$(NORMAL_INSTALL)
-	@list1=''; \
-	list2='$(man_MANS)'; \
-	test -n "$(man1dir)" \
-	  && test -n "`echo $$list1$$list2`" \
-	  || exit 0; \
-	echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
-	$(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
-	{ for i in $$list1; do echo "$$i"; done;  \
-	if test -n "$$list2"; then \
-	  for i in $$list2; do echo "$$i"; done \
-	    | sed -n '/\.1[a-z]*$$/p'; \
-	fi; \
-	} | while read p; do \
-	  if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
-	  echo "$$d$$p"; echo "$$p"; \
-	done | \
-	sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
-	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
-	sed 'N;N;s,\n, ,g' | { \
-	list=; while read file base inst; do \
-	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \
-	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
-	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
-	  fi; \
-	done; \
-	for i in $$list; do echo "$$i"; done | $(am__base_list) | \
-	while read files; do \
-	  test -z "$$files" || { \
-	    echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
-	    $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
-	done; }
-
-uninstall-man1:
-	@$(NORMAL_UNINSTALL)
-	@list=''; test -n "$(man1dir)" || exit 0; \
-	files=`{ for i in $$list; do echo "$$i"; done; \
-	l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
-	  sed -n '/\.1[a-z]*$$/p'; \
-	} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
-	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
-	dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
-install-man8: $(man_MANS)
-	@$(NORMAL_INSTALL)
-	@list1=''; \
-	list2='$(man_MANS)'; \
-	test -n "$(man8dir)" \
-	  && test -n "`echo $$list1$$list2`" \
-	  || exit 0; \
-	echo " $(MKDIR_P) '$(DESTDIR)$(man8dir)'"; \
-	$(MKDIR_P) "$(DESTDIR)$(man8dir)" || exit 1; \
-	{ for i in $$list1; do echo "$$i"; done;  \
-	if test -n "$$list2"; then \
-	  for i in $$list2; do echo "$$i"; done \
-	    | sed -n '/\.8[a-z]*$$/p'; \
-	fi; \
-	} | while read p; do \
-	  if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
-	  echo "$$d$$p"; echo "$$p"; \
-	done | \
-	sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
-	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
-	sed 'N;N;s,\n, ,g' | { \
-	list=; while read file base inst; do \
-	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \
-	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
-	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \
-	  fi; \
-	done; \
-	for i in $$list; do echo "$$i"; done | $(am__base_list) | \
-	while read files; do \
-	  test -z "$$files" || { \
-	    echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \
-	    $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \
-	done; }
-
-uninstall-man8:
-	@$(NORMAL_UNINSTALL)
-	@list=''; test -n "$(man8dir)" || exit 0; \
-	files=`{ for i in $$list; do echo "$$i"; done; \
-	l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
-	  sed -n '/\.8[a-z]*$$/p'; \
-	} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
-	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
-	dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir)
-tags TAGS:
-
-ctags CTAGS:
-
-cscope cscopelist:
-
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-am
-all-am: Makefile $(MANS)
-installdirs:
-	for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man8dir)"; do \
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
-	done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic clean-libtool mostlyclean-am
-
-distclean: distclean-am
-	-rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-man
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man: install-man1 install-man8
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-man
-
-uninstall-man: uninstall-man1 uninstall-man8
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-am clean clean-generic clean-libtool \
-	cscopelist-am ctags-am distclean distclean-generic \
-	distclean-libtool distdir dvi dvi-am html html-am info info-am \
-	install install-am install-data install-data-am install-dvi \
-	install-dvi-am install-exec install-exec-am install-html \
-	install-html-am install-info install-info-am install-man \
-	install-man1 install-man8 install-pdf install-pdf-am \
-	install-ps install-ps-am install-strip installcheck \
-	installcheck-am installdirs maintainer-clean \
-	maintainer-clean-generic mostlyclean mostlyclean-generic \
-	mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
-	uninstall-am uninstall-man uninstall-man1 uninstall-man8
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:

+ 0 - 34
app/ipmitool-1.8.18/include/Makefile.am

@@ -1,34 +0,0 @@
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-MAINTAINERCLEANFILES = Makefile.in
-
-SUBDIRS = ipmitool
-

+ 0 - 666
app/ipmitool-1.8.18/include/Makefile.in

@@ -1,666 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = include
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-SOURCES =
-DIST_SOURCES =
-RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
-	ctags-recursive dvi-recursive html-recursive info-recursive \
-	install-data-recursive install-dvi-recursive \
-	install-exec-recursive install-html-recursive \
-	install-info-recursive install-pdf-recursive \
-	install-ps-recursive install-recursive installcheck-recursive \
-	installdirs-recursive pdf-recursive ps-recursive \
-	tags-recursive uninstall-recursive
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
-  distclean-recursive maintainer-clean-recursive
-am__recursive_targets = \
-  $(RECURSIVE_TARGETS) \
-  $(RECURSIVE_CLEAN_TARGETS) \
-  $(am__extra_recursive_targets)
-AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
-	distdir
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates.  Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
-  BEGIN { nonempty = 0; } \
-  { items[$$0] = 1; nonempty = 1; } \
-  END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique.  This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
-  list='$(am__tagged_files)'; \
-  unique=`for i in $$list; do \
-    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-  done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DIST_SUBDIRS = $(SUBDIRS)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-am__relativize = \
-  dir0=`pwd`; \
-  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
-  sed_rest='s,^[^/]*/*,,'; \
-  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
-  sed_butlast='s,/*[^/]*$$,,'; \
-  while test -n "$$dir1"; do \
-    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
-    if test "$$first" != "."; then \
-      if test "$$first" = ".."; then \
-        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
-        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
-      else \
-        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
-        if test "$$first2" = "$$first"; then \
-          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
-        else \
-          dir2="../$$dir2"; \
-        fi; \
-        dir0="$$dir0"/"$$first"; \
-      fi; \
-    fi; \
-    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
-  done; \
-  reldir="$$dir2"
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-ARCH = @ARCH@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BASEDIR = @BASEDIR@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DISTRO = @DISTRO@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTF_BMC = @INTF_BMC@
-INTF_BMC_LIB = @INTF_BMC_LIB@
-INTF_DUMMY = @INTF_DUMMY@
-INTF_DUMMY_LIB = @INTF_DUMMY_LIB@
-INTF_FREE = @INTF_FREE@
-INTF_FREE_LIB = @INTF_FREE_LIB@
-INTF_IMB = @INTF_IMB@
-INTF_IMB_LIB = @INTF_IMB_LIB@
-INTF_LAN = @INTF_LAN@
-INTF_LANPLUS = @INTF_LANPLUS@
-INTF_LANPLUS_LIB = @INTF_LANPLUS_LIB@
-INTF_LAN_LIB = @INTF_LAN_LIB@
-INTF_LIPMI = @INTF_LIPMI@
-INTF_LIPMI_LIB = @INTF_LIPMI_LIB@
-INTF_OPEN = @INTF_OPEN@
-INTF_OPEN_LIB = @INTF_OPEN_LIB@
-INTF_SERIAL = @INTF_SERIAL@
-INTF_SERIAL_LIB = @INTF_SERIAL_LIB@
-INTF_USB = @INTF_USB@
-INTF_USB_LIB = @INTF_USB_LIB@
-IPMITOOL_INTF_LIB = @IPMITOOL_INTF_LIB@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS = @OS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-POW_LIB = @POW_LIB@
-PSTAMP = @PSTAMP@
-RANLIB = @RANLIB@
-RPMBUILD = @RPMBUILD@
-RPM_RELEASE = @RPM_RELEASE@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_configure_args = @ac_configure_args@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-MAINTAINERCLEANFILES = Makefile.in
-SUBDIRS = ipmitool
-all: all-recursive
-
-.SUFFIXES:
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign include/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run 'make' without going through this Makefile.
-# To change the values of 'make' variables: instead of editing Makefiles,
-# (1) if the variable is set in 'config.status', edit 'config.status'
-#     (which will cause the Makefiles to be regenerated when you run 'make');
-# (2) otherwise, pass the desired values on the 'make' command line.
-$(am__recursive_targets):
-	@fail=; \
-	if $(am__make_keepgoing); then \
-	  failcom='fail=yes'; \
-	else \
-	  failcom='exit 1'; \
-	fi; \
-	dot_seen=no; \
-	target=`echo $@ | sed s/-recursive//`; \
-	case "$@" in \
-	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
-	  *) list='$(SUBDIRS)' ;; \
-	esac; \
-	for subdir in $$list; do \
-	  echo "Making $$target in $$subdir"; \
-	  if test "$$subdir" = "."; then \
-	    dot_seen=yes; \
-	    local_target="$$target-am"; \
-	  else \
-	    local_target="$$target"; \
-	  fi; \
-	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
-	  || eval $$failcom; \
-	done; \
-	if test "$$dot_seen" = "no"; then \
-	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
-	fi; test -z "$$fail"
-
-ID: $(am__tagged_files)
-	$(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-recursive
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	set x; \
-	here=`pwd`; \
-	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
-	  include_option=--etags-include; \
-	  empty_fix=.; \
-	else \
-	  include_option=--include; \
-	  empty_fix=; \
-	fi; \
-	list='$(SUBDIRS)'; for subdir in $$list; do \
-	  if test "$$subdir" = .; then :; else \
-	    test ! -f $$subdir/TAGS || \
-	      set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
-	  fi; \
-	done; \
-	$(am__define_uniq_tagged_files); \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: ctags-recursive
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	$(am__define_uniq_tagged_files); \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-recursive
-
-cscopelist-am: $(am__tagged_files)
-	list='$(am__tagged_files)'; \
-	case "$(srcdir)" in \
-	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
-	  *) sdir=$(subdir)/$(srcdir) ;; \
-	esac; \
-	for i in $$list; do \
-	  if test -f "$$i"; then \
-	    echo "$(subdir)/$$i"; \
-	  else \
-	    echo "$$sdir/$$i"; \
-	  fi; \
-	done >> $(top_builddir)/cscope.files
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-	@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
-	  if test "$$subdir" = .; then :; else \
-	    $(am__make_dryrun) \
-	      || test -d "$(distdir)/$$subdir" \
-	      || $(MKDIR_P) "$(distdir)/$$subdir" \
-	      || exit 1; \
-	    dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
-	    $(am__relativize); \
-	    new_distdir=$$reldir; \
-	    dir1=$$subdir; dir2="$(top_distdir)"; \
-	    $(am__relativize); \
-	    new_top_distdir=$$reldir; \
-	    echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
-	    echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
-	    ($(am__cd) $$subdir && \
-	      $(MAKE) $(AM_MAKEFLAGS) \
-	        top_distdir="$$new_top_distdir" \
-	        distdir="$$new_distdir" \
-		am__remove_distdir=: \
-		am__skip_length_check=: \
-		am__skip_mode_fix=: \
-	        distdir) \
-	      || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-recursive
-all-am: Makefile
-installdirs: installdirs-recursive
-installdirs-am:
-install: install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-recursive
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-recursive
-
-clean-am: clean-generic clean-libtool mostlyclean-am
-
-distclean: distclean-recursive
-	-rm -f Makefile
-distclean-am: clean-am distclean-generic distclean-tags
-
-dvi: dvi-recursive
-
-dvi-am:
-
-html: html-recursive
-
-html-am:
-
-info: info-recursive
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-recursive
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-recursive
-
-install-html-am:
-
-install-info: install-info-recursive
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-recursive
-
-install-pdf-am:
-
-install-ps: install-ps-recursive
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-recursive
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
-
-pdf: pdf-recursive
-
-pdf-am:
-
-ps: ps-recursive
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: $(am__recursive_targets) install-am install-strip
-
-.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
-	check-am clean clean-generic clean-libtool cscopelist-am ctags \
-	ctags-am distclean distclean-generic distclean-libtool \
-	distclean-tags distdir dvi dvi-am html html-am info info-am \
-	install install-am install-data install-data-am install-dvi \
-	install-dvi-am install-exec install-exec-am install-html \
-	install-html-am install-info install-info-am install-man \
-	install-pdf install-pdf-am install-ps install-ps-am \
-	install-strip installcheck installcheck-am installdirs \
-	installdirs-am maintainer-clean maintainer-clean-generic \
-	mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
-	ps ps-am tags tags-am uninstall uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:

+ 0 - 42
app/ipmitool-1.8.18/include/ipmitool/Makefile.am

@@ -1,42 +0,0 @@
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-MAINTAINERCLEANFILES = Makefile.in
-
-noinst_HEADERS = log.h bswap.h hpm2.h helper.h ipmi.h ipmi_cc.h ipmi_intf.h \
-	ipmi_chassis.h ipmi_entity.h ipmi_fru.h ipmi_hpmfwupg.h ipmi_lanp.h \
-	ipmi_sdr.h ipmi_sel.h ipmi_sol.h ipmi_mc.h ipmi_raw.h \
-	ipmi_channel.h ipmi_sensor.h ipmi_event.h ipmi_session.h \
-	ipmi_strings.h ipmi_constants.h ipmi_user.h ipmi_pef.h \
-	ipmi_oem.h ipmi_sdradd.h ipmi_isol.h ipmi_sunoem.h ipmi_picmg.h \
-	ipmi_fwum.h ipmi_main.h ipmi_tsol.h ipmi_firewall.h \
-	ipmi_kontronoem.h ipmi_ekanalyzer.h ipmi_gendev.h ipmi_ime.h \
-	ipmi_delloem.h ipmi_dcmi.h ipmi_vita.h ipmi_sel_supermicro.h \
-	ipmi_cfgp.h ipmi_lanp6.h

+ 0 - 564
app/ipmitool-1.8.18/include/ipmitool/Makefile.in

@@ -1,564 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = include/ipmitool
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
-	$(noinst_HEADERS)
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-SOURCES =
-DIST_SOURCES =
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-HEADERS = $(noinst_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates.  Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
-  BEGIN { nonempty = 0; } \
-  { items[$$0] = 1; nonempty = 1; } \
-  END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique.  This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
-  list='$(am__tagged_files)'; \
-  unique=`for i in $$list; do \
-    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-  done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-ARCH = @ARCH@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BASEDIR = @BASEDIR@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DISTRO = @DISTRO@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTF_BMC = @INTF_BMC@
-INTF_BMC_LIB = @INTF_BMC_LIB@
-INTF_DUMMY = @INTF_DUMMY@
-INTF_DUMMY_LIB = @INTF_DUMMY_LIB@
-INTF_FREE = @INTF_FREE@
-INTF_FREE_LIB = @INTF_FREE_LIB@
-INTF_IMB = @INTF_IMB@
-INTF_IMB_LIB = @INTF_IMB_LIB@
-INTF_LAN = @INTF_LAN@
-INTF_LANPLUS = @INTF_LANPLUS@
-INTF_LANPLUS_LIB = @INTF_LANPLUS_LIB@
-INTF_LAN_LIB = @INTF_LAN_LIB@
-INTF_LIPMI = @INTF_LIPMI@
-INTF_LIPMI_LIB = @INTF_LIPMI_LIB@
-INTF_OPEN = @INTF_OPEN@
-INTF_OPEN_LIB = @INTF_OPEN_LIB@
-INTF_SERIAL = @INTF_SERIAL@
-INTF_SERIAL_LIB = @INTF_SERIAL_LIB@
-INTF_USB = @INTF_USB@
-INTF_USB_LIB = @INTF_USB_LIB@
-IPMITOOL_INTF_LIB = @IPMITOOL_INTF_LIB@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS = @OS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-POW_LIB = @POW_LIB@
-PSTAMP = @PSTAMP@
-RANLIB = @RANLIB@
-RPMBUILD = @RPMBUILD@
-RPM_RELEASE = @RPM_RELEASE@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_configure_args = @ac_configure_args@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-MAINTAINERCLEANFILES = Makefile.in
-noinst_HEADERS = log.h bswap.h hpm2.h helper.h ipmi.h ipmi_cc.h ipmi_intf.h \
-	ipmi_chassis.h ipmi_entity.h ipmi_fru.h ipmi_hpmfwupg.h ipmi_lanp.h \
-	ipmi_sdr.h ipmi_sel.h ipmi_sol.h ipmi_mc.h ipmi_raw.h \
-	ipmi_channel.h ipmi_sensor.h ipmi_event.h ipmi_session.h \
-	ipmi_strings.h ipmi_constants.h ipmi_user.h ipmi_pef.h \
-	ipmi_oem.h ipmi_sdradd.h ipmi_isol.h ipmi_sunoem.h ipmi_picmg.h \
-	ipmi_fwum.h ipmi_main.h ipmi_tsol.h ipmi_firewall.h \
-	ipmi_kontronoem.h ipmi_ekanalyzer.h ipmi_gendev.h ipmi_ime.h \
-	ipmi_delloem.h ipmi_dcmi.h ipmi_vita.h ipmi_sel_supermicro.h \
-	ipmi_cfgp.h ipmi_lanp6.h
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/ipmitool/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign include/ipmitool/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-
-ID: $(am__tagged_files)
-	$(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	set x; \
-	here=`pwd`; \
-	$(am__define_uniq_tagged_files); \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	$(am__define_uniq_tagged_files); \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
-	list='$(am__tagged_files)'; \
-	case "$(srcdir)" in \
-	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
-	  *) sdir=$(subdir)/$(srcdir) ;; \
-	esac; \
-	for i in $$list; do \
-	  if test -f "$$i"; then \
-	    echo "$(subdir)/$$i"; \
-	  else \
-	    echo "$$sdir/$$i"; \
-	  fi; \
-	done >> $(top_builddir)/cscope.files
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-am
-all-am: Makefile $(HEADERS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic clean-libtool mostlyclean-am
-
-distclean: distclean-am
-	-rm -f Makefile
-distclean-am: clean-am distclean-generic distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
-	clean-libtool cscopelist-am ctags ctags-am distclean \
-	distclean-generic distclean-libtool distclean-tags distdir dvi \
-	dvi-am html html-am info info-am install install-am \
-	install-data install-data-am install-dvi install-dvi-am \
-	install-exec install-exec-am install-html install-html-am \
-	install-info install-info-am install-man install-pdf \
-	install-pdf-am install-ps install-ps-am install-strip \
-	installcheck installcheck-am installdirs maintainer-clean \
-	maintainer-clean-generic mostlyclean mostlyclean-generic \
-	mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
-	uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:

+ 0 - 3
app/ipmitool-1.8.18/include/ipmitool/helper.h

@@ -128,7 +128,4 @@ uint16_t ipmi_get_oem_id(struct ipmi_intf *intf);
 # define __maxlen(a, b) ({ int x=strlen(a); int y=strlen(b); (x > y) ? x : y;})
 #endif
 
-// double pow(double base,int ex);
-// double log(double a);
-
 #endif /* IPMI_HELPER_H */

+ 4 - 6
app/ipmitool-1.8.18/include/ipmitool/ipmi.h

@@ -33,6 +33,7 @@
 #ifndef IPMI_H
 #define IPMI_H
 
+#include "ipmitool_def.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <inttypes.h>
@@ -41,10 +42,9 @@
 #include <ipmitool/helper.h>
 #include <ipmitool/ipmi_cc.h>
 
-/****************** jimbo add ******************/
-#define IPMI_INTF_LAN 1
-#define ENABLE_ALL_OPTIONS 1
-/****************** jimbo end ******************/
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
 
 #define IPMI_BUF_SIZE 1024
 #define IPMI_MAX_MD_SIZE 0x20
@@ -55,8 +55,6 @@
 #define ATTRIBUTE_PACKING __attribute__ ((packed))
 #endif
 
-/****** jimbo add *********/
-#define VERSION "1.8.18"
 
 /* From table 13.16 of the IPMI v2 specification */
 #define IPMI_PAYLOAD_TYPE_IPMI               0x00

+ 1 - 1
app/ipmitool-1.8.18/include/ipmitool/ipmi_ime.h

@@ -33,7 +33,7 @@
 #ifndef IPMI_INTF_H
 #define IPMI_INTF_H
 
- #include <ipmitool/ipmi.h>
+#include <ipmitool/ipmi.h>
 #include <ipmitool/ipmi_oem.h>
 #include <ipmitool/ipmi_constants.h>
 

BIN
app/ipmitool-1.8.18/ipmitool


+ 3 - 3
app/ipmitool-1.8.18/control/ipmitool.spec.in → app/ipmitool-1.8.18/ipmitool.spec

@@ -1,7 +1,7 @@
 Name:         ipmitool
 Summary:      ipmitool - Utility for IPMI control
-Version:      @VERSION@
-Release:      @RPM_RELEASE@%{?_distro:.%{_distro}}
+Version:      1.8.18
+Release:      1%{?_distro:.%{_distro}}
 License:      BSD
 Group:        Utilities
 Packager:     Jim Mankovich <jmank@hp.com>
@@ -32,7 +32,7 @@ fi
 
 %build
 ./configure --with-kerneldir \
-	--with-rpm-distro=@DISTRO@ \
+	--with-rpm-distro= \
 	--prefix=%{_prefix} \
 	--bindir=%{_bindir} \
 	--sbindir=%{_sbindir} \

+ 8 - 0
app/ipmitool-1.8.18/ipmitool_def.h

@@ -0,0 +1,8 @@
+#ifndef __IPMITOOL_DEF_H__
+#define __IPMITOOL_DEF_H__
+
+#define HAVE_CONFIG_H 	1
+
+
+
+#endif /*__IPMITOOL_DEF_H__*/

+ 0 - 4
app/ipmitool-1.8.18/jimbo note

@@ -1,4 +0,0 @@
-
-UDP通信,IPPROTO_UDP
-SOCK_DGRAM
-IPV4

+ 0 - 22
app/ipmitool-1.8.18/jimbo note.txt

@@ -1,22 +0,0 @@
-
-ipmitool -I lan -H 127.0.0.1 -U admin -P admin raw 0x2e 0x01
-
--h help
--V version
--p port
--d devive number
--C cipher_suite_id
--v verbose
--c csv_output
--t target_addr
--b target_channel
--T transit_addr
--B transit_channel
--m arg_addr
--I interface
-
-
-1. not support ipmi shell
-2. no config.h file
-3. not support sol
-4. not support open interface -I

+ 1 - 0
app/ipmitool-1.8.18/lib/.libs/libipmitool.la

@@ -0,0 +1 @@
+../libipmitool.la

+ 0 - 50
app/ipmitool-1.8.18/lib/Makefile.am

@@ -1,50 +0,0 @@
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-AUTOMAKE_OPTIONS		= subdir-objects
-AM_CPPFLAGS			= -I$(top_srcdir)/include
-MAINTAINERCLEANFILES		= Makefile.in
-
-noinst_LTLIBRARIES		= libipmitool.la
-libipmitool_la_SOURCES	= helper.c ipmi_sdr.c ipmi_sel.c ipmi_sol.c ipmi_pef.c \
-				  ipmi_lanp.c ipmi_fru.c ipmi_chassis.c ipmi_mc.c log.c            \
-				  dimm_spd.c ipmi_sensor.c ipmi_channel.c ipmi_event.c             \
-				  ipmi_session.c ipmi_strings.c ipmi_user.c ipmi_raw.c             \
-				  ipmi_oem.c ipmi_isol.c ipmi_sunoem.c ipmi_fwum.c ipmi_picmg.c    \
-				  ipmi_main.c ipmi_tsol.c ipmi_firewall.c ipmi_kontronoem.c        \
-				  ipmi_hpmfwupg.c ipmi_sdradd.c ipmi_ekanalyzer.c ipmi_gendev.c    \
-				  ipmi_ime.c ipmi_delloem.c ipmi_dcmi.c hpm2.c ipmi_vita.c \
-				  ipmi_lanp6.c ipmi_cfgp.c \
-				  ../src/plugins/lan/md5.c ../src/plugins/lan/md5.h
-
-libipmitool_la_LDFLAGS		= -export-dynamic
-libipmitool_la_LIBADD		= -lm
-libipmitool_la_DEPENDENCIES	= 
-

+ 0 - 717
app/ipmitool-1.8.18/lib/Makefile.in

@@ -1,717 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = lib
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
-	$(top_srcdir)/depcomp
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LTLIBRARIES = $(noinst_LTLIBRARIES)
-am__dirstamp = $(am__leading_dot)dirstamp
-am_libipmitool_la_OBJECTS = helper.lo ipmi_sdr.lo ipmi_sel.lo \
-	ipmi_sol.lo ipmi_pef.lo ipmi_lanp.lo ipmi_fru.lo \
-	ipmi_chassis.lo ipmi_mc.lo log.lo dimm_spd.lo ipmi_sensor.lo \
-	ipmi_channel.lo ipmi_event.lo ipmi_session.lo ipmi_strings.lo \
-	ipmi_user.lo ipmi_raw.lo ipmi_oem.lo ipmi_isol.lo \
-	ipmi_sunoem.lo ipmi_fwum.lo ipmi_picmg.lo ipmi_main.lo \
-	ipmi_tsol.lo ipmi_firewall.lo ipmi_kontronoem.lo \
-	ipmi_hpmfwupg.lo ipmi_sdradd.lo ipmi_ekanalyzer.lo \
-	ipmi_gendev.lo ipmi_ime.lo ipmi_delloem.lo ipmi_dcmi.lo \
-	hpm2.lo ipmi_vita.lo ipmi_lanp6.lo ipmi_cfgp.lo \
-	../src/plugins/lan/md5.lo
-libipmitool_la_OBJECTS = $(am_libipmitool_la_OBJECTS)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 = 
-libipmitool_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
-	$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
-	$(AM_CFLAGS) $(CFLAGS) $(libipmitool_la_LDFLAGS) $(LDFLAGS) -o \
-	$@
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
-	$(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo "  CC      " $@;
-am__v_CC_1 = 
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo "  CCLD    " $@;
-am__v_CCLD_1 = 
-SOURCES = $(libipmitool_la_SOURCES)
-DIST_SOURCES = $(libipmitool_la_SOURCES)
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates.  Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
-  BEGIN { nonempty = 0; } \
-  { items[$$0] = 1; nonempty = 1; } \
-  END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique.  This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
-  list='$(am__tagged_files)'; \
-  unique=`for i in $$list; do \
-    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-  done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-ARCH = @ARCH@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BASEDIR = @BASEDIR@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DISTRO = @DISTRO@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTF_BMC = @INTF_BMC@
-INTF_BMC_LIB = @INTF_BMC_LIB@
-INTF_DUMMY = @INTF_DUMMY@
-INTF_DUMMY_LIB = @INTF_DUMMY_LIB@
-INTF_FREE = @INTF_FREE@
-INTF_FREE_LIB = @INTF_FREE_LIB@
-INTF_IMB = @INTF_IMB@
-INTF_IMB_LIB = @INTF_IMB_LIB@
-INTF_LAN = @INTF_LAN@
-INTF_LANPLUS = @INTF_LANPLUS@
-INTF_LANPLUS_LIB = @INTF_LANPLUS_LIB@
-INTF_LAN_LIB = @INTF_LAN_LIB@
-INTF_LIPMI = @INTF_LIPMI@
-INTF_LIPMI_LIB = @INTF_LIPMI_LIB@
-INTF_OPEN = @INTF_OPEN@
-INTF_OPEN_LIB = @INTF_OPEN_LIB@
-INTF_SERIAL = @INTF_SERIAL@
-INTF_SERIAL_LIB = @INTF_SERIAL_LIB@
-INTF_USB = @INTF_USB@
-INTF_USB_LIB = @INTF_USB_LIB@
-IPMITOOL_INTF_LIB = @IPMITOOL_INTF_LIB@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS = @OS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-POW_LIB = @POW_LIB@
-PSTAMP = @PSTAMP@
-RANLIB = @RANLIB@
-RPMBUILD = @RPMBUILD@
-RPM_RELEASE = @RPM_RELEASE@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_configure_args = @ac_configure_args@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-AUTOMAKE_OPTIONS = subdir-objects
-AM_CPPFLAGS = -I$(top_srcdir)/include
-MAINTAINERCLEANFILES = Makefile.in
-noinst_LTLIBRARIES = libipmitool.la
-libipmitool_la_SOURCES = helper.c ipmi_sdr.c ipmi_sel.c ipmi_sol.c ipmi_pef.c \
-				  ipmi_lanp.c ipmi_fru.c ipmi_chassis.c ipmi_mc.c log.c            \
-				  dimm_spd.c ipmi_sensor.c ipmi_channel.c ipmi_event.c             \
-				  ipmi_session.c ipmi_strings.c ipmi_user.c ipmi_raw.c             \
-				  ipmi_oem.c ipmi_isol.c ipmi_sunoem.c ipmi_fwum.c ipmi_picmg.c    \
-				  ipmi_main.c ipmi_tsol.c ipmi_firewall.c ipmi_kontronoem.c        \
-				  ipmi_hpmfwupg.c ipmi_sdradd.c ipmi_ekanalyzer.c ipmi_gendev.c    \
-				  ipmi_ime.c ipmi_delloem.c ipmi_dcmi.c hpm2.c ipmi_vita.c \
-				  ipmi_lanp6.c ipmi_cfgp.c \
-				  ../src/plugins/lan/md5.c ../src/plugins/lan/md5.h
-
-libipmitool_la_LDFLAGS = -export-dynamic
-libipmitool_la_LIBADD = -lm
-libipmitool_la_DEPENDENCIES = 
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign lib/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign lib/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLTLIBRARIES:
-	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
-	@list='$(noinst_LTLIBRARIES)'; \
-	locs=`for p in $$list; do echo $$p; done | \
-	      sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
-	      sort -u`; \
-	test -z "$$locs" || { \
-	  echo rm -f $${locs}; \
-	  rm -f $${locs}; \
-	}
-../src/plugins/lan/$(am__dirstamp):
-	@$(MKDIR_P) ../src/plugins/lan
-	@: > ../src/plugins/lan/$(am__dirstamp)
-../src/plugins/lan/$(DEPDIR)/$(am__dirstamp):
-	@$(MKDIR_P) ../src/plugins/lan/$(DEPDIR)
-	@: > ../src/plugins/lan/$(DEPDIR)/$(am__dirstamp)
-../src/plugins/lan/md5.lo: ../src/plugins/lan/$(am__dirstamp) \
-	../src/plugins/lan/$(DEPDIR)/$(am__dirstamp)
-
-libipmitool.la: $(libipmitool_la_OBJECTS) $(libipmitool_la_DEPENDENCIES) $(EXTRA_libipmitool_la_DEPENDENCIES) 
-	$(AM_V_CCLD)$(libipmitool_la_LINK)  $(libipmitool_la_OBJECTS) $(libipmitool_la_LIBADD) $(LIBS)
-
-mostlyclean-compile:
-	-rm -f *.$(OBJEXT)
-	-rm -f ../src/plugins/lan/*.$(OBJEXT)
-	-rm -f ../src/plugins/lan/*.lo
-
-distclean-compile:
-	-rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@../src/plugins/lan/$(DEPDIR)/md5.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dimm_spd.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/helper.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hpm2.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_cfgp.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_channel.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_chassis.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_dcmi.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_delloem.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_ekanalyzer.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_event.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_firewall.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_fru.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_fwum.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_gendev.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_hpmfwupg.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_ime.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_isol.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_kontronoem.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_lanp.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_lanp6.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_main.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_mc.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_oem.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_pef.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_picmg.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_raw.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_sdr.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_sdradd.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_sel.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_sensor.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_session.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_sol.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_strings.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_sunoem.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_tsol.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_user.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_vita.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log.Plo@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@	$(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@	$(am__mv) $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@	$(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
-@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
-@am__fastdepCC_TRUE@	$(am__mv) $$depbase.Tpo $$depbase.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@	$(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
-@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
-@am__fastdepCC_TRUE@	$(am__mv) $$depbase.Tpo $$depbase.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-	-rm -rf ../src/plugins/lan/.libs ../src/plugins/lan/_libs
-
-ID: $(am__tagged_files)
-	$(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	set x; \
-	here=`pwd`; \
-	$(am__define_uniq_tagged_files); \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	$(am__define_uniq_tagged_files); \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
-	list='$(am__tagged_files)'; \
-	case "$(srcdir)" in \
-	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
-	  *) sdir=$(subdir)/$(srcdir) ;; \
-	esac; \
-	for i in $$list; do \
-	  if test -f "$$i"; then \
-	    echo "$(subdir)/$$i"; \
-	  else \
-	    echo "$$sdir/$$i"; \
-	  fi; \
-	done >> $(top_builddir)/cscope.files
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LTLIBRARIES)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-	-rm -f ../src/plugins/lan/$(DEPDIR)/$(am__dirstamp)
-	-rm -f ../src/plugins/lan/$(am__dirstamp)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
-	mostlyclean-am
-
-distclean: distclean-am
-	-rm -rf ../src/plugins/lan/$(DEPDIR) ./$(DEPDIR)
-	-rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
-	distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -rf ../src/plugins/lan/$(DEPDIR) ./$(DEPDIR)
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
-	mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
-	clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
-	ctags-am distclean distclean-compile distclean-generic \
-	distclean-libtool distclean-tags distdir dvi dvi-am html \
-	html-am info info-am install install-am install-data \
-	install-data-am install-dvi install-dvi-am install-exec \
-	install-exec-am install-html install-html-am install-info \
-	install-info-am install-man install-pdf install-pdf-am \
-	install-ps install-ps-am install-strip installcheck \
-	installcheck-am installdirs maintainer-clean \
-	maintainer-clean-generic mostlyclean mostlyclean-compile \
-	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
-	tags tags-am uninstall uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:

+ 2 - 11
app/ipmitool-1.8.18/lib/dimm_spd.c

@@ -1329,15 +1329,6 @@ const struct valstr jedec_id9_vals[] = {
 	{ 0x00, NULL },
 };
 
-// //jimbo
-// int ldexp(int a, int b)
-// {
-// 	int i,m=1;
-// 	for(i=0;i<b;i++)
-// 		m = 2*m;
-// 	return a*m;
-// }
-
 int
 ipmi_spd_print(uint8_t *spd_data, int len)
 {
@@ -1654,12 +1645,12 @@ ipmi_spd_print_fru(struct ipmi_intf * intf, uint8_t id)
 	fru.size = (rsp->data[1] << 8) | rsp->data[0];
 	fru.access = rsp->data[2] & 0x1;
 
-	printf(  "fru.size = %d bytes (accessed by %s)",
+	lprintf(LOG_DEBUG, "fru.size = %d bytes (accessed by %s)",
 		fru.size, fru.access ? "words" : "bytes");
 
 
 	if (fru.size < 1) {
-		printf(  " Invalid FRU size %d", fru.size);
+		lprintf(LOG_ERR, " Invalid FRU size %d", fru.size);
 		return -1;
 	}
 

+ 117 - 127
app/ipmitool-1.8.18/lib/helper.c

@@ -29,12 +29,12 @@
  * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
  * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  */
-// #define _POSIX_SOURCE
-// #define /* glibc 2.19 and earlier */ _BSD_SOURCE || \
-// 	/* Since glibc 2.20 */_DEFAULT_SOURCE || \
-// 	_XOPEN_SOURCE >= 500 || \
-// 	_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED || \
-// 	/* Since glibc 2.10: */ _POSIX_C_SOURCE >= 200112L \
+#define _POSIX_SOURCE
+#define /* glibc 2.19 and earlier */ _BSD_SOURCE || \
+	/* Since glibc 2.20 */_DEFAULT_SOURCE || \
+	_XOPEN_SOURCE >= 500 || \
+	_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED || \
+	/* Since glibc 2.10: */ _POSIX_C_SOURCE >= 200112L \
 
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -53,6 +53,10 @@
 #include <assert.h>
 #include <ctype.h>
 
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #ifdef HAVE_PATHS_H
 # include <paths.h>
 #else
@@ -62,7 +66,7 @@
 #include <ipmitool/ipmi.h>
 #include <ipmitool/ipmi_intf.h>
 #include <ipmitool/helper.h>
-//#include <ipmitool/log.h>
+#include <ipmitool/log.h>
 
 extern int verbose;
 
@@ -249,13 +253,13 @@ str2mac(const char *arg, uint8_t *buf)
 	unsigned int m6 = 0;
 	if (sscanf(arg, "%02x:%02x:%02x:%02x:%02x:%02x",
 		   &m1, &m2, &m3, &m4, &m5, &m6) != 6) {
-		printf( "Invalid MAC address: %s", arg);
+		lprintf(LOG_ERR, "Invalid MAC address: %s", arg);
 		return -1;
 	}
 	if (m1 > UINT8_MAX || m2 > UINT8_MAX
 			|| m3 > UINT8_MAX || m4 > UINT8_MAX
 			|| m5 > UINT8_MAX || m6 > UINT8_MAX) {
-		printf( "Invalid MAC address: %s", arg);
+		lprintf(LOG_ERR, "Invalid MAC address: %s", arg);
 		return -1;
 	}
 	buf[0] = (uint8_t)m1;
@@ -585,15 +589,15 @@ print_valstr(const struct valstr * vs, const char * title, int loglevel)
 		if (loglevel < 0)
 			printf("\n%s:\n\n", title);
 		else
-			printf( "\n%s:\n", title);
+			lprintf(loglevel, "\n%s:\n", title);
 	}
 
 	if (loglevel < 0) {
 		printf("  VALUE\tHEX\tSTRING\n");
 		printf("==============================================\n");
 	} else {
-		printf( "  VAL\tHEX\tSTRING");
-		printf( "==============================================");
+		lprintf(loglevel, "  VAL\tHEX\tSTRING");
+		lprintf(loglevel, "==============================================");
 	}
 
 	for (i = 0; vs[i].str != NULL; i++) {
@@ -604,16 +608,16 @@ print_valstr(const struct valstr * vs, const char * title, int loglevel)
 				printf("  %d\t0x%04x\t%s\n", vs[i].val, vs[i].val, vs[i].str);
 		} else {
 			if (vs[i].val < 256)
-				printf( "  %d\t0x%02x\t%s", vs[i].val, vs[i].val, vs[i].str);
+				lprintf(loglevel, "  %d\t0x%02x\t%s", vs[i].val, vs[i].val, vs[i].str);
 			else
-				printf( "  %d\t0x%04x\t%s", vs[i].val, vs[i].val, vs[i].str);
+				lprintf(loglevel, "  %d\t0x%04x\t%s", vs[i].val, vs[i].val, vs[i].str);
 		}
 	}
 
 	if (loglevel < 0)
 		printf("\n");
 	else
-		printf( "");
+		lprintf(loglevel, "");
 }
 
 /* print_valstr_2col  -  print value string list in two columns to log or stdout
@@ -634,7 +638,7 @@ print_valstr_2col(const struct valstr * vs, const char * title, int loglevel)
 		if (loglevel < 0)
 			printf("\n%s:\n\n", title);
 		else
-			printf( "\n%s:\n", title);
+			lprintf(loglevel, "\n%s:\n", title);
 	}
 
 	for (i = 0; vs[i].str != NULL; i++) {
@@ -643,7 +647,7 @@ print_valstr_2col(const struct valstr * vs, const char * title, int loglevel)
 			if (loglevel < 0) {
 				printf("  %4d  %-32s\n", vs[i].val, vs[i].str);
 			} else {
-				printf( "  %4d  %-32s\n", vs[i].val, vs[i].str);
+				lprintf(loglevel, "  %4d  %-32s\n", vs[i].val, vs[i].str);
 			}
 		}
 		else {
@@ -651,7 +655,7 @@ print_valstr_2col(const struct valstr * vs, const char * title, int loglevel)
 				printf("  %4d  %-32s    %4d  %-32s\n",
 				       vs[i].val, vs[i].str, vs[i+1].val, vs[i+1].str);
 			} else {
-				printf( "  %4d  %-32s    %4d  %-32s\n",
+				lprintf(loglevel, "  %4d  %-32s    %4d  %-32s\n",
 					vs[i].val, vs[i].str, vs[i+1].val, vs[i+1].str);
 			}
 			i++;
@@ -661,7 +665,7 @@ print_valstr_2col(const struct valstr * vs, const char * title, int loglevel)
 	if (loglevel < 0)
 		printf("\n");
 	else
-		printf( "");
+		lprintf(loglevel, "");
 }
 
 /* ipmi_csum  -  calculate an ipmi checksum
@@ -698,14 +702,14 @@ ipmi_open_file(const char * file, int rw)
 			/* does not exist, ok to create */
 			fp = fopen(file, "w");
 			if (fp == NULL) {
-				printf("Unable to open file %s "
+				lperror(LOG_ERR, "Unable to open file %s "
 					"for write", file);
 				return NULL;
 			}
 			/* created ok, now return the descriptor */
 			return fp;
 		} else {
-			printf( "File %s does not exist", file);
+			lprintf(LOG_ERR, "File %s does not exist", file);
 			return NULL;
 		}
 	}
@@ -715,7 +719,7 @@ ipmi_open_file(const char * file, int rw)
 		/* on read skip the extra checks */
 		fp = fopen(file, "r");
 		if (fp == NULL) {
-			printf( "Unable to open file %s", file);
+			lperror(LOG_ERR, "Unable to open file %s", file);
 			return NULL;
 		}
 		return fp;
@@ -724,34 +728,34 @@ ipmi_open_file(const char * file, int rw)
 
 	/* it exists - only regular files, not links */
 	if (S_ISREG(st1.st_mode) == 0) {
-		printf( "File %s has invalid mode: %d",
+		lprintf(LOG_ERR, "File %s has invalid mode: %d",
 			file, st1.st_mode);
 		return NULL;
 	}
 
 	/* allow only files with 1 link (itself) */
 	if (st1.st_nlink != 1) {
-		printf( "File %s has invalid link count: %d != 1",
+		lprintf(LOG_ERR, "File %s has invalid link count: %d != 1",
 		       file, (int)st1.st_nlink);
 		return NULL;
 	}
 
 	fp = fopen(file, rw ? "w+" : "r");
 	if (fp == NULL) {
-		printf( "Unable to open file %s", file);
+		lperror(LOG_ERR, "Unable to open file %s", file);
 		return NULL;
 	}
 
 	/* stat again */
 	if (fstat(fileno(fp), &st2) < 0) {
-		printf( "Unable to stat file %s", file);
+		lperror(LOG_ERR, "Unable to stat file %s", file);
 		fclose(fp);
 		return NULL;
 	}
 
 	/* verify inode */
 	if (st1.st_ino != st2.st_ino) {
-		printf( "File %s has invalid inode: %d != %d",
+		lprintf(LOG_ERR, "File %s has invalid inode: %d != %d",
 			file, st1.st_ino, st2.st_ino);
 		fclose(fp);
 		return NULL;
@@ -759,7 +763,7 @@ ipmi_open_file(const char * file, int rw)
 
 	/* verify owner */
 	if (st1.st_uid != st2.st_uid) {
-		printf( "File %s has invalid user id: %d != %d",
+		lprintf(LOG_ERR, "File %s has invalid user id: %d != %d",
 			file, st1.st_uid, st2.st_uid);
 		fclose(fp);
 		return NULL;
@@ -767,7 +771,7 @@ ipmi_open_file(const char * file, int rw)
 
 	/* verify inode */
 	if (st2.st_nlink != 1) {
-		printf( "File %s has invalid link count: %d != 1",
+		lprintf(LOG_ERR, "File %s has invalid link count: %d != 1",
 			file, st2.st_nlink);
 		fclose(fp);
 		return NULL;
@@ -779,64 +783,64 @@ ipmi_open_file(const char * file, int rw)
 void
 ipmi_start_daemon(struct ipmi_intf *intf)
 {
-	pid_t pid;
-	int fd;
-#ifdef SIGHUP
-	sigset_t sighup;
-#endif
-
-#ifdef SIGHUP
-	sigemptyset(&sighup);
-	sigaddset(&sighup, SIGHUP);
-	if (sigprocmask(SIG_UNBLOCK, &sighup, NULL) < 0)
-		fprintf(stderr, "ERROR: could not unblock SIGHUP signal\n");
-	signal(SIGHUP, SIG_IGN);
-#endif
-#ifdef SIGTTOU
-	signal(SIGTTOU, SIG_IGN);
-#endif
-#ifdef SIGTTIN
-	signal(SIGTTIN, SIG_IGN);
-#endif
-#ifdef SIGQUIT
-	signal(SIGQUIT, SIG_IGN);
-#endif
-#ifdef SIGTSTP
-	signal(SIGTSTP, SIG_IGN);
-#endif
-
-	pid = (pid_t) vfork();	//jimbo modify fork to vfork
-	if (pid < 0 || pid > 0)
-		exit(0);
-
-#if defined(SIGTSTP) && defined(TIOCNOTTY)
-	// jimbo Annotate, system no __PATH_TTY
-	// if (setpgid(0, getpid()) == -1)
-	// 	exit(1);
-	// if ((fd = open(_PATH_TTY, O_RDWR)) >= 0) {
-	// 	ioctl(fd, TIOCNOTTY, NULL);
-	// 	close(fd);
-	// }
-#else
-	if (setpgid(0, 0) == -1)
-		exit(1);
-	pid = (pid_t) vfork();	//jimbo modify fork to vfork
-	if (pid < 0 || pid > 0)
-		exit(0);
-#endif
-
-	chdir("/");
-	umask(0);
-
-	for (fd=0; fd<64; fd++) {
-		if (fd != intf->fd)
-			close(fd);
-	}
-
-	fd = open("/dev/null", O_RDWR);
-	assert(0 == fd);
-	dup(fd);
-	dup(fd);
+	//jimbo comment, call by ipmievd
+// 	pid_t pid;
+// 	int fd;
+// #ifdef SIGHUP
+// 	sigset_t sighup;
+// #endif
+
+// #ifdef SIGHUP
+// 	sigemptyset(&sighup);
+// 	sigaddset(&sighup, SIGHUP);
+// 	if (sigprocmask(SIG_UNBLOCK, &sighup, NULL) < 0)
+// 		fprintf(stderr, "ERROR: could not unblock SIGHUP signal\n");
+// 	signal(SIGHUP, SIG_IGN);
+// #endif
+// #ifdef SIGTTOU
+// 	signal(SIGTTOU, SIG_IGN);
+// #endif
+// #ifdef SIGTTIN
+// 	signal(SIGTTIN, SIG_IGN);
+// #endif
+// #ifdef SIGQUIT
+// 	signal(SIGQUIT, SIG_IGN);
+// #endif
+// #ifdef SIGTSTP
+// 	signal(SIGTSTP, SIG_IGN);
+// #endif
+
+// 	pid = (pid_t) fork();
+// 	if (pid < 0 || pid > 0)
+// 		exit(0);
+
+// #if defined(SIGTSTP) && defined(TIOCNOTTY)
+// 	if (setpgid(0, getpid()) == -1)
+// 		exit(1);
+// 	if ((fd = open(_PATH_TTY, O_RDWR)) >= 0) {
+// 		ioctl(fd, TIOCNOTTY, NULL);
+// 		close(fd);
+// 	}
+// #else
+// 	if (setpgid(0, 0) == -1)
+// 		exit(1);
+// 	pid = (pid_t) fork();
+// 	if (pid < 0 || pid > 0)
+// 		exit(0);
+// #endif
+
+// 	chdir("/");
+// 	umask(0);
+
+// 	for (fd=0; fd<64; fd++) {
+// 		if (fd != intf->fd)
+// 			close(fd);
+// 	}
+
+// 	fd = open("/dev/null", O_RDWR);
+// 	assert(0 == fd);
+// 	dup(fd);
+// 	dup(fd);
 }
 
 /* eval_ccode - evaluate return value of _ipmi_* functions and print error error
@@ -854,23 +858,23 @@ eval_ccode(const int ccode)
 	} else if (ccode < 0) {
 		switch (ccode) {
 			case (-1):
-				printf( "IPMI response is NULL.");
+				lprintf(LOG_ERR, "IPMI response is NULL.");
 				break;
 			case (-2):
-				printf( "Unexpected data length received.");
+				lprintf(LOG_ERR, "Unexpected data length received.");
 				break;
 			case (-3):
-				printf( "Invalid function parameter.");
+				lprintf(LOG_ERR, "Invalid function parameter.");
 				break;
 			case (-4):
-				printf( "ipmitool: malloc failure.");
+				lprintf(LOG_ERR, "ipmitool: malloc failure.");
 				break;
 			default:
 				break;
 		}
 		return (-1);
 	} else {
-		printf( "IPMI command failed: %s",
+		lprintf(LOG_ERR, "IPMI command failed: %s",
 				val2str(ccode, completion_code_vals));
 		return (-1);
 	}
@@ -890,14 +894,14 @@ int
 is_fru_id(const char *argv_ptr, uint8_t *fru_id_ptr)
 {
 	if (!argv_ptr || !fru_id_ptr) {
-		printf( "is_fru_id(): invalid argument(s).");
+		lprintf(LOG_ERR, "is_fru_id(): invalid argument(s).");
 		return (-1);
 	}
 
 	if (str2uchar(argv_ptr, fru_id_ptr) == 0) {
 		return 0;
 	}
-	printf( "FRU ID '%s' is either invalid or out of range.",
+	lprintf(LOG_ERR, "FRU ID '%s' is either invalid or out of range.",
 			argv_ptr);
 	return (-1);
 } /* is_fru_id(...) */
@@ -919,7 +923,8 @@ int
 is_ipmi_channel_num(const char *argv_ptr, uint8_t *channel_ptr)
 {
 	if (!argv_ptr || !channel_ptr) {
-		printf("is_ipmi_channel_num(): invalid argument(s).");
+		lprintf(LOG_ERR,
+				"is_ipmi_channel_num(): invalid argument(s).");
 		return (-1);
 	}
 	if ((str2uchar(argv_ptr, channel_ptr) == 0)
@@ -927,9 +932,10 @@ is_ipmi_channel_num(const char *argv_ptr, uint8_t *channel_ptr)
 				|| (*channel_ptr >= 0xE && *channel_ptr <= 0xF))) {
 		return 0;
 	}
-	printf(	"Given Channel number '%s' is either invalid or out of range.",
+	lprintf(LOG_ERR,
+			"Given Channel number '%s' is either invalid or out of range.",
 			argv_ptr);
-	printf( "Channel number must be from ranges: <0x0..0xB>, <0xE..0xF>");
+	lprintf(LOG_ERR, "Channel number must be from ranges: <0x0..0xB>, <0xE..0xF>");
 	return (-1);
 }
 
@@ -946,7 +952,8 @@ int
 is_ipmi_user_id(const char *argv_ptr, uint8_t *ipmi_uid_ptr)
 {
 	if (!argv_ptr || !ipmi_uid_ptr) {
-		printf("is_ipmi_user_id(): invalid argument(s).");
+		lprintf(LOG_ERR,
+				"is_ipmi_user_id(): invalid argument(s).");
 		return (-1);
 	}
 	if ((str2uchar(argv_ptr, ipmi_uid_ptr) == 0)
@@ -954,9 +961,10 @@ is_ipmi_user_id(const char *argv_ptr, uint8_t *ipmi_uid_ptr)
 			&& *ipmi_uid_ptr <= IPMI_UID_MAX) {
 		return 0;
 	}
-	printf("Given User ID '%s' is either invalid or out of range.",
+	lprintf(LOG_ERR,
+			"Given User ID '%s' is either invalid or out of range.",
 			argv_ptr);
-	printf( "User ID is limited to range <%i..%i>.",
+	lprintf(LOG_ERR, "User ID is limited to range <%i..%i>.",
 			IPMI_UID_MIN, IPMI_UID_MAX);
 	return (-1);
 }
@@ -973,16 +981,19 @@ int
 is_ipmi_user_priv_limit(const char *argv_ptr, uint8_t *ipmi_priv_limit_ptr)
 {
 	if (!argv_ptr || !ipmi_priv_limit_ptr) {
-		printf(	"is_ipmi_user_priv_limit(): invalid argument(s).");
+		lprintf(LOG_ERR,
+				"is_ipmi_user_priv_limit(): invalid argument(s).");
 		return (-1);
 	}
 	if ((str2uchar(argv_ptr, ipmi_priv_limit_ptr) != 0)
 			|| ((*ipmi_priv_limit_ptr < 0x01
 				|| *ipmi_priv_limit_ptr > 0x05)
 				&& *ipmi_priv_limit_ptr != 0x0F)) {
-		printf("Given Privilege Limit '%s' is invalid.",
+		lprintf(LOG_ERR,
+				"Given Privilege Limit '%s' is invalid.",
 				argv_ptr);
-		printf(	"Privilege Limit is limited to <0x1..0x5> and <0xF>.");
+		lprintf(LOG_ERR,
+				"Privilege Limit is limited to <0x1..0x5> and <0xF>.");
 		return (-1);
 	}
 	return 0;
@@ -1003,37 +1014,16 @@ ipmi_get_oem_id(struct ipmi_intf *intf)
 
 	rsp = intf->sendrecv(intf, &req);
 	if (rsp == NULL) {
-		printf( "Get Board ID command failed");
+		lprintf(LOG_ERR, "Get Board ID command failed");
 		return 0;
 	}
 	if (rsp->ccode > 0) {
-		printf( "Get Board ID command failed: %#x %s",
+		lprintf(LOG_ERR, "Get Board ID command failed: %#x %s",
 			rsp->ccode, val2str(rsp->ccode, completion_code_vals));
 		return 0;
 	}
 	oem_id = rsp->data[0] | (rsp->data[1] << 8);
-	printf("Board ID: %x", oem_id);
+	lprintf(LOG_DEBUG,"Board ID: %x", oem_id);
 
 	return oem_id;
 }
-
-
-
-// double log(double a)  
-// {  
-//    int N = 15;//我们取了前15+1项来估算  
-//    int k,nk;  
-//    double x,xx,y;  
-//    x = (a-1)/(a+1);  
-//    xx = x*x;  
-//    nk = 2*N+1;  
-//    y = 1.0/nk;  
-//    for(k=N;k>0;k--)  
-//    {  
-//      nk = nk - 2;  
-//      y = 1.0/nk+xx*y;  
-       
-//    }  
-//    return 2.0*x*y;  
-     
-// }  

+ 21 - 20
app/ipmitool-1.8.18/lib/hpm2.c

@@ -33,7 +33,7 @@
 #include <ipmitool/bswap.h>
 #include <ipmitool/hpm2.h>
 #include <ipmitool/ipmi_intf.h>
-//#include <ipmitool/log.h>
+#include <ipmitool/log.h>
 #include <ipmitool/bswap.h>
 
 /* From src/plugins/ipmi_intf.c: */
@@ -72,6 +72,7 @@ int hpm2_get_capabilities(struct ipmi_intf * intf,
 	struct ipmi_rs * rsp;
 	struct hpmx_cmd_get_capabilities_rq rq;
 
+	printf("---> hpm2_get_capabilities\n");
 	/* reset result */
 	memset(caps, 0, sizeof(struct hpm2_lan_attach_capabilities));
 
@@ -91,28 +92,28 @@ int hpm2_get_capabilities(struct ipmi_intf * intf,
 	rsp = intf->sendrecv(intf, &req);
 
 	if (!rsp) {
-		printf(  "Error sending request.");
+		lprintf(LOG_NOTICE, "Error sending request.");
 		return -1;
 	}
 
 	if (rsp->ccode == 0xC1) {
-		printf(  "IPM Controller is not HPM.2 compatible");
+		lprintf(LOG_DEBUG, "IPM Controller is not HPM.2 compatible");
 		return rsp->ccode;
 	} else if (rsp->ccode) {
-		printf(  "Get HPM.x Capabilities request failed,"
+		lprintf(LOG_NOTICE, "Get HPM.x Capabilities request failed,"
 				" compcode = %x", rsp->ccode);
 		return rsp->ccode;
 	}
 
 	/* check response length */
 	if (rsp->data_len < 2 || rsp->data_len > 10) {
-		printf(  "Bad response length, len=%d", rsp->data_len);
+		lprintf(LOG_NOTICE, "Bad response length, len=%d", rsp->data_len);
 		return -1;
 	}
 
 	/* check HPM.x identifier */
 	if (rsp->data[1] != 2) {
-		printf(  "Bad HPM.x ID, id=%d", rsp->data[1]);
+		lprintf(LOG_NOTICE, "Bad HPM.x ID, id=%d", rsp->data[1]);
 		return rsp->ccode;
 	}
 
@@ -121,7 +122,7 @@ int hpm2_get_capabilities(struct ipmi_intf * intf,
 	 * but check for safety
 	 */
 	if (rsp->data_len < 4) {
-		printf(  "Bad response length, len=%d", rsp->data_len);
+		lprintf(LOG_NOTICE, "Bad response length, len=%d", rsp->data_len);
 		return -1;
 	}
 
@@ -135,7 +136,7 @@ int hpm2_get_capabilities(struct ipmi_intf * intf,
 
 	/* check HPM.2 revision */
 	if (caps->hpm2_revision_id == 0) {
-		printf(  "Bad HPM.2 revision, rev=%d",
+		lprintf(LOG_NOTICE, "Bad HPM.2 revision, rev=%d",
 				caps->hpm2_revision_id);
 		return -1;
 	}
@@ -146,20 +147,20 @@ int hpm2_get_capabilities(struct ipmi_intf * intf,
 
 	/* check response length */
 	if (rsp->data_len < 8) {
-		printf(  "Bad response length, len=%d", rsp->data_len);
+		lprintf(LOG_NOTICE, "Bad response length, len=%d", rsp->data_len);
 		return -1;
 	}
 
 	/* check HPM.2 LAN parameters start */
 	if (caps->hpm2_lan_params_start < 0xC0) {
-		printf(  "Bad HPM.2 LAN params start, start=%x",
+		lprintf(LOG_NOTICE, "Bad HPM.2 LAN params start, start=%x",
 				caps->hpm2_lan_params_start);
 		return -1;
 	}
 
 	/* check HPM.2 LAN parameters revision */
 	if (caps->hpm2_lan_params_rev != HPM2_LAN_PARAMS_REV) {
-		printf(  "Bad HPM.2 LAN params revision, rev=%d",
+		lprintf(LOG_NOTICE, "Bad HPM.2 LAN params revision, rev=%d",
 				caps->hpm2_lan_params_rev);
 		return -1;
 	}
@@ -172,20 +173,20 @@ int hpm2_get_capabilities(struct ipmi_intf * intf,
 
 	/* check response length */
 	if (rsp->data_len < 10) {
-		printf(  "Bad response length, len=%d", rsp->data_len);
+		lprintf(LOG_NOTICE, "Bad response length, len=%d", rsp->data_len);
 		return -1;
 	}
 
 	/* check HPM.2 SOL parameters start */
 	if (caps->hpm2_sol_params_start < 0xC0) {
-		printf(  "Bad HPM.2 SOL params start, start=%x",
+		lprintf(LOG_NOTICE, "Bad HPM.2 SOL params start, start=%x",
 				caps->hpm2_sol_params_start);
 		return -1;
 	}
 
 	/* check HPM.2 SOL parameters revision */
 	if (caps->hpm2_sol_params_rev != HPM2_SOL_PARAMS_REV) {
-		printf(  "Bad HPM.2 SOL params revision, rev=%d",
+		lprintf(LOG_NOTICE, "Bad HPM.2 SOL params revision, rev=%d",
 				caps->hpm2_sol_params_rev);
 		return -1;
 	}
@@ -220,29 +221,29 @@ int hpm2_get_lan_channel_capabilities(struct ipmi_intf * intf,
 	rsp = intf->sendrecv(intf, &req);
 
 	if (!rsp) {
-		printf(  "Error sending request.");
+		lprintf(LOG_NOTICE, "Error sending request.");
 		return -1;
 	}
 
 	if (rsp->ccode == 0x80) {
-		printf(  "HPM.2 Channel Caps parameter is not supported");
+		lprintf(LOG_DEBUG, "HPM.2 Channel Caps parameter is not supported");
 		return rsp->ccode;
 	} else if (rsp->ccode) {
-		printf(  "Get LAN Configuration Parameters request failed,"
+		lprintf(LOG_NOTICE, "Get LAN Configuration Parameters request failed,"
 				" compcode = %x", rsp->ccode);
 		return rsp->ccode;
 	}
 
 	/* check response length */
 	if (rsp->data_len != sizeof (struct hpm2_lan_channel_capabilities) + 1) {
-		printf(  "Bad response length, len=%d", rsp->data_len);
+		lprintf(LOG_NOTICE, "Bad response length, len=%d", rsp->data_len);
 		return -1;
 	}
 
 	/* check parameter revision */
 	if (rsp->data[0] !=
 			LAN_PARAM_REV(HPM2_LAN_PARAMS_REV, HPM2_LAN_PARAMS_REV)) {
-		printf(  "Bad HPM.2 LAN parameter revision, rev=%d",
+		lprintf(LOG_NOTICE, "Bad HPM.2 LAN parameter revision, rev=%d",
 				rsp->data[0]);
 		return -1;
 	}
@@ -289,7 +290,7 @@ int hpm2_detect_max_payload_size(struct ipmi_intf * intf)
 			channel_caps.max_outbound_pld_size - 8);
 
 	/* print debug info */
-	printf(  "Set maximum request size to %d\n"
+	lprintf(LOG_DEBUG, "Set maximum request size to %d\n"
 			"Set maximum response size to %d",
 			intf->max_request_data_size, intf->max_response_data_size);
 

File diff suppressed because it is too large
+ 149 - 149
app/ipmitool-1.8.18/lib/ipmi_dcmi.c


File diff suppressed because it is too large
+ 439 - 442
app/ipmitool-1.8.18/lib/ipmi_ime.c


+ 6 - 6
app/ipmitool-1.8.18/lib/ipmi_oem.c

@@ -33,7 +33,7 @@
 #include <ipmitool/ipmi.h>
 #include <ipmitool/ipmi_intf.h>
 #include <ipmitool/ipmi_constants.h>
-//#include <ipmitool/log.h>
+#include <ipmitool/log.h>
 #include <ipmitool/helper.h>
 #include <ipmitool/ipmi_sel.h>
 
@@ -87,7 +87,7 @@ ipmi_oem_ibm(struct ipmi_intf * intf)
 {
 	char * filename;
 	if ((filename = getenv("IPMI_OEM_IBM_DATAFILE")) == NULL) {
-		printf(  "Unable to read IPMI_OEM_IBM_DATAFILE from environment");
+		lprintf(LOG_ERR, "Unable to read IPMI_OEM_IBM_DATAFILE from environment");
 		return -1;
 	}
 	return ipmi_sel_oem_init((const char *)filename);
@@ -99,11 +99,11 @@ void
 ipmi_oem_print(void)
 {
 	struct ipmi_oem_handle * oem;
-	printf(  "\nOEM Support:");
+	lprintf(LOG_NOTICE, "\nOEM Support:");
 	for (oem=ipmi_oem_list; oem->name != NULL && oem->desc != NULL; oem++) {
-		printf(  "\t%-12s %s", oem->name, oem->desc);
+		lprintf(LOG_NOTICE, "\t%-12s %s", oem->name, oem->desc);
 	}
-	printf(  "");
+	lprintf(LOG_NOTICE, "");
 }
 
 /* ipmi_oem_setup  -  do initial setup of OEM handle
@@ -140,7 +140,7 @@ ipmi_oem_setup(struct ipmi_intf * intf, char * oemtype)
 
 	/* run optional setup function if it is defined */
 	if (oem->setup != NULL) {
-		printf(  "Running OEM setup for \"%s\"", oem->desc);
+		lprintf(LOG_DEBUG, "Running OEM setup for \"%s\"", oem->desc);
 		rc = oem->setup(intf);
 	}
 

+ 33 - 32
app/ipmitool-1.8.18/lib/ipmi_raw.c

@@ -35,7 +35,7 @@
 #include <stdio.h>
 
 #include <ipmitool/ipmi.h>
-//#include <ipmitool/log.h>
+#include <ipmitool/log.h>
 #include <ipmitool/helper.h>
 #include <ipmitool/ipmi_intf.h>
 #include <ipmitool/ipmi_raw.h>
@@ -70,11 +70,11 @@ ipmi_master_write_read(struct ipmi_intf * intf, uint8_t bus, uint8_t addr,
 	uint8_t rqdata[IPMI_I2C_MASTER_MAX_SIZE + 3];
 
 	if (rsize > IPMI_I2C_MASTER_MAX_SIZE) {
-		printf( "Master Write-Read: Too many bytes (%d) to read", rsize);
+		lprintf(LOG_ERR, "Master Write-Read: Too many bytes (%d) to read", rsize);
 		return NULL;
 	}
 	if (wsize > IPMI_I2C_MASTER_MAX_SIZE) {
-		printf( "Master Write-Read: Too many bytes (%d) to write", wsize);
+		lprintf(LOG_ERR, "Master Write-Read: Too many bytes (%d) to write", wsize);
 		return NULL;
 	}
 
@@ -93,34 +93,34 @@ ipmi_master_write_read(struct ipmi_intf * intf, uint8_t bus, uint8_t addr,
 		/* copy in data to write */
 		memcpy(rqdata+3, wdata, wsize);
 		req.msg.data_len += wsize;
-		printf( "Writing %d bytes to i2cdev %02Xh", wsize, addr);
+		lprintf(LOG_DEBUG, "Writing %d bytes to i2cdev %02Xh", wsize, addr);
 	}
 
 	if (rsize > 0) {
-		printf( "Reading %d bytes from i2cdev %02Xh", rsize, addr);
+		lprintf(LOG_DEBUG, "Reading %d bytes from i2cdev %02Xh", rsize, addr);
 	}
 
 	rsp = intf->sendrecv(intf, &req);
 	if (rsp == NULL) {
-		printf( "I2C Master Write-Read command failed");
+		lprintf(LOG_ERR, "I2C Master Write-Read command failed");
 		return NULL;
 	}
 	else if (rsp->ccode > 0) {
 		switch (rsp->ccode) {
 		case 0x81:
-			printf( "I2C Master Write-Read command failed: Lost Arbitration");
+			lprintf(LOG_ERR, "I2C Master Write-Read command failed: Lost Arbitration");
 			break;
 		case 0x82:
-			printf( "I2C Master Write-Read command failed: Bus Error");
+			lprintf(LOG_ERR, "I2C Master Write-Read command failed: Bus Error");
 			break;
 		case 0x83:
-			printf( "I2C Master Write-Read command failed: NAK on Write");
+			lprintf(LOG_ERR, "I2C Master Write-Read command failed: NAK on Write");
 			break;
 		case 0x84:
-			printf( "I2C Master Write-Read command failed: Truncated Read");
+			lprintf(LOG_ERR, "I2C Master Write-Read command failed: Truncated Read");
 			break;
 		default:
-			printf( "I2C Master Write-Read command failed: %s",
+			lprintf(LOG_ERR, "I2C Master Write-Read command failed: %s",
 				val2str(rsp->ccode, completion_code_vals));
 			break;
 		}
@@ -146,7 +146,7 @@ ipmi_rawspd_main(struct ipmi_intf * intf, int argc, char ** argv)
 	memset(spd_data, 0, RAW_SPD_SIZE);
 
 	if (argc < 2 || strncmp(argv[0], "help", 4) == 0) {
-		printf( "usage: spd <i2cbus> <i2caddr> [channel] [maxread]");
+		lprintf(LOG_NOTICE, "usage: spd <i2cbus> <i2caddr> [channel] [maxread]");
 		return 0;
 	}
 
@@ -172,7 +172,7 @@ ipmi_rawspd_main(struct ipmi_intf * intf, int argc, char ** argv)
 		rsp = ipmi_master_write_read(intf, i2cbus, i2caddr,
 					     (uint8_t *)&i, 1, msize );
 		if (rsp == NULL) {
-			printf( "Unable to perform I2C Master Write-Read");
+			lprintf(LOG_ERR, "Unable to perform I2C Master Write-Read");
 			return -1;
 		}
 
@@ -185,9 +185,9 @@ ipmi_rawspd_main(struct ipmi_intf * intf, int argc, char ** argv)
 
 static void rawi2c_usage(void)
 {
-	printf( "usage: i2c [bus=public|# [chan=#] <i2caddr> <read bytes> [write data]");
-	printf( "            bus=public is default");
-	printf( "            chan=0 is default, bus= must be specified to use chan=");
+	lprintf(LOG_NOTICE, "usage: i2c [bus=public|# [chan=#] <i2caddr> <read bytes> [write data]");
+	lprintf(LOG_NOTICE, "            bus=public is default");
+	lprintf(LOG_NOTICE, "            chan=0 is default, bus= must be specified to use chan=");
 }
 
 int
@@ -226,7 +226,7 @@ ipmi_rawi2c_main(struct ipmi_intf * intf, int argc, char ** argv)
 		return 0;
 	}
 	else if (argc-i-2 > IPMI_I2C_MASTER_MAX_SIZE) {
-		printf( "Raw command input limit (%d bytes) exceeded",
+		lprintf(LOG_ERR, "Raw command input limit (%d bytes) exceeded",
 			IPMI_I2C_MASTER_MAX_SIZE);
 		return -1;
 	}
@@ -238,7 +238,7 @@ ipmi_rawi2c_main(struct ipmi_intf * intf, int argc, char ** argv)
 		return (-1);
 
 	if (i2caddr == 0) {
-		printf( "Invalid I2C address 0");
+		lprintf(LOG_ERR, "Invalid I2C address 0");
 		rawi2c_usage();
 		return -1;
 	}
@@ -254,13 +254,13 @@ ipmi_rawi2c_main(struct ipmi_intf * intf, int argc, char ** argv)
 		wsize++;
 	}
 
-	printf( "RAW I2C REQ (i2caddr=%x readbytes=%d writebytes=%d)",
+	lprintf(LOG_INFO, "RAW I2C REQ (i2caddr=%x readbytes=%d writebytes=%d)",
 		i2caddr, rsize, wsize);
 	printbuf(wdata, wsize, "WRITE DATA");
 
 	rsp = ipmi_master_write_read(intf, bus, i2caddr, wdata, wsize, rsize);
 	if (rsp == NULL) {
-		printf( "Unable to perform I2C Master Write-Read");
+		lprintf(LOG_ERR, "Unable to perform I2C Master Write-Read");
 		return -1;
 	}
 
@@ -307,9 +307,9 @@ ipmi_rawi2c_main(struct ipmi_intf * intf, int argc, char ** argv)
 void
 ipmi_raw_help()
 {
-	printf( "RAW Commands:  raw <netfn> <cmd> [data]");
-	print_valstr(ipmi_netfn_vals, "Network Function Codes", -1);
-	printf( "(can also use raw hex values)");
+	lprintf(LOG_NOTICE, "RAW Commands:  raw <netfn> <cmd> [data]");
+	print_valstr(ipmi_netfn_vals, "Network Function Codes", LOG_NOTICE);
+	lprintf(LOG_NOTICE, "(can also use raw hex values)");
 } /* ipmi_raw_help() */
 
 int
@@ -327,13 +327,13 @@ ipmi_raw_main(struct ipmi_intf * intf, int argc, char ** argv)
 		return 0;
 	}
 	else if (argc < 2) {
-		printf( "Not enough parameters given.");
+		lprintf(LOG_ERR, "Not enough parameters given.");
 		ipmi_raw_help();
 		return (-1);
 	}
 	else if (argc > sizeof(data))
 	{
-		printf( "Raw command input limit (256 bytes) exceeded");
+		lprintf(LOG_NOTICE, "Raw command input limit (256 bytes) exceeded");
 		return -1;
 	}
 
@@ -344,7 +344,7 @@ ipmi_raw_main(struct ipmi_intf * intf, int argc, char ** argv)
 			return (-1);
 	} else {
 		if (netfn_tmp >= UINT8_MAX) {
-			printf( "Given netfn \"%s\" is out of range.", argv[0]);
+			lprintf(LOG_ERR, "Given netfn \"%s\" is out of range.", argv[0]);
 			return (-1);
 		}
 		netfn = netfn_tmp;
@@ -370,7 +370,8 @@ ipmi_raw_main(struct ipmi_intf * intf, int argc, char ** argv)
 		req.msg.data_len++;
 	}
 
-	printf( "RAW REQ (channel=0x%x netfn=0x%x lun=0x%x cmd=0x%x data_len=%d)",
+	lprintf(LOG_INFO, 
+           "RAW REQ (channel=0x%x netfn=0x%x lun=0x%x cmd=0x%x data_len=%d)",
            intf->target_channel & 0x0f, req.msg.netfn,req.msg.lun , 
            req.msg.cmd, req.msg.data_len);
 
@@ -379,20 +380,20 @@ ipmi_raw_main(struct ipmi_intf * intf, int argc, char ** argv)
 	rsp = intf->sendrecv(intf, &req);
 
 	if (rsp == NULL) {
-		printf( "Unable to send RAW command "
+		lprintf(LOG_ERR, "Unable to send RAW command "
 			"(channel=0x%x netfn=0x%x lun=0x%x cmd=0x%x)",
 			intf->target_channel & 0x0f, req.msg.netfn, req.msg.lun, req.msg.cmd);
 		return -1;
 	}
 	if (rsp->ccode > 0) {
-		printf( "Unable to send RAW command "
+		lprintf(LOG_ERR, "Unable to send RAW command "
 			"(channel=0x%x netfn=0x%x lun=0x%x cmd=0x%x rsp=0x%x): %s",
 			intf->target_channel & 0x0f, req.msg.netfn, req.msg.lun, req.msg.cmd, rsp->ccode,
 			val2str(rsp->ccode, completion_code_vals));
 		return -1;
 	}
 
-	printf( "RAW RSP (%d bytes)", rsp->data_len);
+	lprintf(LOG_INFO, "RAW RSP (%d bytes)", rsp->data_len);
 
 	/* print the raw response buffer */
 	for (i=0; i<rsp->data_len; i++) {
@@ -417,12 +418,12 @@ ipmi_raw_main(struct ipmi_intf * intf, int argc, char ** argv)
 int
 is_valid_param(const char *input_param, uint8_t *uchr_ptr, const char *label) {
 	if (input_param == NULL || label == NULL) {
-		printf( "ERROR: NULL pointer passed.");
+		lprintf(LOG_ERROR, "ERROR: NULL pointer passed.");
 		return (-1);
 	}
 	if (str2uchar(input_param, uchr_ptr) == 0)
 		return 0;
 
-	printf( "Given %s \"%s\" is invalid.", label, input_param);
+	lprintf(LOG_ERR, "Given %s \"%s\" is invalid.", label, input_param);
 	return (-1);
 }

+ 213 - 167
app/ipmitool-1.8.18/lib/ipmi_sdr.c

@@ -43,7 +43,7 @@
 #include <time.h>
 
 #include <ipmitool/ipmi.h>
-//#include <ipmitool/log.h>
+#include <ipmitool/log.h>
 #include <ipmitool/ipmi_mc.h>
 #include <ipmitool/ipmi_sdr.h>
 #include <ipmitool/ipmi_sdradd.h>
@@ -370,39 +370,39 @@ sdr_convert_sensor_tolerance(struct sdr_record_full_sensor *sensor, uint8_t val)
 	}
 
 	switch (sensor->linearization & 0x7f) {
-	// case SDR_SENSOR_L_LN:
-	// 	result = log(result);
-	// 	break;
-	// case SDR_SENSOR_L_LOG10:
-	// 	result = log10(result);
-	// 	break;
-	// case SDR_SENSOR_L_LOG2:
-	// 	result = (double) (log(result) / log(2.0));
-	// 	break;
-	// case SDR_SENSOR_L_E:
-	// 	result = exp(result);
-	// 	break;
-	// case SDR_SENSOR_L_EXP10:
-	// 	result = pow(10.0, result);
-	// 	break;
-	// case SDR_SENSOR_L_EXP2:
-	// 	result = pow(2.0, result);
-	// 	break;
-	// case SDR_SENSOR_L_1_X:
-	// 	result = pow(result, -1.0);	/*1/x w/o exception */
-	// 	break;
-	// case SDR_SENSOR_L_SQR:
-	// 	result = pow(result, 2.0);
-	// 	break;
-	// case SDR_SENSOR_L_CUBE:
-	// 	result = pow(result, 3.0);
-	// 	break;
-	// case SDR_SENSOR_L_SQRT:
-	// 	result = sqrt(result);
-	// 	break;
-	// case SDR_SENSOR_L_CUBERT:
-	// 	result = cbrt(result);
-	// 	break;
+	case SDR_SENSOR_L_LN:
+		result = log(result);
+		break;
+	case SDR_SENSOR_L_LOG10:
+		result = log10(result);
+		break;
+	case SDR_SENSOR_L_LOG2:
+		result = (double) (log(result) / log(2.0));
+		break;
+	case SDR_SENSOR_L_E:
+		result = exp(result);
+		break;
+	case SDR_SENSOR_L_EXP10:
+		result = pow(10.0, result);
+		break;
+	case SDR_SENSOR_L_EXP2:
+		result = pow(2.0, result);
+		break;
+	case SDR_SENSOR_L_1_X:
+		result = pow(result, -1.0);	/*1/x w/o exception */
+		break;
+	case SDR_SENSOR_L_SQR:
+		result = pow(result, 2.0);
+		break;
+	case SDR_SENSOR_L_CUBE:
+		result = pow(result, 3.0);
+		break;
+	case SDR_SENSOR_L_SQRT:
+		result = sqrt(result);
+		break;
+	case SDR_SENSOR_L_CUBERT:
+		result = cbrt(result);
+		break;
 	case SDR_SENSOR_L_LINEAR:
 	default:
 		break;
@@ -440,7 +440,7 @@ sdr_convert_sensor_value_to_raw(struct sdr_record_full_sensor * sensor,
 	result = (((val / pow(10, k2)) - (b * pow(10, k1))) / m);
 
 	if ((result - (int) result) >= .5)
-		return (uint8_t) (result+0.5);
+		return (uint8_t) ceil(result);
 	else
 		return (uint8_t) result;
 }
@@ -578,7 +578,8 @@ ipmi_sdr_get_sensor_reading_ipmb(struct ipmi_intf *intf, uint8_t sensor,
 	uint32_t save_channel;
 
 	if ( BRIDGE_TO_SENSOR(intf, target, channel) ) {
-		printf("Bridge to Sensor "
+		lprintf(LOG_DEBUG,
+			"Bridge to Sensor "
 			"Intf my/%#x tgt/%#x:%#x Sdr tgt/%#x:%#x\n",
 			intf->my_addr, intf->target_addr, intf->target_channel,
 			target, channel);
@@ -793,12 +794,12 @@ ipmi_sdr_get_header(struct ipmi_intf *intf, struct ipmi_sdr_iterator *itr)
 		sdr_rq.reserve_id = itr->reservation;
 		rsp = intf->sendrecv(intf, &req);
 		if (rsp == NULL) {
-			printf( "Get SDR %04x command failed",
+			lprintf(LOG_ERR, "Get SDR %04x command failed",
 				itr->next);
 			continue;
 		} else if (rsp->ccode == 0xc5) {
 			/* lost reservation */
-			printf( "SDR reservation %04x cancelled. "
+			lprintf(LOG_DEBUG, "SDR reservation %04x cancelled. "
 				"Sleeping a bit and retrying...",
 				itr->reservation);
 
@@ -806,12 +807,12 @@ ipmi_sdr_get_header(struct ipmi_intf *intf, struct ipmi_sdr_iterator *itr)
 
 			if (ipmi_sdr_get_reservation(intf, itr->use_built_in,
                                       &(itr->reservation)) < 0) {
-				printf(
+				lprintf(LOG_ERR,
 					"Unable to renew SDR reservation");
 				return NULL;
 			}
 		} else if (rsp->ccode > 0) {
-			printf( "Get SDR %04x command failed: %s",
+			lprintf(LOG_ERR, "Get SDR %04x command failed: %s",
 				itr->next, val2str(rsp->ccode,
 						   completion_code_vals));
 			continue;
@@ -826,12 +827,12 @@ ipmi_sdr_get_header(struct ipmi_intf *intf, struct ipmi_sdr_iterator *itr)
 	if (!rsp)
 		return NULL;
 
-	printf( "SDR record ID   : 0x%04x", itr->next);
+	lprintf(LOG_DEBUG, "SDR record ID   : 0x%04x", itr->next);
 
 	memcpy(&sdr_rs, rsp->data, sizeof (sdr_rs));
 
 	if (sdr_rs.length == 0) {
-		printf( "SDR record id 0x%04x: invalid length %d",
+		lprintf(LOG_ERR, "SDR record id 0x%04x: invalid length %d",
 			itr->next, sdr_rs.length);
 		return NULL;
 	}
@@ -847,13 +848,13 @@ ipmi_sdr_get_header(struct ipmi_intf *intf, struct ipmi_sdr_iterator *itr)
 	 */
 	if ((itr->next != 0x0000) &&
 		(sdr_rs.id != itr->next)) {
-		printf( "SDR record id mismatch: 0x%04x", sdr_rs.id);
+		lprintf(LOG_DEBUG, "SDR record id mismatch: 0x%04x", sdr_rs.id);
 		sdr_rs.id = itr->next;
 	}
 
-	printf( "SDR record type : 0x%02x", sdr_rs.type);
-	printf( "SDR record next : 0x%04x", sdr_rs.next);
-	printf( "SDR record bytes: %d", sdr_rs.length);
+	lprintf(LOG_DEBUG, "SDR record type : 0x%02x", sdr_rs.type);
+	lprintf(LOG_DEBUG, "SDR record next : 0x%04x", sdr_rs.next);
+	lprintf(LOG_DEBUG, "SDR record bytes: %d", sdr_rs.length);
 
 	return &sdr_rs;
 }
@@ -959,12 +960,14 @@ ipmi_sdr_print_sensor_event_status(struct ipmi_intf *intf,
 						target, lun, channel);
 
 	if (rsp == NULL) {
-		printf("Error reading event status for sensor #%02x",
+		lprintf(LOG_DEBUG,
+			"Error reading event status for sensor #%02x",
 			sensor_num);
 		return -1;
 	}
 	if (rsp->ccode > 0) {
-		printf("Error reading event status for sensor #%02x: %s",
+		lprintf(LOG_DEBUG,
+			"Error reading event status for sensor #%02x: %s",
 			sensor_num, val2str(rsp->ccode, completion_code_vals));
 		return -1;
 	}
@@ -1171,12 +1174,14 @@ ipmi_sdr_print_sensor_event_enable(struct ipmi_intf *intf,
 						target, lun, channel);
 
 	if (rsp == NULL) {
-		printf(	"Error reading event enable for sensor #%02x",
+		lprintf(LOG_DEBUG,
+			"Error reading event enable for sensor #%02x",
 			sensor_num);
 		return -1;
 	}
 	if (rsp->ccode > 0) {
-		printf(	"Error reading event enable for sensor #%02x: %s",
+		lprintf(LOG_DEBUG,
+			"Error reading event enable for sensor #%02x: %s",
 			sensor_num, val2str(rsp->ccode, completion_code_vals));
 		return -1;
 	}
@@ -1435,7 +1440,7 @@ ipmi_sdr_read_sensor_value(struct ipmi_intf *intf,
 
 
 	if (rsp == NULL) {
-		printf( "Error reading sensor %s (#%02x)",
+		lprintf(LOG_DEBUG, "Error reading sensor %s (#%02x)",
 			sr.s_id, sensor->keys.sensor_num);
 		return &sr;
 	}
@@ -1443,7 +1448,8 @@ ipmi_sdr_read_sensor_value(struct ipmi_intf *intf,
 	if (rsp->ccode) {
 		if ( !((sr.full    && rsp->ccode == 0xcb) ||
 		       (sr.compact && rsp->ccode == 0xcd)) ) {
-			printf("Error reading sensor %s (#%02x): %s", sr.s_id,
+			lprintf(LOG_DEBUG,
+				"Error reading sensor %s (#%02x): %s", sr.s_id,
 				sensor->keys.sensor_num,
 				val2str(rsp->ccode, completion_code_vals));
 		}
@@ -1457,7 +1463,7 @@ ipmi_sdr_read_sensor_value(struct ipmi_intf *intf,
 		 * the reading.    If we don't have both of these we can't have
 		 * a valid sensor reading.
 		 */
-		printf( "Error reading sensor %s invalid len %d",
+		lprintf(LOG_DEBUG, "Error reading sensor %s invalid len %d",
 			sr.s_id, rsp->data_len);
 		return &sr;
 	}
@@ -1468,7 +1474,7 @@ ipmi_sdr_read_sensor_value(struct ipmi_intf *intf,
 
 	if (IS_SCANNING_DISABLED(rsp->data[1])) {
 		sr.s_scanning_disabled = 1;
-		printf( "Sensor %s (#%02x) scanning disabled",
+		lprintf(LOG_DEBUG, "Sensor %s (#%02x) scanning disabled",
 			sr.s_id, sensor->keys.sensor_num);
 		return &sr;
 	}
@@ -1711,7 +1717,7 @@ ipmi_sdr_print_sensor_fc(struct ipmi_intf *intf,
 		printf(" Sensor Type (Discrete): %s (0x%02x)\n",
 				ipmi_get_sensor_type(intf, sensor->sensor.type),
 				sensor->sensor.type);
-		printf( " Event Type Code       : 0x%02x",
+		lprintf(LOG_DEBUG, " Event Type Code       : 0x%02x",
 			sensor->event_type);
 
 		printf(" Sensor Reading        : ");
@@ -2089,7 +2095,7 @@ ipmi_sdr_print_sensor_eventonly(struct ipmi_intf *intf,
 		printf("Sensor Type            : %s (0x%02x)\n",
 			ipmi_get_sensor_type(intf, sensor->sensor_type),
 			sensor->sensor_type);
-		printf("Event Type Code        : 0x%02x",
+		lprintf(LOG_DEBUG, "Event Type Code        : 0x%02x",
 			sensor->event_type);
 		printf("\n");
 	} else {
@@ -2416,7 +2422,7 @@ ipmi_sdr_print_sensor_oem_intel(struct ipmi_intf *intf,
 	case 0x07:		/* Ambient Temperature Fan Speed Control */
 		break;
 	default:
-		printf( "Unknown Intel OEM SDR Record type %02x",
+		lprintf(LOG_DEBUG, "Unknown Intel OEM SDR Record type %02x",
 			oem->data[3]);
 	}
 
@@ -2511,7 +2517,7 @@ ipmi_sdr_print_name_from_rawentry(struct ipmi_intf *intf, uint16_t id,
       break;
    }   
 
-     printf( "ID: 0x%04x , NAME: %-16s", id, desc);
+      lprintf(LOG_INFO, "ID: 0x%04x , NAME: %-16s", id, desc);
    return rc;
 }
 
@@ -2654,12 +2660,12 @@ ipmi_sdr_print_sdr(struct ipmi_intf *intf, uint8_t type)
 	struct sdr_record_list *e;
 	int rc = 0;
 
-	printf( "Querying SDR for sensor list");
+	lprintf(LOG_DEBUG, "Querying SDR for sensor list");
 
 	if (sdr_list_itr == NULL) {
 		sdr_list_itr = ipmi_sdr_start(intf, 0);
 		if (sdr_list_itr == NULL) {
-			printf( "Unable to open SDR for reading");
+			lprintf(LOG_ERR, "Unable to open SDR for reading");
 			return -1;
 		}
 	}
@@ -2681,14 +2687,14 @@ ipmi_sdr_print_sdr(struct ipmi_intf *intf, uint8_t type)
 
 		rec = ipmi_sdr_get_record(intf, header, sdr_list_itr);
 		if (rec == NULL) {
-			printf( "ipmitool: ipmi_sdr_get_record() failed");
+			lprintf(LOG_ERR, "ipmitool: ipmi_sdr_get_record() failed");
 			rc = -1;
 			continue;
 		}
 
 		sdrr = malloc(sizeof (struct sdr_record_list));
 		if (sdrr == NULL) {
-			printf( "ipmitool: malloc failure");
+			lprintf(LOG_ERR, "ipmitool: malloc failure");
 			if (rec != NULL) {
 				free(rec);
 				rec = NULL;
@@ -2735,7 +2741,7 @@ ipmi_sdr_print_sdr(struct ipmi_intf *intf, uint8_t type)
 			continue;
 		}
 
-                printf( "SDR record ID   : 0x%04x", sdrr->id);
+                lprintf(LOG_DEBUG, "SDR record ID   : 0x%04x", sdrr->id);
 
 		if (type == header->type || type == 0xff ||
 		    (type == 0xfe &&
@@ -2792,7 +2798,7 @@ ipmi_sdr_get_reservation(struct ipmi_intf *intf, int use_builtin,
 		return -1;
 
 	*reserve_id = ((struct sdr_reserve_repo_rs *) &(rsp->data))->reserve_id;
-	printf( "SDR reservation ID %04x", *reserve_id);
+	lprintf(LOG_DEBUG, "SDR reservation ID %04x", *reserve_id);
 
 	return 0;
 }
@@ -2815,7 +2821,7 @@ ipmi_sdr_start(struct ipmi_intf *intf, int use_builtin)
 
 	itr = malloc(sizeof (struct ipmi_sdr_iterator));
 	if (itr == NULL) {
-		printf( "ipmitool: malloc failure");
+		lprintf(LOG_ERR, "ipmitool: malloc failure");
 		return NULL;
 	}
 
@@ -2828,13 +2834,13 @@ ipmi_sdr_start(struct ipmi_intf *intf, int use_builtin)
 	rsp = intf->sendrecv(intf, &req);
 
 	if (rsp == NULL) {
-		printf( "Get Device ID command failed");
+		lprintf(LOG_ERR, "Get Device ID command failed");
 		free(itr);
 		itr = NULL;
 		return NULL;
 	}
 	if (rsp->ccode > 0) {
-		printf( "Get Device ID command failed: %#x %s",
+		lprintf(LOG_ERR, "Get Device ID command failed: %#x %s",
 			rsp->ccode, val2str(rsp->ccode, completion_code_vals));
 		free(itr);
 		itr = NULL;
@@ -2847,16 +2853,16 @@ ipmi_sdr_start(struct ipmi_intf *intf, int use_builtin)
 	if (!use_builtin && (devid->device_revision & IPM_DEV_DEVICE_ID_SDR_MASK)) {
 		if ((devid->adtl_device_support & 0x02) == 0) {
 			if ((devid->adtl_device_support & 0x01)) {
-				printf( "Using Device SDRs\n");
+				lprintf(LOG_DEBUG, "Using Device SDRs\n");
 				use_built_in = 1;
 			} else {
-				printf( "Error obtaining SDR info");
+				lprintf(LOG_ERR, "Error obtaining SDR info");
 				free(itr);
 				itr = NULL;
 				return NULL;
 			}
 		} else {
-			printf( "Using SDR from Repository \n");
+			lprintf(LOG_DEBUG, "Using SDR from Repository \n");
 		}
 	}
 	itr->use_built_in = use_builtin ? 1 : use_built_in;
@@ -2870,13 +2876,13 @@ ipmi_sdr_start(struct ipmi_intf *intf, int use_builtin)
 
 		rsp = intf->sendrecv(intf, &req);
 		if (rsp == NULL) {
-			printf( "Error obtaining SDR info");
+			lprintf(LOG_ERR, "Error obtaining SDR info");
 			free(itr);
 			itr = NULL;
 			return NULL;
 		}
 		if (rsp->ccode > 0) {
-			printf( "Error obtaining SDR info: %s",
+			lprintf(LOG_ERR, "Error obtaining SDR info: %s",
 				val2str(rsp->ccode, completion_code_vals));
 			free(itr);
 			itr = NULL;
@@ -2891,22 +2897,22 @@ ipmi_sdr_start(struct ipmi_intf *intf, int use_builtin)
 		if ((sdr_info.version != 0x51) &&
 		    (sdr_info.version != 0x01) &&
 		    (sdr_info.version != 0x02)) {
-			printf( "WARNING: Unknown SDR repository "
+			lprintf(LOG_WARN, "WARNING: Unknown SDR repository "
 				"version 0x%02x", sdr_info.version);
 		}
 
 		itr->total = sdr_info.count;
 		itr->next = 0;
 
-		printf( "SDR free space: %d", sdr_info.free);
-		printf( "SDR records   : %d", sdr_info.count);
+		lprintf(LOG_DEBUG, "SDR free space: %d", sdr_info.free);
+		lprintf(LOG_DEBUG, "SDR records   : %d", sdr_info.count);
 
 		/* Build SDRR if there is no record in repository */
 		if( sdr_info.count == 0 ) {
-		   printf( "Rebuilding SDRR...");
+		   lprintf(LOG_DEBUG, "Rebuilding SDRR...");
 
 		   if( ipmi_sdr_add_from_sensors( intf, 0 ) != 0 ) {
-		      printf( "Could not build SDRR!");
+		      lprintf(LOG_ERR, "Could not build SDRR!");
 		      free(itr);
 					itr = NULL;
 		      return NULL;
@@ -2930,12 +2936,12 @@ ipmi_sdr_start(struct ipmi_intf *intf, int use_builtin)
 
 		itr->total = sdr_info.count;
 		itr->next = 0;
-		printf( "SDR records   : %d", sdr_info.count);
+		lprintf(LOG_DEBUG, "SDR records   : %d", sdr_info.count);
 	}
 
 	if (ipmi_sdr_get_reservation(intf, itr->use_built_in,
                                 &(itr->reservation)) < 0) {
-		printf( "Unable to obtain SDR reservation");
+		lprintf(LOG_ERR, "Unable to obtain SDR reservation");
 		free(itr);
 		itr = NULL;
 		return NULL;
@@ -2968,7 +2974,7 @@ ipmi_sdr_get_record(struct ipmi_intf * intf, struct sdr_get_rs * header,
 
 	data = malloc(len + 1);
 	if (data == NULL) {
-		printf( "ipmitool: malloc failure");
+		lprintf(LOG_ERR, "ipmitool: malloc failure");
 		return NULL;
 	}
 	memset(data, 0, len + 1);
@@ -3009,7 +3015,7 @@ ipmi_sdr_get_record(struct ipmi_intf * intf, struct sdr_get_rs * header,
 		    len - i : sdr_max_read_len;
 		sdr_rq.offset = i + 5;	/* 5 header bytes */
 
-		printf( "Getting %d bytes from SDR at offset %d",
+		lprintf(LOG_DEBUG, "Getting %d bytes from SDR at offset %d",
 			sdr_rq.length, sdr_rq.offset);
 
 		rsp = intf->sendrecv(intf, &req);
@@ -3033,7 +3039,7 @@ ipmi_sdr_get_record(struct ipmi_intf * intf, struct sdr_get_rs * header,
 			continue;
 		case 0xc5:
 			/* lost reservation */
-			printf( "SDR reservation cancelled. "
+			lprintf(LOG_DEBUG, "SDR reservation cancelled. "
 				"Sleeping a bit and retrying...");
 
 			sleep(rand() & 3);
@@ -3097,7 +3103,7 @@ __sdr_list_add(struct sdr_record_list *head, struct sdr_record_list *entry)
 
 	new = malloc(sizeof (struct sdr_record_list));
 	if (new == NULL) {
-		printf( "ipmitool: malloc failure");
+		lprintf(LOG_ERR, "ipmitool: malloc failure");
 		return -1;
 	}
 	memcpy(new, entry, sizeof (struct sdr_record_list));
@@ -3212,7 +3218,7 @@ ipmi_sdr_find_sdr_bynumtype(struct ipmi_intf *intf, uint16_t gen_id, uint8_t num
 	if (sdr_list_itr == NULL) {
 		sdr_list_itr = ipmi_sdr_start(intf, 0);
 		if (sdr_list_itr == NULL) {
-			printf( "Unable to open SDR for reading");
+			lprintf(LOG_ERR, "Unable to open SDR for reading");
 			return NULL;
 		}
 	}
@@ -3243,7 +3249,7 @@ ipmi_sdr_find_sdr_bynumtype(struct ipmi_intf *intf, uint16_t gen_id, uint8_t num
 
 		sdrr = malloc(sizeof (struct sdr_record_list));
 		if (sdrr == NULL) {
-			printf( "ipmitool: malloc failure");
+			lprintf(LOG_ERR, "ipmitool: malloc failure");
 			break;
 		}
 		memset(sdrr, 0, sizeof (struct sdr_record_list));
@@ -3336,7 +3342,7 @@ ipmi_sdr_find_sdr_bysensortype(struct ipmi_intf *intf, uint8_t type)
 	if (sdr_list_itr == NULL) {
 		sdr_list_itr = ipmi_sdr_start(intf, 0);
 		if (sdr_list_itr == NULL) {
-			printf( "Unable to open SDR for reading");
+			lprintf(LOG_ERR, "Unable to open SDR for reading");
 			return NULL;
 		}
 	}
@@ -3344,7 +3350,7 @@ ipmi_sdr_find_sdr_bysensortype(struct ipmi_intf *intf, uint8_t type)
 	/* check what we've already read */
 	head = malloc(sizeof (struct sdr_record_list));
 	if (head == NULL) {
-		printf( "ipmitool: malloc failure");
+		lprintf(LOG_ERR, "ipmitool: malloc failure");
 		return NULL;
 	}
 	memset(head, 0, sizeof (struct sdr_record_list));
@@ -3370,7 +3376,7 @@ ipmi_sdr_find_sdr_bysensortype(struct ipmi_intf *intf, uint8_t type)
 
 		sdrr = malloc(sizeof (struct sdr_record_list));
 		if (sdrr == NULL) {
-			printf( "ipmitool: malloc failure");
+			lprintf(LOG_ERR, "ipmitool: malloc failure");
 			break;
 		}
 		memset(sdrr, 0, sizeof (struct sdr_record_list));
@@ -3456,14 +3462,14 @@ ipmi_sdr_find_sdr_byentity(struct ipmi_intf *intf, struct entity_id *entity)
 	if (sdr_list_itr == NULL) {
 		sdr_list_itr = ipmi_sdr_start(intf, 0);
 		if (sdr_list_itr == NULL) {
-			printf( "Unable to open SDR for reading");
+			lprintf(LOG_ERR, "Unable to open SDR for reading");
 			return NULL;
 		}
 	}
 
 	head = malloc(sizeof (struct sdr_record_list));
 	if (head == NULL) {
-		printf( "ipmitool: malloc failure");
+		lprintf(LOG_ERR, "ipmitool: malloc failure");
 		return NULL;
 	}
 	memset(head, 0, sizeof (struct sdr_record_list));
@@ -3524,7 +3530,7 @@ ipmi_sdr_find_sdr_byentity(struct ipmi_intf *intf, struct entity_id *entity)
 
 		sdrr = malloc(sizeof (struct sdr_record_list));
 		if (sdrr == NULL) {
-			printf( "ipmitool: malloc failure");
+			lprintf(LOG_ERR, "ipmitool: malloc failure");
 			break;
 		}
 		memset(sdrr, 0, sizeof (struct sdr_record_list));
@@ -3636,14 +3642,14 @@ ipmi_sdr_find_sdr_bytype(struct ipmi_intf *intf, uint8_t type)
 	if (sdr_list_itr == NULL) {
 		sdr_list_itr = ipmi_sdr_start(intf, 0);
 		if (sdr_list_itr == NULL) {
-			printf( "Unable to open SDR for reading");
+			lprintf(LOG_ERR, "Unable to open SDR for reading");
 			return NULL;
 		}
 	}
 
 	head = malloc(sizeof (struct sdr_record_list));
 	if (head == NULL) {
-		printf( "ipmitool: malloc failure");
+		lprintf(LOG_ERR, "ipmitool: malloc failure");
 		return NULL;
 	}
 	memset(head, 0, sizeof (struct sdr_record_list));
@@ -3660,7 +3666,7 @@ ipmi_sdr_find_sdr_bytype(struct ipmi_intf *intf, uint8_t type)
 
 		sdrr = malloc(sizeof (struct sdr_record_list));
 		if (sdrr == NULL) {
-			printf( "ipmitool: malloc failure");
+			lprintf(LOG_ERR, "ipmitool: malloc failure");
 			break;
 		}
 		memset(sdrr, 0, sizeof (struct sdr_record_list));
@@ -3751,7 +3757,7 @@ ipmi_sdr_find_sdr_byid(struct ipmi_intf *intf, char *id)
 	if (sdr_list_itr == NULL) {
 		sdr_list_itr = ipmi_sdr_start(intf, 0);
 		if (sdr_list_itr == NULL) {
-			printf( "Unable to open SDR for reading");
+			lprintf(LOG_ERR, "Unable to open SDR for reading");
 			return NULL;
 		}
 	}
@@ -3805,7 +3811,7 @@ ipmi_sdr_find_sdr_byid(struct ipmi_intf *intf, char *id)
 
 		sdrr = malloc(sizeof (struct sdr_record_list));
 		if (sdrr == NULL) {
-			printf( "ipmitool: malloc failure");
+			lprintf(LOG_ERR, "ipmitool: malloc failure");
 			break;
 		}
 		memset(sdrr, 0, sizeof (struct sdr_record_list));
@@ -3930,13 +3936,13 @@ ipmi_sdr_list_cache_fromfile(struct ipmi_intf *intf, const char *ifile)
 	int ret = 0, count = 0, bc = 0;
 
 	if (ifile == NULL) {
-		printf( "No SDR cache filename given");
+		lprintf(LOG_ERR, "No SDR cache filename given");
 		return -1;
 	}
 
 	fp = ipmi_open_file_read(ifile);
 	if (fp == NULL) {
-		printf( "Unable to open SDR cache %s for reading",
+		lprintf(LOG_ERR, "Unable to open SDR cache %s for reading",
 			ifile);
 		return -1;
 	}
@@ -3948,7 +3954,7 @@ ipmi_sdr_list_cache_fromfile(struct ipmi_intf *intf, const char *ifile)
 			break;
 
 		if (bc != 5) {
-			printf( "header read %d bytes, expected 5",
+			lprintf(LOG_ERR, "header read %d bytes, expected 5",
 				bc);
 			ret = -1;
 			break;
@@ -3960,7 +3966,7 @@ ipmi_sdr_list_cache_fromfile(struct ipmi_intf *intf, const char *ifile)
 		if (header.version != 0x51 &&
 		    header.version != 0x01 &&
 		    header.version != 0x02) {
-			printf( "invalid sdr header version %02x",
+			lprintf(LOG_WARN, "invalid sdr header version %02x",
 				header.version);
 			ret = -1;
 			break;
@@ -3968,7 +3974,7 @@ ipmi_sdr_list_cache_fromfile(struct ipmi_intf *intf, const char *ifile)
 
 		sdrr = malloc(sizeof (struct sdr_record_list));
 		if (sdrr == NULL) {
-			printf( "ipmitool: malloc failure");
+			lprintf(LOG_ERR, "ipmitool: malloc failure");
 			ret = -1;
 			break;
 		}
@@ -3979,7 +3985,7 @@ ipmi_sdr_list_cache_fromfile(struct ipmi_intf *intf, const char *ifile)
 
 		rec = malloc(header.length + 1);
 		if (rec == NULL) {
-			printf( "ipmitool: malloc failure");
+			lprintf(LOG_ERR, "ipmitool: malloc failure");
 			ret = -1;
 			if (sdrr != NULL) {
 				free(sdrr);
@@ -3991,7 +3997,7 @@ ipmi_sdr_list_cache_fromfile(struct ipmi_intf *intf, const char *ifile)
 
 		bc = fread(rec, 1, header.length, fp);
 		if (bc != header.length) {
-			printf(
+			lprintf(LOG_ERR,
 				"record %04x read %d bytes, expected %d",
 				header.id, bc, header.length);
 			ret = -1;
@@ -4052,7 +4058,7 @@ ipmi_sdr_list_cache_fromfile(struct ipmi_intf *intf, const char *ifile)
 
 		count++;
 
-		printf( "Read record %04x from file into cache",
+		lprintf(LOG_DEBUG, "Read record %04x from file into cache",
 			sdrr->id);
 	}
 
@@ -4084,7 +4090,7 @@ ipmi_sdr_list_cache(struct ipmi_intf *intf)
 	if (sdr_list_itr == NULL) {
 		sdr_list_itr = ipmi_sdr_start(intf, 0);
 		if (sdr_list_itr == NULL) {
-			printf( "Unable to open SDR for reading");
+			lprintf(LOG_ERR, "Unable to open SDR for reading");
 			return -1;
 		}
 	}
@@ -4095,7 +4101,7 @@ ipmi_sdr_list_cache(struct ipmi_intf *intf)
 
 		sdrr = malloc(sizeof (struct sdr_record_list));
 		if (sdrr == NULL) {
-			printf( "ipmitool: malloc failure");
+			lprintf(LOG_ERR, "ipmitool: malloc failure");
 			break;
 		}
 		memset(sdrr, 0, sizeof (struct sdr_record_list));
@@ -4187,11 +4193,11 @@ ipmi_sdr_get_info(struct ipmi_intf *intf,
 	rsp = intf->sendrecv(intf, &req);
 
 	if (rsp == NULL) {
-		printf( "Get SDR Repository Info command failed");
+		lprintf(LOG_ERR, "Get SDR Repository Info command failed");
 		return -1;
 	}
 	if (rsp->ccode > 0) {
-		printf( "Get SDR Repository Info command failed: %s",
+		lprintf(LOG_ERR, "Get SDR Repository Info command failed: %s",
 			val2str(rsp->ccode, completion_code_vals));
 		return -1;
 	}
@@ -4342,7 +4348,7 @@ ipmi_sdr_dump_bin(struct ipmi_intf *intf, const char *ofile)
 	/* open connection to SDR */
 	itr = ipmi_sdr_start(intf, 0);
 	if (itr == NULL) {
-		printf( "Unable to open SDR for reading");
+		lprintf(LOG_ERR, "Unable to open SDR for reading");
 		return -1;
 	}
 
@@ -4352,12 +4358,12 @@ ipmi_sdr_dump_bin(struct ipmi_intf *intf, const char *ofile)
 	while ((header = ipmi_sdr_get_next_header(intf, itr)) != NULL) {
 		sdrr = malloc(sizeof(struct sdr_record_list));
 		if (sdrr == NULL) {
-			printf( "ipmitool: malloc failure");
+			lprintf(LOG_ERR, "ipmitool: malloc failure");
 			return -1;
 		}
 		memset(sdrr, 0, sizeof(struct sdr_record_list));
 
-		printf( "Record ID %04x (%d bytes)",
+		lprintf(LOG_INFO, "Record ID %04x (%d bytes)",
 			header->id, header->length);
 
 		sdrr->id = header->id;
@@ -4367,7 +4373,7 @@ ipmi_sdr_dump_bin(struct ipmi_intf *intf, const char *ofile)
 		sdrr->raw = ipmi_sdr_get_record(intf, header, itr);
 
 		if (sdrr->raw == NULL) {
-		    printf( "ipmitool: cannot obtain SDR record %04x", header->id);
+		    lprintf(LOG_ERR, "ipmitool: cannot obtain SDR record %04x", header->id);
 				if (sdrr != NULL) {
 					free(sdrr);
 					sdrr = NULL;
@@ -4403,7 +4409,7 @@ ipmi_sdr_dump_bin(struct ipmi_intf *intf, const char *ofile)
 
 		r = fwrite(h, 1, 5, fp);
 		if (r != 5) {
-			printf( "Error writing header "
+			lprintf(LOG_ERR, "Error writing header "
 				"to output file %s", ofile);
 			rc = -1;
 			break;
@@ -4411,14 +4417,14 @@ ipmi_sdr_dump_bin(struct ipmi_intf *intf, const char *ofile)
 
 		/* write sdr entry */
 		if (!sdrr->raw) {
-			printf( "Error: raw data is null (length=%d)",
+			lprintf(LOG_ERR, "Error: raw data is null (length=%d)",
 								sdrr->length);
 			rc = -1;
 			break;
 		}
 		r = fwrite(sdrr->raw, 1, sdrr->length, fp);
 		if (r != sdrr->length) {
-			printf( "Error writing %d record bytes "
+			lprintf(LOG_ERR, "Error writing %d record bytes "
 				"to output file %s", sdrr->length, ofile);
 			rc = -1;
 			break;
@@ -4460,7 +4466,7 @@ ipmi_sdr_print_type(struct ipmi_intf *intf, char *type)
 	if (strncmp(type, "0x", 2) == 0) {
 		/* begins with 0x so let it be entered as raw hex value */
 		if (str2uchar(type, &sensor_type) != 0) {
-			printf(
+			lprintf(LOG_ERR,
 					"Given type of sensor \"%s\" is either invalid or out of range.",
 					type);
 			return (-1);
@@ -4475,7 +4481,7 @@ ipmi_sdr_print_type(struct ipmi_intf *intf, char *type)
 			}
 		}
 		if (sensor_type != x) {
-			printf( "Sensor Type \"%s\" not found.",
+			lprintf(LOG_ERR, "Sensor Type \"%s\" not found.",
 				type);
 			printf("Sensor Types:\n");
 			for (x = 1; x < SENSOR_TYPE_MAX; x += 2) {
@@ -4540,7 +4546,7 @@ ipmi_sdr_print_entity(struct ipmi_intf *intf, char *entitystr)
 				}
 			}
 			if (j == 0) {
-				printf( "Invalid entity: %s", entitystr);
+				lprintf(LOG_ERR, "Invalid entity: %s", entitystr);
 				return -1;
 			}
 		} else {
@@ -4580,7 +4586,7 @@ ipmi_sdr_print_entry_byid(struct ipmi_intf *intf, int argc, char **argv)
 	int v, i;
 
 	if (argc < 1) {
-		printf( "No Sensor ID supplied");
+		lprintf(LOG_ERR, "No Sensor ID supplied");
 		return -1;
 	}
 
@@ -4590,7 +4596,7 @@ ipmi_sdr_print_entry_byid(struct ipmi_intf *intf, int argc, char **argv)
 	for (i = 0; i < argc; i++) {
 		sdr = ipmi_sdr_find_sdr_byid(intf, argv[i]);
 		if (sdr == NULL) {
-			printf( "Unable to find sensor id '%s'",
+			lprintf(LOG_ERR, "Unable to find sensor id '%s'",
 				argv[i]);
 		} else {
 			if (ipmi_sdr_print_listentry(intf, sdr) < 0)
@@ -4655,14 +4661,17 @@ ipmi_sdr_main(struct ipmi_intf *intf, int argc, char **argv)
 			rc = ipmi_sdr_print_sdr(intf,
 						SDR_RECORD_TYPE_GENERIC_DEVICE_LOCATOR);
 		else if (strcmp(argv[1], "help") == 0) {
-			printf(	"usage: sdr %s [all|full|compact|event|mcloc|fru|generic]",
+			lprintf(LOG_NOTICE,
+				"usage: sdr %s [all|full|compact|event|mcloc|fru|generic]",
 				argv[0]);
 			return 0;
 		}
 		else {
-			printf(	"Invalid SDR %s command: %s",
+			lprintf(LOG_ERR,
+				"Invalid SDR %s command: %s",
 				argv[0], argv[1]);
-			printf(	"usage: sdr %s [all|full|compact|event|mcloc|fru|generic]",
+			lprintf(LOG_NOTICE,
+				"usage: sdr %s [all|full|compact|event|mcloc|fru|generic]",
 				argv[0]);
 			return (-1);
 		}
@@ -4678,17 +4687,17 @@ ipmi_sdr_main(struct ipmi_intf *intf, int argc, char **argv)
 		rc = ipmi_sdr_print_entry_byid(intf, argc - 1, &argv[1]);
 	} else if (strncmp(argv[0], "dump", 4) == 0) {
 		if (argc < 2) {
-			printf( "Not enough parameters given.");
-			printf( "usage: sdr dump <file>");
+			lprintf(LOG_ERR, "Not enough parameters given.");
+			lprintf(LOG_NOTICE, "usage: sdr dump <file>");
 			return (-1);
 		}
 		rc = ipmi_sdr_dump_bin(intf, argv[1]);
 	} else if (strncmp(argv[0], "fill", 4) == 0) {
 		if (argc <= 1) {
-			printf( "Not enough parameters given.");
-			printf( "usage: sdr fill sensors");
-			printf( "usage: sdr fill file <file>");
-			printf( "usage: sdr fill range <range>");
+			lprintf(LOG_ERR, "Not enough parameters given.");
+			lprintf(LOG_NOTICE, "usage: sdr fill sensors");
+			lprintf(LOG_NOTICE, "usage: sdr fill file <file>");
+			lprintf(LOG_NOTICE, "usage: sdr fill range <range>");
 			return (-1);
 		} else if (strncmp(argv[1], "sensors", 7) == 0) {
 			rc = ipmi_sdr_add_from_sensors(intf, 21);
@@ -4696,27 +4705,33 @@ ipmi_sdr_main(struct ipmi_intf *intf, int argc, char **argv)
 			rc = ipmi_sdr_add_from_sensors(intf, 0);
 		} else if (strncmp(argv[1], "file", 4) == 0) {
 			if (argc < 3) {
-				printf(	"Not enough parameters given.");
-				printf(	"usage: sdr fill file <file>");
+				lprintf(LOG_ERR,
+					"Not enough parameters given.");
+				lprintf(LOG_NOTICE,
+					"usage: sdr fill file <file>");
 				return (-1);
 			}
 			rc = ipmi_sdr_add_from_file(intf, argv[2]);
 		} else if (strncmp(argv[1], "range", 4) == 0) {
 			if (argc < 3) {
-				printf(	"Not enough parameters given.");
-				printf(	"usage: sdr fill range <range>");
+				lprintf(LOG_ERR,
+					"Not enough parameters given.");
+				lprintf(LOG_NOTICE,
+					"usage: sdr fill range <range>");
 				return (-1);
 			}
 			rc = ipmi_sdr_add_from_list(intf, argv[2]);
 		} else {
-		    printf("Invalid SDR %s command: %s",
+		    lprintf(LOG_ERR,
+			    "Invalid SDR %s command: %s",
 			    argv[0], argv[1]);
-		    printf(   "usage: sdr %s <sensors|nosat|file|range> [options]",
+		    lprintf(LOG_NOTICE,
+			    "usage: sdr %s <sensors|nosat|file|range> [options]",
 			    argv[0]);
 		    return (-1);
 		}
 	} else {
-		printf( "Invalid SDR command: %s", argv[0]);
+		lprintf(LOG_ERR, "Invalid SDR command: %s", argv[0]);
 		rc = -1;
 	}
 
@@ -4726,35 +4741,66 @@ ipmi_sdr_main(struct ipmi_intf *intf, int argc, char **argv)
 void
 printf_sdr_usage()
 {
-	printf( "usage: sdr <command> [options]");
-	printf("               list | elist [option]");
-	printf("                     all           All SDR Records");
-	printf("                     full          Full Sensor Record");
-	printf("                     compact       Compact Sensor Record");
-	printf("                     event         Event-Only Sensor Record");
-	printf("                     mcloc         Management Controller Locator Record");
-	printf("                     fru           FRU Locator Record");
-	printf("                     generic       Generic Device Locator Record\n");
-	printf("               type [option]");
-	printf("                     <Sensor_Type> Retrieve the state of specified sensor.");
-	printf("                                   Sensor_Type can be specified either as");
-	printf("                                   a string or a hex value.");
-	printf("                     list          Get a list of available sensor types\n");
-	printf("               get <Sensor_ID>");
-	printf("                     Retrieve state of the first sensor matched by Sensor_ID\n");
-	printf("               info");
-	printf("                     Display information about the repository itself\n");
-	printf("               entity <Entity_ID>[.<Instance_ID>]");
-	printf("                     Display all sensors associated with an entity\n");
-	printf("               dump <file>");
-	printf("                     Dump raw SDR data to a file\n");
-	printf("               fill <option>");
-	printf("                     sensors       Creates the SDR repository for the current");
-	printf("                                   configuration");
-	printf("                     nosat         Creates the SDR repository for the current");
-	printf("                                   configuration, without satellite scan");
-	printf("                     file <file>   Load SDR repository from a file");
-	printf("                     range <range> Load SDR repository from a provided list");
-	printf("                                   or range. Use ',' for list or '-' for");
-	printf("                                   range, eg. 0x28,0x32,0x40-0x44");
+	lprintf(LOG_NOTICE,
+"usage: sdr <command> [options]");
+	lprintf(LOG_NOTICE,
+"               list | elist [option]");
+	lprintf(LOG_NOTICE,
+"                     all           All SDR Records");
+	lprintf(LOG_NOTICE,
+"                     full          Full Sensor Record");
+	lprintf(LOG_NOTICE,
+"                     compact       Compact Sensor Record");
+	lprintf(LOG_NOTICE,
+"                     event         Event-Only Sensor Record");
+	lprintf(LOG_NOTICE,
+"                     mcloc         Management Controller Locator Record");
+	lprintf(LOG_NOTICE,
+"                     fru           FRU Locator Record");
+	lprintf(LOG_NOTICE,
+"                     generic       Generic Device Locator Record\n");
+	lprintf(LOG_NOTICE,
+"               type [option]");
+	lprintf(LOG_NOTICE,
+"                     <Sensor_Type> Retrieve the state of specified sensor.");
+	lprintf(LOG_NOTICE,
+"                                   Sensor_Type can be specified either as");
+	lprintf(LOG_NOTICE,
+"                                   a string or a hex value.");
+	lprintf(LOG_NOTICE,
+"                     list          Get a list of available sensor types\n");
+	lprintf(LOG_NOTICE,
+"               get <Sensor_ID>");
+	lprintf(LOG_NOTICE,
+"                     Retrieve state of the first sensor matched by Sensor_ID\n");
+	lprintf(LOG_NOTICE,
+"               info");
+	lprintf(LOG_NOTICE,
+"                     Display information about the repository itself\n");
+	lprintf(LOG_NOTICE,
+"               entity <Entity_ID>[.<Instance_ID>]");
+	lprintf(LOG_NOTICE,
+"                     Display all sensors associated with an entity\n");
+	lprintf(LOG_NOTICE,
+"               dump <file>");
+	lprintf(LOG_NOTICE,
+"                     Dump raw SDR data to a file\n");
+	lprintf(LOG_NOTICE,
+"               fill <option>");
+	lprintf(LOG_NOTICE,
+"                     sensors       Creates the SDR repository for the current");
+	lprintf(LOG_NOTICE,
+"                                   configuration");
+	lprintf(LOG_NOTICE,
+"                     nosat         Creates the SDR repository for the current");
+	lprintf(LOG_NOTICE,
+"                                   configuration, without satellite scan");
+	lprintf(LOG_NOTICE,
+"                     file <file>   Load SDR repository from a file");
+	lprintf(LOG_NOTICE,
+"                     range <range> Load SDR repository from a provided list");
+	lprintf(LOG_NOTICE,
+"                                   or range. Use ',' for list or '-' for");
+	lprintf(LOG_NOTICE,
+"                                   range, eg. 0x28,0x32,0x40-0x44");
 }

+ 25 - 25
app/ipmitool-1.8.18/lib/ipmi_sdradd.c

@@ -105,18 +105,18 @@ ipmi_sdr_add_record(struct ipmi_intf *intf, struct sdr_record_list *sdrr)
 
   /* actually no SDR to program */
   if (len < 1 || !sdrr->raw) {
-    printf(  "ipmitool: bad record , skipped");
+    lprintf(LOG_ERR, "ipmitool: bad record , skipped");
     return 0;
   }
 
   if (ipmi_sdr_get_reservation(intf, 0, &reserve_id)) {
-    printf(  "ipmitool: reservation failed");
+    lprintf(LOG_ERR, "ipmitool: reservation failed");
     return -1;
   }
 
   sdr_rq = (struct sdr_add_rq *)malloc(sizeof(*sdr_rq) + sdr_max_write_len);
   if (sdr_rq == NULL) {
-    printf(  "ipmitool: malloc failure");
+    lprintf(LOG_ERR, "ipmitool: malloc failure");
     return -1;
   }
   sdr_rq->reserve_id = reserve_id;
@@ -138,7 +138,7 @@ ipmi_sdr_add_record(struct ipmi_intf *intf, struct sdr_record_list *sdrr)
   req.msg.data_len = 5 + sizeof(*sdr_rq) - 1;
 
   if (partial_send(intf, &req, &id)) {
-     printf(  "ipmitool: partial send error");
+     lprintf(LOG_ERR, "ipmitool: partial send error");
     free(sdr_rq);
     sdr_rq = NULL;
     return -1;
@@ -163,7 +163,7 @@ ipmi_sdr_add_record(struct ipmi_intf *intf, struct sdr_record_list *sdrr)
     req.msg.data_len = data_len + sizeof(*sdr_rq) - 1;
 
     if ((rc = partial_send(intf, &req, &id)) != 0) {
-       printf(  "ipmitool: partial add failed");
+       lprintf(LOG_ERR, "ipmitool: partial add failed");
       break;
     }
 
@@ -203,11 +203,11 @@ ipmi_sdr_repo_clear(struct ipmi_intf *intf)
   for (try = 0; try < 5; try++) {
     rsp = intf->sendrecv(intf, &req);
     if (rsp == NULL) {
-      printf(  "Unable to clear SDRR");
+      lprintf(LOG_ERR, "Unable to clear SDRR");
       return -1;
     }
     if (rsp->ccode > 0) {
-      printf(  "Unable to clear SDRR: %s",
+      lprintf(LOG_ERR, "Unable to clear SDRR: %s",
         val2str(rsp->ccode, completion_code_vals));
       return -1;
     }
@@ -253,7 +253,7 @@ sdrr_get_records(struct ipmi_intf *intf, struct ipmi_sdr_iterator *itr,
 
     sdrr = malloc(sizeof (struct sdr_record_list));
     if (sdrr == NULL) {
-      printf(  "ipmitool: malloc failure");
+      lprintf(LOG_ERR, "ipmitool: malloc failure");
       return -1;
     }
     memset(sdrr, 0, sizeof (struct sdr_record_list));
@@ -304,7 +304,7 @@ sdr_copy_to_sdrr(struct ipmi_intf *intf, int use_builtin,
     sdrr_next = sdrr->next;
     rc = ipmi_sdr_add_record(intf, sdrr);
     if(rc < 0){
-      printf(  "Cannot add SDR ID 0x%04x to repository...", sdrr->id);
+      lprintf(LOG_ERR, "Cannot add SDR ID 0x%04x to repository...", sdrr->id);
     }
     free(sdrr);
     sdrr = NULL;
@@ -321,7 +321,7 @@ ipmi_sdr_add_from_sensors(struct ipmi_intf *intf, int maxslot)
   int myaddr = intf->target_addr;
 
   if (ipmi_sdr_repo_clear(intf)) {
-    printf(  "Cannot erase SDRR. Give up.");
+    lprintf(LOG_ERR, "Cannot erase SDRR. Give up.");
     return -1;
   }
 
@@ -398,7 +398,7 @@ int ipmi_hex_to_dec( char * strchar, unsigned char * pDecValue)
   }
   else
   {
-    printf(  "Must be Hex value of 4 characters (Ex.: 0x24)");
+    lprintf(LOG_ERR, "Must be Hex value of 4 characters (Ex.: 0x24)");
   }
 
   return rc;
@@ -461,7 +461,7 @@ int ipmi_parse_range_list(const char *rangeList, unsigned char * pHexList)
           }
           else
           {
-            printf(  "I2C address provided value must be even.");
+            lprintf(LOG_ERR, "I2C address provided value must be even.");
           }
         }
       }
@@ -493,7 +493,7 @@ int ipmi_parse_range_list(const char *rangeList, unsigned char * pHexList)
           }
           else
           {
-            printf(  "I2C address provided value must be even.");
+            lprintf(LOG_ERR, "I2C address provided value must be even.");
           }
         }
       }
@@ -523,7 +523,7 @@ ipmi_sdr_add_from_list(struct ipmi_intf *intf, const char *rangeList)
   /* Build list from string */
   if(ipmi_parse_range_list(rangeList, listValue) != 0)
   {
-    printf(  "Range - List invalid, cannot be parsed.");
+    lprintf(LOG_ERR, "Range - List invalid, cannot be parsed.");
     return -1;
   }
 
@@ -540,7 +540,7 @@ ipmi_sdr_add_from_list(struct ipmi_intf *intf, const char *rangeList)
 
   printf("Clearing SDR Repository\n");
   if (ipmi_sdr_repo_clear(intf)) {
-    printf(  "Cannot erase SDRR. Give up.");
+    lprintf(LOG_ERR, "Cannot erase SDRR. Give up.");
     return -1;
   }
 
@@ -590,15 +590,15 @@ ipmi_sdr_read_records(const char *filename, struct sdrr_queue *queue)
     
     struct sdr_record_list *sdrr;
 
-    printf(  "binHdr[0] (id[MSB]) = 0x%02x", binHdr[0]);
-    printf(  "binHdr[1] (id[LSB]) = 0x%02x", binHdr[1]);
-    printf(  "binHdr[2] (version) = 0x%02x", binHdr[2]);
-    printf(  "binHdr[3] (type) = 0x%02x", binHdr[3]);
-    printf(  "binHdr[4] (length) = 0x%02x", binHdr[4]);
+    lprintf(LOG_DEBUG, "binHdr[0] (id[MSB]) = 0x%02x", binHdr[0]);
+    lprintf(LOG_DEBUG, "binHdr[1] (id[LSB]) = 0x%02x", binHdr[1]);
+    lprintf(LOG_DEBUG, "binHdr[2] (version) = 0x%02x", binHdr[2]);
+    lprintf(LOG_DEBUG, "binHdr[3] (type) = 0x%02x", binHdr[3]);
+    lprintf(LOG_DEBUG, "binHdr[4] (length) = 0x%02x", binHdr[4]);
 
     sdrr = malloc(sizeof(*sdrr));
     if (sdrr == NULL) {
-      printf(  "ipmitool: malloc failure");
+      lprintf(LOG_ERR, "ipmitool: malloc failure");
       rc = -1;
       break;
     }
@@ -608,7 +608,7 @@ ipmi_sdr_read_records(const char *filename, struct sdrr_queue *queue)
     sdrr->length = binHdr[4];
 
     if ((sdrr->raw = malloc(sdrr->length)) == NULL) {
-      printf(  "ipmitool: malloc failure");
+      lprintf(LOG_ERR, "ipmitool: malloc failure");
       free(sdrr);
       sdrr = NULL;
       rc = -1;
@@ -616,7 +616,7 @@ ipmi_sdr_read_records(const char *filename, struct sdrr_queue *queue)
     }
 
     if (read(fd, sdrr->raw, sdrr->length) != sdrr->length) {
-      printf(  "SDR from '%s' truncated", filename);
+      lprintf(LOG_ERR, "SDR from '%s' truncated", filename);
       free(sdrr->raw);
       sdrr->raw = NULL;
       free(sdrr);
@@ -648,7 +648,7 @@ ipmi_sdr_add_from_file(struct ipmi_intf *intf, const char *ifile)
   rc = ipmi_sdr_read_records(ifile, &sdrr_queue);
 
   if (ipmi_sdr_repo_clear(intf)) {
-    printf(  "Cannot erase SDRR. Giving up.");
+    lprintf(LOG_ERR, "Cannot erase SDRR. Giving up.");
     /* FIXME: free sdr list */
     return -1;
   }
@@ -658,7 +658,7 @@ ipmi_sdr_add_from_file(struct ipmi_intf *intf, const char *ifile)
     sdrr_next = sdrr->next;
     rc = ipmi_sdr_add_record(intf, sdrr);
     if(rc < 0){
-      printf(  "Cannot add SDR ID 0x%04x to repository...", sdrr->id);
+      lprintf(LOG_ERR, "Cannot add SDR ID 0x%04x to repository...", sdrr->id);
     }
     free(sdrr);
     sdrr = NULL;

+ 93 - 93
app/ipmitool-1.8.18/lib/ipmi_sel.c

@@ -124,13 +124,13 @@ int ipmi_sel_oem_init(const char * filename)
 	char buf[15][150];
 
 	if (filename == NULL) {
-		printf(  "No SEL OEM filename provided");
+		lprintf(LOG_ERR, "No SEL OEM filename provided");
 		return -1;
 	}
 
 	fp = ipmi_open_file_read(filename);
 	if (fp == NULL) {
-		printf(  "Could not open %s file", filename);
+		lprintf(LOG_ERR, "Could not open %s file", filename);
 		return -1;
 	}
 
@@ -156,7 +156,7 @@ int ipmi_sel_oem_init(const char * filename)
 			 buf[12], buf[13], buf[14]);
 
 		if (n != 15) {
-			printf (  "Encountered problems reading line %d of %s",
+			lprintf (LOG_ERR, "Encountered problems reading line %d of %s",
 				 i+1, filename);
 			fclose(fp);
 			fp = NULL;
@@ -316,18 +316,18 @@ ipmi_get_oem(struct ipmi_intf * intf)
 
 	rsp = intf->sendrecv(intf, &req);
 	if (rsp == NULL) {
-		printf(  "Get Device ID command failed");
+		lprintf(LOG_ERR, "Get Device ID command failed");
 		return IPMI_OEM_UNKNOWN;
 	}
 	if (rsp->ccode > 0) {
-		printf(  "Get Device ID command failed: %#x %s",
+		lprintf(LOG_ERR, "Get Device ID command failed: %#x %s",
 			rsp->ccode, val2str(rsp->ccode, completion_code_vals));
 		return IPMI_OEM_UNKNOWN;
 	}
 
 	devid = (struct ipm_devid_rsp *) rsp->data;
 
-	printf( "Iana: %u",
+	lprintf(LOG_DEBUG,"Iana: %u",
            IPM_DEV_MANUFACTURER_ID(devid->manufacturer_id));
 
 	return  IPM_DEV_MANUFACTURER_ID(devid->manufacturer_id);
@@ -349,11 +349,11 @@ ipmi_sel_add_entry(struct ipmi_intf * intf, struct sel_event_record * rec)
 
 	rsp = intf->sendrecv(intf, &req);
 	if (rsp == NULL) {
-		printf(  "Add SEL Entry failed");
+		lprintf(LOG_ERR, "Add SEL Entry failed");
 		return -1;
 	}
 	else if (rsp->ccode > 0) {
-		printf(  "Add SEL Entry failed: %s",
+		lprintf(LOG_ERR, "Add SEL Entry failed: %s",
 			val2str(rsp->ccode, completion_code_vals));
 		return -1;
 	}
@@ -415,7 +415,7 @@ ipmi_sel_add_entries_fromfile(struct ipmi_intf * intf, const char * filename)
 			tok = strtok(NULL, " ");
 		}
 		if (i < 7) {
-			printf(  "Invalid Event: %s",
+			lprintf(LOG_ERR, "Invalid Event: %s",
 			       buf2str(rqdata, sizeof(rqdata)));
 			continue;
 		}
@@ -508,12 +508,12 @@ get_newisys_evt_desc(struct ipmi_intf * intf, struct sel_event_record * rec)
 	rsp = intf->sendrecv(intf, &req);
 	if (rsp == NULL) {
 		if (verbose)
-			printf(  "Error issuing OEM command");
+			lprintf(LOG_ERR, "Error issuing OEM command");
 		return NULL;
 	}
 	if (rsp->ccode > 0) {
 		if (verbose)
-			printf(  "OEM command returned error code: %s",
+			lprintf(LOG_ERR, "OEM command returned error code: %s",
 					val2str(rsp->ccode, completion_code_vals));
 		return NULL;
 	}
@@ -521,17 +521,17 @@ get_newisys_evt_desc(struct ipmi_intf * intf, struct sel_event_record * rec)
 	/* Verify our response before we use it */
 	if (rsp->data_len < 5)
 	{
-		printf(  "Newisys OEM response too short");
+		lprintf(LOG_ERR, "Newisys OEM response too short");
 		return NULL;
 	}
 	else if (rsp->data_len != (4 + rsp->data[3]))
 	{
-		printf(  "Newisys OEM response has unexpected length");
+		lprintf(LOG_ERR, "Newisys OEM response has unexpected length");
 		return NULL;
 	}
 	else if (IPM_DEV_MANUFACTURER_ID(rsp->data) != IPMI_OEM_NEWISYS)
 	{
-		printf(  "Newisys OEM response has unexpected length");
+		lprintf(LOG_ERR, "Newisys OEM response has unexpected length");
 		return NULL;
 	}
 
@@ -568,7 +568,7 @@ get_supermicro_evt_desc(struct ipmi_intf *intf, struct sel_event_record *rec)
 	/* Allocate mem for te Description string */
 	desc = malloc(sizeof(char) * SIZE_OF_DESC);
 	if (desc == NULL) {
-		printf(  "ipmitool: malloc failure");
+		lprintf(LOG_ERR, "ipmitool: malloc failure");
 		return NULL;
 	}
 	memset(desc, '\0', SIZE_OF_DESC);
@@ -584,14 +584,14 @@ get_supermicro_evt_desc(struct ipmi_intf *intf, struct sel_event_record *rec)
 
 			rsp = intf->sendrecv(intf, &req);
 			if (rsp == NULL) {
-				printf(  " Error getting system info");
+				lprintf(LOG_ERR, " Error getting system info");
 				if (desc != NULL) {
 					free(desc);
 					desc = NULL;
 				}
 				return NULL;
 			} else if (rsp->ccode > 0) {
-				printf(  " Error getting system info: %s",
+				lprintf(LOG_ERR, " Error getting system info: %s",
 						val2str(rsp->ccode, completion_code_vals));
 				if (desc != NULL) {
 					free(desc);
@@ -786,7 +786,7 @@ char * get_dell_evt_desc(struct ipmi_intf * intf, struct sel_event_record * rec)
 				rsp = intf->sendrecv(intf, &req);
 				if (NULL == rsp) 
 				{
-					printf(  " Error getting system info");
+					lprintf(LOG_ERR, " Error getting system info");
 					if (desc != NULL) {
 						free(desc);
 						desc = NULL;
@@ -795,7 +795,7 @@ char * get_dell_evt_desc(struct ipmi_intf * intf, struct sel_event_record * rec)
 				} 
 				else if (rsp->ccode > 0)
 				{
-					printf(  " Error getting system info: %s",
+					lprintf(LOG_ERR, " Error getting system info: %s",
 						val2str(rsp->ccode, completion_code_vals));
 					if (desc != NULL) {
 						free(desc);
@@ -1334,7 +1334,7 @@ ipmi_get_event_desc(struct ipmi_intf * intf, struct sel_event_record * rec, char
 
 			switch(iana){
 				case IPMI_OEM_KONTRON:
-					printf(  "oem sensor type %x %d using oem type supplied description",
+					lprintf(LOG_DEBUG, "oem sensor type %x %d using oem type supplied description",
 		                       rec->sel_type.standard_type.sensor_type , iana);
 				 break;
 				case IPMI_OEM_DELL:		/* OEM Bytes Decoding for DELLi */
@@ -1350,7 +1350,7 @@ ipmi_get_event_desc(struct ipmi_intf * intf, struct sel_event_record * rec, char
 					break;
 				 /* add your oem sensor assignation here */
 				default:
-					printf(  "oem sensor type %x  using standard type supplied description",
+					lprintf(LOG_DEBUG, "oem sensor type %x  using standard type supplied description",
 						rec->sel_type.standard_type.sensor_type );
 					break;
 			}
@@ -1398,7 +1398,7 @@ ipmi_get_event_desc(struct ipmi_intf * intf, struct sel_event_record * rec, char
 			/* Increase the Malloc size to current_size + Dellspecific description size */
 			*desc = (char *)malloc(strlen(evt->desc) + 48 + SIZE_OF_DESC);
 			if (NULL == *desc) {
-				printf(  "ipmitool: malloc failure");
+				lprintf(LOG_ERR, "ipmitool: malloc failure");
 				return;
 			}
 			memset(*desc, 0, strlen(evt->desc)+ 48 + SIZE_OF_DESC);
@@ -1450,7 +1450,7 @@ ipmi_get_event_desc(struct ipmi_intf * intf, struct sel_event_record * rec, char
 		    *desc = (char *)malloc( 48 + SIZE_OF_DESC);
 		    if (NULL == *desc)
 			{
-		        printf(  "ipmitool: malloc failure");
+		        lprintf(LOG_ERR, "ipmitool: malloc failure");
 			    return;
 		    }
 		memset(*desc, 0, 48 + SIZE_OF_DESC);
@@ -1538,14 +1538,14 @@ ipmi_sel_get_info(struct ipmi_intf * intf)
 
 	rsp = intf->sendrecv(intf, &req);
 	if (rsp == NULL) {
-		printf(  "Get SEL Info command failed");
+		lprintf(LOG_ERR, "Get SEL Info command failed");
 		return -1;
 	} else if (rsp->ccode > 0) {
-		printf(  "Get SEL Info command failed: %s",
+		lprintf(LOG_ERR, "Get SEL Info command failed: %s",
 		       val2str(rsp->ccode, completion_code_vals));
 		return -1;
 	} else if (rsp->data_len != 14) {
-		printf(  "Get SEL Info command failed: "
+		lprintf(LOG_ERR, "Get SEL Info command failed: "
 			"Invalid data length %d", rsp->data_len);
 		return (-1);
 	}
@@ -1619,12 +1619,12 @@ ipmi_sel_get_info(struct ipmi_intf * intf)
 
 		rsp = intf->sendrecv(intf, &req);
 		if (rsp == NULL) {
-			printf( 
+			lprintf(LOG_ERR,
 				"Get SEL Allocation Info command failed");
 			return -1;
 		}
 		if (rsp->ccode > 0) {
-			printf( 
+			lprintf(LOG_ERR,
 				"Get SEL Allocation Info command failed: %s",
 				val2str(rsp->ccode, completion_code_vals));
 			return -1;
@@ -1665,11 +1665,11 @@ ipmi_sel_get_std_entry(struct ipmi_intf * intf, uint16_t id,
 
 	rsp = intf->sendrecv(intf, &req);
 	if (rsp == NULL) {
-		printf(  "Get SEL Entry %x command failed", id);
+		lprintf(LOG_ERR, "Get SEL Entry %x command failed", id);
 		return 0;
 	}
 	if (rsp->ccode > 0) {
-		printf(  "Get SEL Entry %x command failed: %s",
+		lprintf(LOG_ERR, "Get SEL Entry %x command failed: %s",
 			id, val2str(rsp->ccode, completion_code_vals));
 		return 0;
 	}
@@ -1677,7 +1677,7 @@ ipmi_sel_get_std_entry(struct ipmi_intf * intf, uint16_t id,
 	/* save next entry id */
 	next = (rsp->data[1] << 8) | rsp->data[0];
 
-	printf(  "SEL Entry: %s", buf2str(rsp->data+2, rsp->data_len-2));
+	lprintf(LOG_DEBUG, "SEL Entry: %s", buf2str(rsp->data+2, rsp->data_len-2));
 	memset(evt, 0, sizeof(*evt));
   
 	/*Clear SEL Structure*/
@@ -2269,11 +2269,11 @@ __ipmi_sel_savelist_entries(struct ipmi_intf * intf, int count, const char * sav
 
 	rsp = intf->sendrecv(intf, &req);
 	if (rsp == NULL) {
-		printf(  "Get SEL Info command failed");
+		lprintf(LOG_ERR, "Get SEL Info command failed");
 		return -1;
 	}
 	if (rsp->ccode > 0) {
-		printf(  "Get SEL Info command failed: %s",
+		lprintf(LOG_ERR, "Get SEL Info command failed: %s",
 		       val2str(rsp->ccode, completion_code_vals));
 		return -1;
 	}
@@ -2281,7 +2281,7 @@ __ipmi_sel_savelist_entries(struct ipmi_intf * intf, int count, const char * sav
 		printbuf(rsp->data, rsp->data_len, "sel_info");
 
 	if (rsp->data[1] == 0 && rsp->data[2] == 0) {
-		printf(  "SEL has no entries");
+		lprintf(LOG_ERR, "SEL has no entries");
 		return 0;
 	}
 
@@ -2291,11 +2291,11 @@ __ipmi_sel_savelist_entries(struct ipmi_intf * intf, int count, const char * sav
 
 	rsp = intf->sendrecv(intf, &req);
 	if (rsp == NULL) {
-		printf(  "Reserve SEL command failed");
+		lprintf(LOG_ERR, "Reserve SEL command failed");
 		return -1;
 	}
 	if (rsp->ccode > 0) {
-		printf(  "Reserve SEL command failed: %s",
+		lprintf(LOG_ERR, "Reserve SEL command failed: %s",
 		       val2str(rsp->ccode, completion_code_vals));
 		return -1;
 	}
@@ -2308,11 +2308,11 @@ __ipmi_sel_savelist_entries(struct ipmi_intf * intf, int count, const char * sav
 		req.msg.cmd = IPMI_CMD_GET_SEL_INFO;
 		rsp = intf->sendrecv(intf, &req);
 		if (rsp == NULL) {
-			printf(  "Get SEL Info command failed");
+			lprintf(LOG_ERR, "Get SEL Info command failed");
 			return -1;
 		}
 		if (rsp->ccode > 0) {
-			printf(  "Get SEL Info command failed: %s",
+			lprintf(LOG_ERR, "Get SEL Info command failed: %s",
 				val2str(rsp->ccode, completion_code_vals));
 			return -1;
 		}
@@ -2342,7 +2342,7 @@ __ipmi_sel_savelist_entries(struct ipmi_intf * intf, int count, const char * sav
 
 	while (next_id != 0xffff) {
 		curr_id = next_id;
-		printf(  "SEL Next ID: %04x", curr_id);
+		lprintf(LOG_DEBUG, "SEL Next ID: %04x", curr_id);
 
 		next_id = ipmi_sel_get_std_entry(intf, curr_id, &evt);
 		if (next_id == 0) {
@@ -2419,13 +2419,13 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 		 */
 		fp = ipmi_open_file(readfile, 0);
 		if (fp == NULL) {
-			printf(  "Failed to open file '%s' for reading.",
+			lprintf(LOG_ERR, "Failed to open file '%s' for reading.",
 					readfile);
 			return (-1);
 		}
 		buffer = (char *)malloc((size_t)256);
 		if (buffer == NULL) {
-			printf(  "ipmitool: malloc failure");
+			lprintf(LOG_ERR, "ipmitool: malloc failure");
 			fclose(fp);
 			return (-1);
 		}
@@ -2438,7 +2438,7 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 				break;
 			}
 			if (strlen(buffer) > 255) {
-				printf(  "ipmitool: invalid entry found in file.");
+				lprintf(LOG_ERR, "ipmitool: invalid entry found in file.");
 				continue;
 			}
 			cursor = buffer;
@@ -2447,7 +2447,7 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 			errno = 0;
 			evt.record_id = strtol((const char *)cursor, (char **)NULL, 16);
 			if (errno != 0) {
-				printf(  "Invalid record ID.");
+				lprintf(LOG_ERR, "Invalid record ID.");
 				status = (-1);
 				break;
 			}	
@@ -2475,7 +2475,7 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 			evt.sel_type.standard_type.sensor_type =
 				strtol((const char *)cursor, (char **)NULL, 16);
 			if (errno != 0) {
-				printf(  "Invalid Sensor Type.");
+				lprintf(LOG_ERR, "Invalid Sensor Type.");
 				status = (-1);
 				break;
 			}	
@@ -2486,7 +2486,7 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 			evt.sel_type.standard_type.sensor_num =
 				strtol((const char *)cursor, (char **)NULL, 10);
 			if (errno != 0) {
-				printf(  "Invalid Sensor Number.");
+				lprintf(LOG_ERR, "Invalid Sensor Number.");
 				status = (-1);
 				break;
 			}	
@@ -2499,7 +2499,7 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 			evt.sel_type.standard_type.event_type=
 				strtol((const char *)cursor, (char **)NULL, 16);
 			if (errno != 0) {
-				printf(  "Invalid Event Type.");
+				lprintf(LOG_ERR, "Invalid Event Type.");
 				status = (-1);
 				break;
 			}	
@@ -2526,7 +2526,7 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 				evt.sel_type.standard_type.event_data[2] =
 					strtol(cursor, (char **)NULL, 10);
 				if (errno != 0) {
-					printf(  "Invalid Event Data#2.");
+					lprintf(LOG_ERR, "Invalid Event Data#2.");
 					status = (-1);
 					break;
 				}	
@@ -2540,7 +2540,7 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 				evt.sel_type.standard_type.event_data[1] =
 					strtol(cursor, (char **)NULL, 10);
 				if (errno != 0) {
-					printf(  "Invalid Event Data#1.");
+					lprintf(LOG_ERR, "Invalid Event Data#1.");
 					status = (-1);
 					break;
 				}	
@@ -2554,7 +2554,7 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 				evt.sel_type.standard_type.event_data[0] =
 					0xA0 | strtol(cursor, (char **)NULL, 10);
 				if (errno != 0) {
-					printf(  "Invalid Event Data#0.");
+					lprintf(LOG_ERR, "Invalid Event Data#0.");
 					status = (-1);
 					break;
 				}	
@@ -2566,7 +2566,7 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 				evt.sel_type.standard_type.event_data[1] |=
 					(strtol(cursor, (char **)NULL, 16)) << 4;
 				if (errno != 0) {
-					printf(  "Invalid Event Data#1.");
+					lprintf(LOG_ERR, "Invalid Event Data#1.");
 					status = (-1);
 					break;
 				}	
@@ -2575,7 +2575,7 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 				evt.sel_type.standard_type.event_data[0] =
 					strtol((const char *)cursor, (char **)NULL, 16);
 				if (errno != 0) {
-					printf(  "Invalid Event Data#0.");
+					lprintf(LOG_ERR, "Invalid Event Data#0.");
 					status = (-1);
 					break;
 				}	
@@ -2586,7 +2586,7 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 				evt.sel_type.standard_type.event_data[1] =
 					strtol((const char *)cursor, (char **)NULL, 16);
 				if (errno != 0) {
-					printf(  "Invalid Event Data#1.");
+					lprintf(LOG_ERR, "Invalid Event Data#1.");
 					status = (-1);
 					break;
 				}	
@@ -2598,12 +2598,12 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 				evt.sel_type.standard_type.event_data[2] =
 					strtol((const char *)cursor, (char **)NULL, 16);
 				if (errno != 0) {
-					printf(  "Invalid Event Data#2.");
+					lprintf(LOG_ERR, "Invalid Event Data#2.");
 					status = (-1);
 					break;
 				}	
 			} else {
-				printf(  "ipmitool: can't guess format.");
+				lprintf(LOG_ERR, "ipmitool: can't guess format.");
 			}
 			/* parse the PPS line into a sel_event_record */
 			if (verbose) {
@@ -2618,7 +2618,7 @@ ipmi_sel_interpret(struct ipmi_intf *intf, unsigned long iana,
 		buffer = NULL;
 		fclose(fp);
 	} else {
-		printf(  "Given format '%s' is unknown.", format);
+		lprintf(LOG_ERR, "Given format '%s' is unknown.", format);
 		status = (-1);
 	}
 	return status;
@@ -2656,7 +2656,7 @@ ipmi_sel_readraw(struct ipmi_intf * intf, const char * inputfile)
 			{
 				if (bytesRead != 0)
 				{
-					printf(  "ipmitool: incomplete record found in file.");
+					lprintf(LOG_ERR, "ipmitool: incomplete record found in file.");
 					ret = -1;
 				}
 				
@@ -2668,7 +2668,7 @@ ipmi_sel_readraw(struct ipmi_intf * intf, const char * inputfile)
 	}
 	else
 	{
-		printf(  "ipmitool: could not open input file.");
+		lprintf(LOG_ERR, "ipmitool: could not open input file.");
 		ret = -1;
 	}
 	return ret;
@@ -2688,7 +2688,7 @@ ipmi_sel_reserve(struct ipmi_intf * intf)
 
 	rsp = intf->sendrecv(intf, &req);
 	if (rsp == NULL) {
-		printf(  "Unable to reserve SEL");
+		lprintf(LOG_WARN, "Unable to reserve SEL");
 		return 0;
 	}
 	if (rsp->ccode > 0) {
@@ -2724,16 +2724,16 @@ ipmi_sel_get_time(struct ipmi_intf * intf)
 	rsp = intf->sendrecv(intf, &req);
 
 	if (rsp == NULL) {
-		printf(  "Get SEL Time command failed");
+		lprintf(LOG_ERR, "Get SEL Time command failed");
 		return -1;
 	}
 	if (rsp->ccode > 0) {
-		printf(  "Get SEL Time command failed: %s",
+		lprintf(LOG_ERR, "Get SEL Time command failed: %s",
 			val2str(rsp->ccode, completion_code_vals));
 		return -1;
 	}
 	if (rsp->data_len != 4) {
-		printf(  "Get SEL Time command failed: "
+		lprintf(LOG_ERR, "Get SEL Time command failed: "
 			"Invalid data length %d", rsp->data_len);
 		return -1;
 	}
@@ -2780,13 +2780,13 @@ ipmi_sel_set_time(struct ipmi_intf * intf, const char * time_string)
 	else {
 		/* Now how do we get our time_t from our ascii version? */
 		if (strptime(time_string, time_format, &tm) == 0) {
-			printf(  "Specified time could not be parsed");
+			lprintf(LOG_ERR, "Specified time could not be parsed");
 			return -1;
 		}
 		tm.tm_isdst = (-1); /* look up DST information */
 		t = mktime(&tm);
 		if (t < 0) {
-			printf(  "Specified time could not be parsed");
+			lprintf(LOG_ERR, "Specified time could not be parsed");
 			return -1;
 		}
 	}
@@ -2826,11 +2826,11 @@ ipmi_sel_set_time(struct ipmi_intf * intf, const char * time_string)
 
 	rsp = intf->sendrecv(intf, &req);
 	if (rsp == NULL) {
-		printf(  "Set SEL Time command failed");
+		lprintf(LOG_ERR, "Set SEL Time command failed");
 		return -1;
 	}
 	if (rsp->ccode > 0) {
-		printf(  "Set SEL Time command failed: %s",
+		lprintf(LOG_ERR, "Set SEL Time command failed: %s",
 			val2str(rsp->ccode, completion_code_vals));
 		return -1;
 	}
@@ -2870,11 +2870,11 @@ ipmi_sel_clear(struct ipmi_intf * intf)
 
 	rsp = intf->sendrecv(intf, &req);
 	if (rsp == NULL) {
-		printf(  "Unable to clear SEL");
+		lprintf(LOG_ERR, "Unable to clear SEL");
 		return -1;
 	}
 	if (rsp->ccode > 0) {
-		printf(  "Unable to clear SEL: %s",
+		lprintf(LOG_ERR, "Unable to clear SEL: %s",
 			val2str(rsp->ccode, completion_code_vals));
 		return -1;
 	}
@@ -2893,7 +2893,7 @@ ipmi_sel_delete(struct ipmi_intf * intf, int argc, char ** argv)
 	int rc = 0;
 
 	if (argc == 0 || strncmp(argv[0], "help", 4) == 0) {
-		printf(  "usage: delete <id>...<id>\n");
+		lprintf(LOG_ERR, "usage: delete <id>...<id>\n");
 		return -1;
 	}
 
@@ -2908,7 +2908,7 @@ ipmi_sel_delete(struct ipmi_intf * intf, int argc, char ** argv)
 	for (; argc != 0; argc--)
 	{
 		if (str2ushort(argv[argc-1], &id) != 0) {
-			printf(  "Given SEL ID '%s' is invalid.",
+			lprintf(LOG_ERR, "Given SEL ID '%s' is invalid.",
 					argv[argc-1]);
 			rc = (-1);
 			continue;
@@ -2924,11 +2924,11 @@ ipmi_sel_delete(struct ipmi_intf * intf, int argc, char ** argv)
 
 		rsp = intf->sendrecv(intf, &req);
 		if (rsp == NULL) {
-			printf(  "Unable to delete entry %d", id);
+			lprintf(LOG_ERR, "Unable to delete entry %d", id);
 			rc = -1;
 		}
 		else if (rsp->ccode > 0) {
-			printf(  "Unable to delete entry %d: %s", id,
+			lprintf(LOG_ERR, "Unable to delete entry %d: %s", id,
 				val2str(rsp->ccode, completion_code_vals));
 			rc = -1;
 		}
@@ -2954,35 +2954,35 @@ ipmi_sel_show_entry(struct ipmi_intf * intf, int argc, char ** argv)
 	uint16_t id;
 
 	if (argc == 0 || strncmp(argv[0], "help", 4) == 0) {
-		printf(  "usage: sel get <id>...<id>");
+		lprintf(LOG_ERR, "usage: sel get <id>...<id>");
 		return (-1);
 	}
 
 	if (ipmi_sel_reserve(intf) == 0) {
-		printf(  "Unable to reserve SEL");
+		lprintf(LOG_ERR, "Unable to reserve SEL");
 		return (-1);
 	}
 
 	for (i = 0; i < argc; i++) {
 		if (str2ushort(argv[i], &id) != 0) {
-			printf(  "Given SEL ID '%s' is invalid.",
+			lprintf(LOG_ERR, "Given SEL ID '%s' is invalid.",
 					argv[i]);
 			rc = (-1);
 			continue;
 		}
 
-		printf(  "Looking up SEL entry 0x%x", id);
+		lprintf(LOG_DEBUG, "Looking up SEL entry 0x%x", id);
 
 		/* lookup SEL entry based on ID */
 		if (!ipmi_sel_get_std_entry(intf, id, &evt)) {
-			printf(  "SEL Entry 0x%x not found.", id);
+			lprintf(LOG_DEBUG, "SEL Entry 0x%x not found.", id);
 			rc = (-1);
 			continue;
 		}
 		if (evt.sel_type.standard_type.sensor_num == 0
 				&& evt.sel_type.standard_type.sensor_type == 0
 				&& evt.record_type == 0) {
-			printf(  "SEL Entry 0x%x not found", id);
+			lprintf(LOG_WARN, "SEL Entry 0x%x not found", id);
 			rc = (-1);
 			continue;
 		}
@@ -3043,16 +3043,16 @@ int ipmi_sel_main(struct ipmi_intf * intf, int argc, char ** argv)
 	if (argc == 0)
 		rc = ipmi_sel_get_info(intf);
 	else if (strncmp(argv[0], "help", 4) == 0)
-		printf(  "SEL Commands:  "
+		lprintf(LOG_ERR, "SEL Commands:  "
 				"info clear delete list elist get add time save readraw writeraw interpret");
 	else if (strncmp(argv[0], "interpret", 9) == 0) {
 		uint32_t iana = 0;
 		if (argc < 4) {
-			printf(  "usage: sel interpret iana filename format(pps)");
+			lprintf(LOG_NOTICE, "usage: sel interpret iana filename format(pps)");
 			return 0;
 		}
 		if (str2uint(argv[1], &iana) != 0) {
-			printf(  "Given IANA '%s' is invalid.",
+			lprintf(LOG_ERR, "Given IANA '%s' is invalid.",
 					argv[1]);
 			return (-1);
 		}
@@ -3062,35 +3062,35 @@ int ipmi_sel_main(struct ipmi_intf * intf, int argc, char ** argv)
 		rc = ipmi_sel_get_info(intf);
 	else if (strncmp(argv[0], "save", 4) == 0) {
 		if (argc < 2) {
-			printf(  "usage: sel save <filename>");
+			lprintf(LOG_NOTICE, "usage: sel save <filename>");
 			return 0;
 		}
 		rc = ipmi_sel_save_entries(intf, 0, argv[1]);
 	}
 	else if (strncmp(argv[0], "add", 3) == 0) {
 		if (argc < 2) {
-			printf(  "usage: sel add <filename>");
+			lprintf(LOG_NOTICE, "usage: sel add <filename>");
 			return 0;
 		}
 		rc = ipmi_sel_add_entries_fromfile(intf, argv[1]);
 	}
 	else if (strncmp(argv[0], "writeraw", 8) == 0) {
 		if (argc < 2) {
-			printf(  "usage: sel writeraw <filename>");
+			lprintf(LOG_NOTICE, "usage: sel writeraw <filename>");
 			return 0;
 		}
 		rc = ipmi_sel_writeraw(intf, argv[1]);
 	}
 	else if (strncmp(argv[0], "readraw", 7) == 0) {
 		if (argc < 2) {
-			printf(  "usage: sel readraw <filename>");
+			lprintf(LOG_NOTICE, "usage: sel readraw <filename>");
 			return 0;
 		}
 		rc = ipmi_sel_readraw(intf, argv[1]);
 	}
 	else if (strncmp(argv[0], "ereadraw", 8) == 0) {
 		if (argc < 2) {
-			printf(  "usage: sel ereadraw <filename>");
+			lprintf(LOG_NOTICE, "usage: sel ereadraw <filename>");
 			return 0;
 		}
 		sel_extended = 1;
@@ -3123,14 +3123,14 @@ int ipmi_sel_main(struct ipmi_intf * intf, int argc, char ** argv)
 				sign = -1;
 			}
 			else if (strncmp(argv[1], "first", 5) != 0) {
-				printf(  "Unknown sel list option");
+				lprintf(LOG_ERR, "Unknown sel list option");
 				return -1;
 			}
 		}
 
 		if (countstr) {
 			if (str2int(countstr, &count) != 0) {
-				printf(  "Numeric argument required; got '%s'",
+				lprintf(LOG_ERR, "Numeric argument required; got '%s'",
 					countstr);
 				return -1;
 			}
@@ -3143,32 +3143,32 @@ int ipmi_sel_main(struct ipmi_intf * intf, int argc, char ** argv)
 		rc = ipmi_sel_clear(intf);
 	else if (strncmp(argv[0], "delete", 6) == 0) {
 		if (argc < 2)
-			printf(  "usage: sel delete <id>...<id>");
+			lprintf(LOG_ERR, "usage: sel delete <id>...<id>");
 		else
 			rc = ipmi_sel_delete(intf, argc-1, &argv[1]);
 	}
 	else if (strncmp(argv[0], "get", 3) == 0) {
 		if (argc < 2)
-			printf(  "usage: sel get <entry>");
+			lprintf(LOG_ERR, "usage: sel get <entry>");
 		else
 			rc = ipmi_sel_show_entry(intf, argc-1, &argv[1]);
 	}
 	else if (strncmp(argv[0], "time", 4) == 0) {
 		if (argc < 2)
-			printf(  "sel time commands: get set");
+			lprintf(LOG_ERR, "sel time commands: get set");
 		else if (strncmp(argv[1], "get", 3) == 0)
 			ipmi_sel_get_time(intf);
 		else if (strncmp(argv[1], "set", 3) == 0) {
 			if (argc < 3)
-				printf(  "usage: sel time set \"mm/dd/yyyy hh:mm:ss\"");
+				lprintf(LOG_ERR, "usage: sel time set \"mm/dd/yyyy hh:mm:ss\"");
 			else
 				rc = ipmi_sel_set_time(intf, argv[2]);
 		} else {
-			printf(  "sel time commands: get set");
+			lprintf(LOG_ERR, "sel time commands: get set");
 		}
 	}
 	else {
-		printf(  "Invalid SEL command: %s", argv[0]);
+		lprintf(LOG_ERR, "Invalid SEL command: %s", argv[0]);
 		rc = -1;
 	}
 

+ 54 - 54
app/ipmitool-1.8.18/lib/ipmi_sensor.c

@@ -81,7 +81,7 @@ ipmi_sensor_get_sensor_reading_factors(
 	rsp = intf->sendrecv(intf, &req);
 
 	if (rsp == NULL) {
-		printf(  "Error updating reading factor for sensor %s (#%02x)",
+		lprintf(LOG_ERR, "Error updating reading factor for sensor %s (#%02x)",
 			id, sensor->cmn.keys.sensor_num);
 		return -1;
 	} else if (rsp->ccode) {
@@ -421,11 +421,11 @@ ipmi_sensor_list(struct ipmi_intf *intf)
 	struct ipmi_sdr_iterator *itr;
 	int rc = 0;
 
-	printf(  "Querying SDR for sensor list");
+	lprintf(LOG_DEBUG, "Querying SDR for sensor list");
 
 	itr = ipmi_sdr_start(intf, 0);
 	if (itr == NULL) {
-		printf(  "Unable to open SDR for reading");
+		lprintf(LOG_ERR, "Unable to open SDR for reading");
 		return -1;
 	}
 
@@ -434,7 +434,7 @@ ipmi_sensor_list(struct ipmi_intf *intf)
 
 		rec = ipmi_sdr_get_record(intf, header, itr);
 		if (rec == NULL) {
-			printf(  "rec == NULL");
+			lprintf(LOG_DEBUG, "rec == NULL");
 			continue;
 		}
 
@@ -482,11 +482,11 @@ __ipmi_sensor_set_threshold(struct ipmi_intf *intf,
 				  target, lun, channel);
 
 	if (rsp == NULL) {
-		printf(  "Error setting threshold");
+		lprintf(LOG_ERR, "Error setting threshold");
 		return -1;
 	}
 	if (rsp->ccode > 0) {
-		printf(  "Error setting threshold: %s",
+		lprintf(LOG_ERR, "Error setting threshold: %s",
 			val2str(rsp->ccode, completion_code_vals));
 		return -1;
 	}
@@ -539,45 +539,45 @@ ipmi_sensor_set_threshold(struct ipmi_intf *intf, int argc, char **argv)
 
 	if (strncmp(thresh, "upper", 5) == 0) {
 		if (argc < 5) {
-			printf( 
+			lprintf(LOG_ERR,
 				"usage: sensor thresh <id> upper <unc> <ucr> <unr>");
 			return -1;
 		}
 		allUpper = 1;
 		if (str2double(argv[2], &setting1) != 0) {
-			printf(  "Given unc '%s' is invalid.",
+			lprintf(LOG_ERR, "Given unc '%s' is invalid.",
 					argv[2]);
 			return (-1);
 		}
 		if (str2double(argv[3], &setting2) != 0) {
-			printf(  "Given ucr '%s' is invalid.",
+			lprintf(LOG_ERR, "Given ucr '%s' is invalid.",
 					argv[3]);
 			return (-1);
 		}
 		if (str2double(argv[4], &setting3) != 0) {
-			printf(  "Given unr '%s' is invalid.",
+			lprintf(LOG_ERR, "Given unr '%s' is invalid.",
 					argv[4]);
 			return (-1);
 		}
 	} else if (strncmp(thresh, "lower", 5) == 0) {
 		if (argc < 5) {
-			printf( 
+			lprintf(LOG_ERR,
 				"usage: sensor thresh <id> lower <lnr> <lcr> <lnc>");
 			return -1;
 		}
 		allLower = 1;
 		if (str2double(argv[2], &setting1) != 0) {
-			printf(  "Given lnc '%s' is invalid.",
+			lprintf(LOG_ERR, "Given lnc '%s' is invalid.",
 					argv[2]);
 			return (-1);
 		}
 		if (str2double(argv[3], &setting2) != 0) {
-			printf(  "Given lcr '%s' is invalid.",
+			lprintf(LOG_ERR, "Given lcr '%s' is invalid.",
 					argv[3]);
 			return (-1);
 		}
 		if (str2double(argv[4], &setting3) != 0) {
-			printf(  "Given lnr '%s' is invalid.",
+			lprintf(LOG_ERR, "Given lnr '%s' is invalid.",
 					argv[4]);
 			return (-1);
 		}
@@ -595,13 +595,13 @@ ipmi_sensor_set_threshold(struct ipmi_intf *intf, int argc, char **argv)
 		else if (strncmp(thresh, "lnr", 3) == 0)
 			settingMask = LOWER_NON_RECOV_SPECIFIED;
 		else {
-			printf( 
+			lprintf(LOG_ERR,
 				"Valid threshold '%s' for sensor '%s' not specified!",
 				thresh, id);
 			return -1;
 		}
 		if (str2double(argv[2], &setting1) != 0) {
-			printf( 
+			lprintf(LOG_ERR,
 					"Given %s threshold value '%s' is invalid.",
 					thresh, argv[2]);
 			return (-1);
@@ -613,17 +613,17 @@ ipmi_sensor_set_threshold(struct ipmi_intf *intf, int argc, char **argv)
 	/* lookup by sensor name */
 	sdr = ipmi_sdr_find_sdr_byid(intf, id);
 	if (sdr == NULL) {
-		printf(  "Sensor data record not found!");
+		lprintf(LOG_ERR, "Sensor data record not found!");
 		return -1;
 	}
 
 	if (sdr->type != SDR_RECORD_TYPE_FULL_SENSOR) {
-		printf(  "Invalid sensor type %02x", sdr->type);
+		lprintf(LOG_ERR, "Invalid sensor type %02x", sdr->type);
 		return -1;
 	}
 
 	if (!IS_THRESHOLD_SENSOR(sdr->record.common)) {
-		printf(  "Invalid sensor event type %02x", sdr->record.common->event_type);
+		lprintf(LOG_ERR, "Invalid sensor event type %02x", sdr->record.common->event_type);
 		return -1;
 	}
 
@@ -722,7 +722,7 @@ ipmi_sensor_set_threshold(struct ipmi_intf *intf, int argc, char **argv)
 						sdr->record.common->keys.lun,
 						sdr->record.common->keys.channel);
 		if ((rsp == NULL) || (rsp->ccode > 0)) {
-			printf(  "Sensor data record not found!");
+			lprintf(LOG_ERR, "Sensor data record not found!");
 				return -1;
 		}
 		for(i=1;i<=6;i++) {
@@ -737,7 +737,7 @@ ipmi_sensor_set_threshold(struct ipmi_intf *intf, int argc, char **argv)
 				(( (rsp->data[0] & UPPER_CRIT_SPECIFIED) && ( setting1 <= val[5])) ||
 					( (rsp->data[0] & UPPER_NON_CRIT_SPECIFIED) && ( setting1 <= val[4]))) )
 			{
-				printf(  INVALID_THRESHOLD);
+				lprintf(LOG_ERR, INVALID_THRESHOLD);
 				return -1;
 			}
 		} else if( (settingMask & UPPER_CRIT_SPECIFIED) ) { 		/* Check for the valid Upper critical Value.*/
@@ -745,7 +745,7 @@ ipmi_sensor_set_threshold(struct ipmi_intf *intf, int argc, char **argv)
 				(((rsp->data[0] & UPPER_NON_RECOV_SPECIFIED)&& ( setting1 >= val[6])) ||
 				((rsp->data[0] & UPPER_NON_CRIT_SPECIFIED)&&( setting1 <= val[4]))) )
 			{
-				printf(  INVALID_THRESHOLD);
+				lprintf(LOG_ERR, INVALID_THRESHOLD);
 				return -1;
 			}
 		} else if( (settingMask & UPPER_NON_CRIT_SPECIFIED) ) {  		/* Check for the valid Upper non critical Value.*/
@@ -754,7 +754,7 @@ ipmi_sensor_set_threshold(struct ipmi_intf *intf, int argc, char **argv)
 				((rsp->data[0] & UPPER_CRIT_SPECIFIED)&&( setting1 >= val[5])) ||
 				((rsp->data[0] & LOWER_NON_CRIT_SPECIFIED)&&( setting1 <= val[1]))) )
 			{
-				printf(  INVALID_THRESHOLD);
+				lprintf(LOG_ERR, INVALID_THRESHOLD);
 				return -1;
 			}
 		} else if( (settingMask & LOWER_NON_CRIT_SPECIFIED) ) {		/* Check for the valid lower non critical Value.*/
@@ -763,7 +763,7 @@ ipmi_sensor_set_threshold(struct ipmi_intf *intf, int argc, char **argv)
 				((rsp->data[0] & LOWER_NON_RECOV_SPECIFIED)&&( setting1 <= val[3]))||
 				((rsp->data[0] & UPPER_NON_CRIT_SPECIFIED)&&( setting1 >= val[4]))) )
 			{
-				printf(  INVALID_THRESHOLD);
+				lprintf(LOG_ERR, INVALID_THRESHOLD);
 				return -1;
 			}
 		} else if( (settingMask & LOWER_CRIT_SPECIFIED) ) {		/* Check for the valid lower critical Value.*/
@@ -771,7 +771,7 @@ ipmi_sensor_set_threshold(struct ipmi_intf *intf, int argc, char **argv)
 				(((rsp->data[0] & LOWER_NON_CRIT_SPECIFIED)&&( setting1 >= val[1])) ||
 				((rsp->data[0] & LOWER_NON_RECOV_SPECIFIED)&&( setting1 <= val[3]))) )
 			{
-				printf(  INVALID_THRESHOLD);
+				lprintf(LOG_ERR, INVALID_THRESHOLD);
 				return -1;
 			}
 		} else if( (settingMask & LOWER_NON_RECOV_SPECIFIED) ) {		/* Check for the valid lower non recovarable Value.*/
@@ -779,11 +779,11 @@ ipmi_sensor_set_threshold(struct ipmi_intf *intf, int argc, char **argv)
 				(((rsp->data[0] & LOWER_NON_CRIT_SPECIFIED)&&( setting1 >= val[1])) ||
 				((rsp->data[0] & LOWER_CRIT_SPECIFIED)&&( setting1 >= val[2]))) )
 			{
-				printf(  INVALID_THRESHOLD);
+				lprintf(LOG_ERR, INVALID_THRESHOLD);
 				return -1;
 			}
 		} else {			/* None of this Then Return with error messages.*/
-			printf(  INVALID_THRESHOLD);
+			lprintf(LOG_ERR, INVALID_THRESHOLD);
 			return -1;
 		}
 
@@ -811,15 +811,15 @@ ipmi_sensor_get_reading(struct ipmi_intf *intf, int argc, char **argv)
 	int i, rc=0;
 
 	if (argc < 1 || strncmp(argv[0], "help", 4) == 0) {
-		printf(  "sensor reading <id> ... [id]");
-		printf(  "   id        : name of desired sensor");
+		lprintf(LOG_NOTICE, "sensor reading <id> ... [id]");
+		lprintf(LOG_NOTICE, "   id        : name of desired sensor");
 		return -1;
 	}
 
 	for (i = 0; i < argc; i++) {
 		sdr = ipmi_sdr_find_sdr_byid(intf, argv[i]);
 		if (sdr == NULL) {
-			printf(  "Sensor \"%s\" not found!",
+			lprintf(LOG_ERR, "Sensor \"%s\" not found!",
 				argv[i]);
 			rc = -1;
 			continue;
@@ -845,7 +845,7 @@ ipmi_sensor_get_reading(struct ipmi_intf *intf, int argc, char **argv)
 				continue;
 
 			if (!sr->s_has_analog_value) {
-				printf(  "Sensor \"%s\" is a discrete sensor!", argv[i]);
+				lprintf(LOG_ERR, "Sensor \"%s\" is a discrete sensor!", argv[i]);
 				continue;
 			}
 			if (csv_output)
@@ -871,7 +871,7 @@ ipmi_sensor_get(struct ipmi_intf *intf, int argc, char **argv)
 	struct sdr_record_list *sdr;
 
 	if (argc < 1) {
-		printf(  "Not enough parameters given.");
+		lprintf(LOG_ERR, "Not enough parameters given.");
 		print_sensor_get_usage();
 		return (-1);
 	} else if (strcmp(argv[0], "help") == 0) {
@@ -883,7 +883,7 @@ ipmi_sensor_get(struct ipmi_intf *intf, int argc, char **argv)
 	for (i = 0; i < argc; i++) {
 		sdr = ipmi_sdr_find_sdr_byid(intf, argv[i]);
 		if (sdr == NULL) {
-			printf(  "Sensor data record \"%s\" not found!",
+			lprintf(LOG_ERR, "Sensor data record \"%s\" not found!",
 					argv[i]);
 			rc = -1;
 			continue;
@@ -920,7 +920,7 @@ ipmi_sensor_main(struct ipmi_intf *intf, int argc, char **argv)
 	if (argc == 0) {
 		rc = ipmi_sensor_list(intf);
 	} else if (strncmp(argv[0], "help", 4) == 0) {
-		printf(  "Sensor Commands:  list thresh get reading");
+		lprintf(LOG_NOTICE, "Sensor Commands:  list thresh get reading");
 	} else if (strncmp(argv[0], "list", 4) == 0) {
 		rc = ipmi_sensor_list(intf);
 	} else if (strncmp(argv[0], "thresh", 5) == 0) {
@@ -930,7 +930,7 @@ ipmi_sensor_main(struct ipmi_intf *intf, int argc, char **argv)
 	} else if (strncmp(argv[0], "reading", 7) == 0) {
 		rc = ipmi_sensor_get_reading(intf, argc - 1, &argv[1]);
 	} else {
-		printf(  "Invalid sensor command: %s", argv[0]);
+		lprintf(LOG_ERR, "Invalid sensor command: %s", argv[0]);
 		rc = -1;
 	}
 
@@ -944,8 +944,8 @@ ipmi_sensor_main(struct ipmi_intf *intf, int argc, char **argv)
 void
 print_sensor_get_usage()
 {
-	printf(  "sensor get <id> ... [id]");
-	printf(  "   id        : name of desired sensor");
+	lprintf(LOG_NOTICE, "sensor get <id> ... [id]");
+	lprintf(LOG_NOTICE, "   id        : name of desired sensor");
 }
 
 /* print_sensor_thresh_set_usage - print usage for # ipmitool sensor thresh;
@@ -955,37 +955,37 @@ print_sensor_get_usage()
 void
 print_sensor_thresh_usage()
 {
-	printf( 
+	lprintf(LOG_NOTICE,
 "sensor thresh <id> <threshold> <setting>");
-	printf( 
+	lprintf(LOG_NOTICE,
 "   id        : name of the sensor for which threshold is to be set");
-	printf( 
+	lprintf(LOG_NOTICE,
 "   threshold : which threshold to set");
-	printf( 
+	lprintf(LOG_NOTICE,
 "                 unr = upper non-recoverable");
-	printf( 
+	lprintf(LOG_NOTICE,
 "                 ucr = upper critical");
-	printf( 
+	lprintf(LOG_NOTICE,
 "                 unc = upper non-critical");
-	printf( 
+	lprintf(LOG_NOTICE,
 "                 lnc = lower non-critical");
-	printf( 
+	lprintf(LOG_NOTICE,
 "                 lcr = lower critical");
-	printf( 
+	lprintf(LOG_NOTICE,
 "                 lnr = lower non-recoverable");
-	printf( 
+	lprintf(LOG_NOTICE,
 "   setting   : the value to set the threshold to");
-	printf( 
+	lprintf(LOG_NOTICE,
 "");
-	printf( 
+	lprintf(LOG_NOTICE,
 "sensor thresh <id> lower <lnr> <lcr> <lnc>");
-	printf( 
+	lprintf(LOG_NOTICE,
 "   Set all lower thresholds at the same time");
-	printf( 
+	lprintf(LOG_NOTICE,
 "");
-	printf( 
+	lprintf(LOG_NOTICE,
 "sensor thresh <id> upper <unc> <ucr> <unr>");
-	printf( 
+	lprintf(LOG_NOTICE,
 "   Set all upper thresholds at the same time");
-	printf(  "");
+	lprintf(LOG_NOTICE, "");
 }

+ 13 - 7
app/ipmitool-1.8.18/lib/ipmi_vita.c

@@ -175,6 +175,8 @@ vita_discover(struct ipmi_intf *intf)
 	unsigned char msg_data;
 	int vita_avail = 0;
 
+	printf("---> vita_discover\n");
+
 	memset(&req, 0, sizeof(req));
 
 	req.msg.netfn = IPMI_NETFN_PICMG;
@@ -229,6 +231,7 @@ ipmi_vita_ipmb_address(struct ipmi_intf *intf)
 	struct ipmi_rs *rsp;
 	unsigned char msg_data;
 
+	printf("---> ipmi_vita_ipmb_address\n");
 	memset(&req, 0, sizeof(req));
 
 	req.msg.netfn = IPMI_NETFN_PICMG;
@@ -265,6 +268,7 @@ ipmi_vita_getaddr(struct ipmi_intf *intf, int argc, char **argv)
 	struct ipmi_rq req;
 	unsigned char msg_data[2];
 
+printf("---> ipmi_vita_getaddr\n");
 	memset(&req, 0, sizeof(req));
 
 	req.msg.netfn = IPMI_NETFN_PICMG;
@@ -321,6 +325,7 @@ ipmi_vita_get_vso_capabilities(struct ipmi_intf *intf)
 	struct ipmi_rq req;
 	unsigned char msg_data, tmp;
 
+printf("---> ipmi_vita_get_vso_capabilities\n");
 	memset(&req, 0, sizeof(req));
 
 	req.msg.netfn = IPMI_NETFN_PICMG;
@@ -387,6 +392,7 @@ ipmi_vita_set_fru_activation(struct ipmi_intf *intf,
 	struct ipmi_rq req;
 	unsigned char msg_data[3];
 
+printf("---> ipmi_vita_set_fru_activation\n");
 	memset(&req, 0, sizeof(req));
 
 	req.msg.netfn = IPMI_NETFN_PICMG;
@@ -429,7 +435,7 @@ ipmi_vita_get_fru_state_policy_bits(struct ipmi_intf *intf, char **argv)
 	struct ipmi_rs *rsp;
 	struct ipmi_rq req;
 	unsigned char msg_data[2];
-
+printf("---> ipmi_vita_get_fru_state_policy_bits\n");
 	memset(&req, 0, sizeof(req));
 
 	req.msg.netfn = IPMI_NETFN_PICMG;
@@ -478,7 +484,7 @@ ipmi_vita_set_fru_state_policy_bits(struct ipmi_intf *intf, char **argv)
 	struct ipmi_rs *rsp;
 	struct ipmi_rq req;
 	unsigned char msg_data[4];
-
+printf("---> ipmi_vita_set_fru_state_policy_bits\n");
 	memset(&req, 0, sizeof(req));
 
 	req.msg.netfn = IPMI_NETFN_PICMG;
@@ -525,7 +531,7 @@ ipmi_vita_get_led_properties(struct ipmi_intf *intf, char **argv)
 	struct ipmi_rs *rsp;
 	struct ipmi_rq req;
 	unsigned char msg_data[2];
-
+printf("---> ipmi_vita_get_led_properties\n");
 	memset(&req, 0, sizeof(req));
 
 	req.msg.netfn = IPMI_NETFN_PICMG;
@@ -567,7 +573,7 @@ ipmi_vita_get_led_color_capabilities(struct ipmi_intf *intf, char **argv)
 	struct ipmi_rq req;
 	unsigned char msg_data[3];
 	int i;
-
+printf("---> ipmi_vita_get_led_color_capabilities\n");
 	memset(&req, 0, sizeof(req));
 
 	req.msg.netfn = IPMI_NETFN_PICMG;
@@ -631,7 +637,7 @@ ipmi_vita_get_led_state(struct ipmi_intf *intf, char **argv)
 	struct ipmi_rs *rsp;
 	struct ipmi_rq req;
 	unsigned char msg_data[3];
-
+printf("---> ipmi_vita_get_led_state\n");
 	memset(&req, 0, sizeof(req));
 
 	req.msg.netfn = IPMI_NETFN_PICMG;
@@ -722,7 +728,7 @@ ipmi_vita_set_led_state(struct ipmi_intf *intf, char **argv)
 	struct ipmi_rs *rsp;
 	struct ipmi_rq req;
 	unsigned char msg_data[6];
-
+printf("---> ipmi_vita_set_led_state\n");
 	memset(&req, 0, sizeof(req));
 
 	req.msg.netfn = IPMI_NETFN_PICMG;
@@ -775,7 +781,7 @@ ipmi_vita_fru_control(struct ipmi_intf *intf, char **argv)
 	struct ipmi_rs *rsp;
 	struct ipmi_rq req;
 	unsigned char msg_data[3];
-
+printf("---> ipmi_vita_fru_control\n");
 	memset(&req, 0, sizeof(req));
 
 	req.msg.netfn = IPMI_NETFN_PICMG;

+ 0 - 43
app/ipmitool-1.8.18/src/Makefile.am

@@ -1,43 +0,0 @@
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-AM_CPPFLAGS		= -I$(top_srcdir)/include
-SUBDIRS			= plugins
-
-MAINTAINERCLEANFILES	= Makefile.in
-
-ipmitool_SOURCES	= ipmitool.c ipmishell.c
-ipmitool_LDADD		= $(top_builddir)/lib/libipmitool.la plugins/libintf.la
-
-ipmievd_SOURCES		= ipmievd.c
-ipmievd_LDADD		= $(top_builddir)/lib/libipmitool.la plugins/libintf.la
-
-bin_PROGRAMS		= ipmitool
-sbin_PROGRAMS		= ipmievd

+ 0 - 860
app/ipmitool-1.8.18/src/Makefile.in

@@ -1,860 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-bin_PROGRAMS = ipmitool$(EXEEXT)
-sbin_PROGRAMS = ipmievd$(EXEEXT)
-subdir = src
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
-	$(top_srcdir)/depcomp
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)"
-PROGRAMS = $(bin_PROGRAMS) $(sbin_PROGRAMS)
-am_ipmievd_OBJECTS = ipmievd.$(OBJEXT)
-ipmievd_OBJECTS = $(am_ipmievd_OBJECTS)
-ipmievd_DEPENDENCIES = $(top_builddir)/lib/libipmitool.la \
-	plugins/libintf.la
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 = 
-am_ipmitool_OBJECTS = ipmitool.$(OBJEXT) ipmishell.$(OBJEXT)
-ipmitool_OBJECTS = $(am_ipmitool_OBJECTS)
-ipmitool_DEPENDENCIES = $(top_builddir)/lib/libipmitool.la \
-	plugins/libintf.la
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
-	$(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo "  CC      " $@;
-am__v_CC_1 = 
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo "  CCLD    " $@;
-am__v_CCLD_1 = 
-SOURCES = $(ipmievd_SOURCES) $(ipmitool_SOURCES)
-DIST_SOURCES = $(ipmievd_SOURCES) $(ipmitool_SOURCES)
-RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
-	ctags-recursive dvi-recursive html-recursive info-recursive \
-	install-data-recursive install-dvi-recursive \
-	install-exec-recursive install-html-recursive \
-	install-info-recursive install-pdf-recursive \
-	install-ps-recursive install-recursive installcheck-recursive \
-	installdirs-recursive pdf-recursive ps-recursive \
-	tags-recursive uninstall-recursive
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
-  distclean-recursive maintainer-clean-recursive
-am__recursive_targets = \
-  $(RECURSIVE_TARGETS) \
-  $(RECURSIVE_CLEAN_TARGETS) \
-  $(am__extra_recursive_targets)
-AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
-	distdir
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates.  Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
-  BEGIN { nonempty = 0; } \
-  { items[$$0] = 1; nonempty = 1; } \
-  END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique.  This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
-  list='$(am__tagged_files)'; \
-  unique=`for i in $$list; do \
-    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-  done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DIST_SUBDIRS = $(SUBDIRS)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-am__relativize = \
-  dir0=`pwd`; \
-  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
-  sed_rest='s,^[^/]*/*,,'; \
-  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
-  sed_butlast='s,/*[^/]*$$,,'; \
-  while test -n "$$dir1"; do \
-    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
-    if test "$$first" != "."; then \
-      if test "$$first" = ".."; then \
-        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
-        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
-      else \
-        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
-        if test "$$first2" = "$$first"; then \
-          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
-        else \
-          dir2="../$$dir2"; \
-        fi; \
-        dir0="$$dir0"/"$$first"; \
-      fi; \
-    fi; \
-    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
-  done; \
-  reldir="$$dir2"
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-ARCH = @ARCH@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BASEDIR = @BASEDIR@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DISTRO = @DISTRO@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTF_BMC = @INTF_BMC@
-INTF_BMC_LIB = @INTF_BMC_LIB@
-INTF_DUMMY = @INTF_DUMMY@
-INTF_DUMMY_LIB = @INTF_DUMMY_LIB@
-INTF_FREE = @INTF_FREE@
-INTF_FREE_LIB = @INTF_FREE_LIB@
-INTF_IMB = @INTF_IMB@
-INTF_IMB_LIB = @INTF_IMB_LIB@
-INTF_LAN = @INTF_LAN@
-INTF_LANPLUS = @INTF_LANPLUS@
-INTF_LANPLUS_LIB = @INTF_LANPLUS_LIB@
-INTF_LAN_LIB = @INTF_LAN_LIB@
-INTF_LIPMI = @INTF_LIPMI@
-INTF_LIPMI_LIB = @INTF_LIPMI_LIB@
-INTF_OPEN = @INTF_OPEN@
-INTF_OPEN_LIB = @INTF_OPEN_LIB@
-INTF_SERIAL = @INTF_SERIAL@
-INTF_SERIAL_LIB = @INTF_SERIAL_LIB@
-INTF_USB = @INTF_USB@
-INTF_USB_LIB = @INTF_USB_LIB@
-IPMITOOL_INTF_LIB = @IPMITOOL_INTF_LIB@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS = @OS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-POW_LIB = @POW_LIB@
-PSTAMP = @PSTAMP@
-RANLIB = @RANLIB@
-RPMBUILD = @RPMBUILD@
-RPM_RELEASE = @RPM_RELEASE@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_configure_args = @ac_configure_args@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-AM_CPPFLAGS = -I$(top_srcdir)/include
-SUBDIRS = plugins
-MAINTAINERCLEANFILES = Makefile.in
-ipmitool_SOURCES = ipmitool.c ipmishell.c
-ipmitool_LDADD = $(top_builddir)/lib/libipmitool.la plugins/libintf.la
-ipmievd_SOURCES = ipmievd.c
-ipmievd_LDADD = $(top_builddir)/lib/libipmitool.la plugins/libintf.la
-all: all-recursive
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign src/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-install-binPROGRAMS: $(bin_PROGRAMS)
-	@$(NORMAL_INSTALL)
-	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
-	if test -n "$$list"; then \
-	  echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
-	  $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
-	fi; \
-	for p in $$list; do echo "$$p $$p"; done | \
-	sed 's/$(EXEEXT)$$//' | \
-	while read p p1; do if test -f $$p \
-	 || test -f $$p1 \
-	  ; then echo "$$p"; echo "$$p"; else :; fi; \
-	done | \
-	sed -e 'p;s,.*/,,;n;h' \
-	    -e 's|.*|.|' \
-	    -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
-	sed 'N;N;N;s,\n, ,g' | \
-	$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
-	  { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
-	    if ($$2 == $$4) files[d] = files[d] " " $$1; \
-	    else { print "f", $$3 "/" $$4, $$1; } } \
-	  END { for (d in files) print "f", d, files[d] }' | \
-	while read type dir files; do \
-	    if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
-	    test -z "$$files" || { \
-	    echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
-	    $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
-	    } \
-	; done
-
-uninstall-binPROGRAMS:
-	@$(NORMAL_UNINSTALL)
-	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
-	files=`for p in $$list; do echo "$$p"; done | \
-	  sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
-	      -e 's/$$/$(EXEEXT)/' \
-	`; \
-	test -n "$$list" || exit 0; \
-	echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
-	cd "$(DESTDIR)$(bindir)" && rm -f $$files
-
-clean-binPROGRAMS:
-	@list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
-	echo " rm -f" $$list; \
-	rm -f $$list || exit $$?; \
-	test -n "$(EXEEXT)" || exit 0; \
-	list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
-	echo " rm -f" $$list; \
-	rm -f $$list
-install-sbinPROGRAMS: $(sbin_PROGRAMS)
-	@$(NORMAL_INSTALL)
-	@list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
-	if test -n "$$list"; then \
-	  echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \
-	  $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \
-	fi; \
-	for p in $$list; do echo "$$p $$p"; done | \
-	sed 's/$(EXEEXT)$$//' | \
-	while read p p1; do if test -f $$p \
-	 || test -f $$p1 \
-	  ; then echo "$$p"; echo "$$p"; else :; fi; \
-	done | \
-	sed -e 'p;s,.*/,,;n;h' \
-	    -e 's|.*|.|' \
-	    -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
-	sed 'N;N;N;s,\n, ,g' | \
-	$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
-	  { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
-	    if ($$2 == $$4) files[d] = files[d] " " $$1; \
-	    else { print "f", $$3 "/" $$4, $$1; } } \
-	  END { for (d in files) print "f", d, files[d] }' | \
-	while read type dir files; do \
-	    if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
-	    test -z "$$files" || { \
-	    echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \
-	    $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \
-	    } \
-	; done
-
-uninstall-sbinPROGRAMS:
-	@$(NORMAL_UNINSTALL)
-	@list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
-	files=`for p in $$list; do echo "$$p"; done | \
-	  sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
-	      -e 's/$$/$(EXEEXT)/' \
-	`; \
-	test -n "$$list" || exit 0; \
-	echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \
-	cd "$(DESTDIR)$(sbindir)" && rm -f $$files
-
-clean-sbinPROGRAMS:
-	@list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \
-	echo " rm -f" $$list; \
-	rm -f $$list || exit $$?; \
-	test -n "$(EXEEXT)" || exit 0; \
-	list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
-	echo " rm -f" $$list; \
-	rm -f $$list
-
-ipmievd$(EXEEXT): $(ipmievd_OBJECTS) $(ipmievd_DEPENDENCIES) $(EXTRA_ipmievd_DEPENDENCIES) 
-	@rm -f ipmievd$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(ipmievd_OBJECTS) $(ipmievd_LDADD) $(LIBS)
-
-ipmitool$(EXEEXT): $(ipmitool_OBJECTS) $(ipmitool_DEPENDENCIES) $(EXTRA_ipmitool_DEPENDENCIES) 
-	@rm -f ipmitool$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(ipmitool_OBJECTS) $(ipmitool_LDADD) $(LIBS)
-
-mostlyclean-compile:
-	-rm -f *.$(OBJEXT)
-
-distclean-compile:
-	-rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmievd.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmishell.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmitool.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run 'make' without going through this Makefile.
-# To change the values of 'make' variables: instead of editing Makefiles,
-# (1) if the variable is set in 'config.status', edit 'config.status'
-#     (which will cause the Makefiles to be regenerated when you run 'make');
-# (2) otherwise, pass the desired values on the 'make' command line.
-$(am__recursive_targets):
-	@fail=; \
-	if $(am__make_keepgoing); then \
-	  failcom='fail=yes'; \
-	else \
-	  failcom='exit 1'; \
-	fi; \
-	dot_seen=no; \
-	target=`echo $@ | sed s/-recursive//`; \
-	case "$@" in \
-	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
-	  *) list='$(SUBDIRS)' ;; \
-	esac; \
-	for subdir in $$list; do \
-	  echo "Making $$target in $$subdir"; \
-	  if test "$$subdir" = "."; then \
-	    dot_seen=yes; \
-	    local_target="$$target-am"; \
-	  else \
-	    local_target="$$target"; \
-	  fi; \
-	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
-	  || eval $$failcom; \
-	done; \
-	if test "$$dot_seen" = "no"; then \
-	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
-	fi; test -z "$$fail"
-
-ID: $(am__tagged_files)
-	$(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-recursive
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	set x; \
-	here=`pwd`; \
-	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
-	  include_option=--etags-include; \
-	  empty_fix=.; \
-	else \
-	  include_option=--include; \
-	  empty_fix=; \
-	fi; \
-	list='$(SUBDIRS)'; for subdir in $$list; do \
-	  if test "$$subdir" = .; then :; else \
-	    test ! -f $$subdir/TAGS || \
-	      set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
-	  fi; \
-	done; \
-	$(am__define_uniq_tagged_files); \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: ctags-recursive
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	$(am__define_uniq_tagged_files); \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-recursive
-
-cscopelist-am: $(am__tagged_files)
-	list='$(am__tagged_files)'; \
-	case "$(srcdir)" in \
-	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
-	  *) sdir=$(subdir)/$(srcdir) ;; \
-	esac; \
-	for i in $$list; do \
-	  if test -f "$$i"; then \
-	    echo "$(subdir)/$$i"; \
-	  else \
-	    echo "$$sdir/$$i"; \
-	  fi; \
-	done >> $(top_builddir)/cscope.files
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-	@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
-	  if test "$$subdir" = .; then :; else \
-	    $(am__make_dryrun) \
-	      || test -d "$(distdir)/$$subdir" \
-	      || $(MKDIR_P) "$(distdir)/$$subdir" \
-	      || exit 1; \
-	    dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
-	    $(am__relativize); \
-	    new_distdir=$$reldir; \
-	    dir1=$$subdir; dir2="$(top_distdir)"; \
-	    $(am__relativize); \
-	    new_top_distdir=$$reldir; \
-	    echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
-	    echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
-	    ($(am__cd) $$subdir && \
-	      $(MAKE) $(AM_MAKEFLAGS) \
-	        top_distdir="$$new_top_distdir" \
-	        distdir="$$new_distdir" \
-		am__remove_distdir=: \
-		am__skip_length_check=: \
-		am__skip_mode_fix=: \
-	        distdir) \
-	      || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-recursive
-all-am: Makefile $(PROGRAMS)
-installdirs: installdirs-recursive
-installdirs-am:
-	for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)"; do \
-	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
-	done
-install: install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-recursive
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-recursive
-
-clean-am: clean-binPROGRAMS clean-generic clean-libtool \
-	clean-sbinPROGRAMS mostlyclean-am
-
-distclean: distclean-recursive
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
-	distclean-tags
-
-dvi: dvi-recursive
-
-dvi-am:
-
-html: html-recursive
-
-html-am:
-
-info: info-recursive
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-recursive
-
-install-dvi-am:
-
-install-exec-am: install-binPROGRAMS install-sbinPROGRAMS
-
-install-html: install-html-recursive
-
-install-html-am:
-
-install-info: install-info-recursive
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-recursive
-
-install-pdf-am:
-
-install-ps: install-ps-recursive
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-recursive
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
-	mostlyclean-libtool
-
-pdf: pdf-recursive
-
-pdf-am:
-
-ps: ps-recursive
-
-ps-am:
-
-uninstall-am: uninstall-binPROGRAMS uninstall-sbinPROGRAMS
-
-.MAKE: $(am__recursive_targets) install-am install-strip
-
-.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
-	check-am clean clean-binPROGRAMS clean-generic clean-libtool \
-	clean-sbinPROGRAMS cscopelist-am ctags ctags-am distclean \
-	distclean-compile distclean-generic distclean-libtool \
-	distclean-tags distdir dvi dvi-am html html-am info info-am \
-	install install-am install-binPROGRAMS install-data \
-	install-data-am install-dvi install-dvi-am install-exec \
-	install-exec-am install-html install-html-am install-info \
-	install-info-am install-man install-pdf install-pdf-am \
-	install-ps install-ps-am install-sbinPROGRAMS install-strip \
-	installcheck installcheck-am installdirs installdirs-am \
-	maintainer-clean maintainer-clean-generic mostlyclean \
-	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
-	pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
-	uninstall-binPROGRAMS uninstall-sbinPROGRAMS
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:

+ 113 - 78
app/ipmitool-1.8.18/src/ipmitool.c

@@ -1,51 +1,84 @@
 /*
-*	Jimbo 
-*/
+ * Copyright (c) 2005 Sun Microsystems, Inc.  All Rights Reserved.
+ * Use is subject to license terms.
+ */
 
+/*
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 
+ * Redistribution of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 
+ * Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 
+ * Neither the name of Sun Microsystems, Inc. or the names of
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * 
+ * This software is provided "AS IS," without a warranty of any kind.
+ * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
+ * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
+ * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
+ * SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
+ * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
+ * OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
+ * SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
+ * OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ */
+
+#include <stdio.h>
 #include <ipmitool/ipmi.h>
 #include <ipmitool/ipmi_intf.h>
 #include <ipmitool/ipmi_main.h>
 
-// #include <ipmitool/ipmi_sdr.h>
-// #include <ipmitool/ipmi_gendev.h>
-// #include <ipmitool/ipmi_sel.h>
-// #include <ipmitool/ipmi_fru.h>
-// #include <ipmitool/ipmi_sol.h>
-// #include <ipmitool/ipmi_isol.h>
-// #include <ipmitool/ipmi_tsol.h>
-// #include <ipmitool/ipmi_lanp.h>
-// #include <ipmitool/ipmi_chassis.h>
-// #include <ipmitool/ipmi_mc.h>
-// #include <ipmitool/ipmi_sensor.h>
-// #include <ipmitool/ipmi_channel.h>
-// #include <ipmitool/ipmi_session.h>
-// #include <ipmitool/ipmi_event.h>
-// #include <ipmitool/ipmi_user.h>
+#include <ipmitool/ipmi_sdr.h>
+#include <ipmitool/ipmi_gendev.h>
+#include <ipmitool/ipmi_sel.h>
+#include <ipmitool/ipmi_fru.h>
+#include <ipmitool/ipmi_sol.h>
+#include <ipmitool/ipmi_isol.h>
+#include <ipmitool/ipmi_tsol.h>
+#include <ipmitool/ipmi_lanp.h>
+#include <ipmitool/ipmi_chassis.h>
+#include <ipmitool/ipmi_mc.h>
+#include <ipmitool/ipmi_sensor.h>
+#include <ipmitool/ipmi_channel.h>
+#include <ipmitool/ipmi_session.h>
+#include <ipmitool/ipmi_event.h>
+#include <ipmitool/ipmi_user.h>
 #include <ipmitool/ipmi_raw.h>
-// #include <ipmitool/ipmi_pef.h>
-// #include <ipmitool/ipmi_oem.h>
-// #include <ipmitool/ipmi_sunoem.h>
-// #include <ipmitool/ipmi_fwum.h>
-// #include <ipmitool/ipmi_picmg.h>
-// #include <ipmitool/ipmi_kontronoem.h>
-// #include <ipmitool/ipmi_firewall.h>
-// #include <ipmitool/ipmi_hpmfwupg.h>
-// #include <ipmitool/ipmi_delloem.h>
-// #include <ipmitool/ipmi_ekanalyzer.h>
-// #include <ipmitool/ipmi_ime.h>
-// #include <ipmitool/ipmi_dcmi.h>
-// #include <ipmitool/ipmi_vita.h>
+#include <ipmitool/ipmi_pef.h>
+#include <ipmitool/ipmi_oem.h>
+#include <ipmitool/ipmi_sunoem.h>
+#include <ipmitool/ipmi_fwum.h>
+#include <ipmitool/ipmi_picmg.h>
+#include <ipmitool/ipmi_kontronoem.h>
+#include <ipmitool/ipmi_firewall.h>
+#include <ipmitool/ipmi_hpmfwupg.h>
+#include <ipmitool/ipmi_delloem.h>
+#include <ipmitool/ipmi_ekanalyzer.h>
+#include <ipmitool/ipmi_ime.h>
+#include <ipmitool/ipmi_dcmi.h>
+#include <ipmitool/ipmi_vita.h>
 
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <stdint.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
 
-// extern int ipmi_echo_main(struct ipmi_intf * intf, int argc, char ** argv);
-// extern int ipmi_set_main(struct ipmi_intf * intf, int argc, char ** argv);
-// extern int ipmi_exec_main(struct ipmi_intf * intf, int argc, char ** argv);
-// extern int ipmi_lan6_main(struct ipmi_intf *intf, int argc, char **argv);
+#ifdef HAVE_READLINE
+extern int ipmi_shell_main(struct ipmi_intf * intf, int argc, char ** argv);
+#endif
+extern int ipmi_echo_main(struct ipmi_intf * intf, int argc, char ** argv);
+extern int ipmi_set_main(struct ipmi_intf * intf, int argc, char ** argv);
+extern int ipmi_exec_main(struct ipmi_intf * intf, int argc, char ** argv);
+extern int ipmi_lan6_main(struct ipmi_intf *intf, int argc, char **argv);
 
 
 int csv_output = 0;
@@ -53,50 +86,52 @@ int verbose = 0;
 
 struct ipmi_cmd ipmitool_cmd_list[] = {
 	{ ipmi_raw_main,     "raw",     "Send a RAW IPMI request and print response" },
-	// { ipmi_rawi2c_main,  "i2c",     "Send an I2C Master Write-Read command and print response" },
-	// { ipmi_rawspd_main,  "spd",     "Print SPD info from remote I2C device" },
-	// { ipmi_lanp_main,    "lan",     "Configure LAN Channels" },
-	// { ipmi_chassis_main, "chassis", "Get chassis status and set power state" },
-	// { ipmi_power_main,   "power",   "Shortcut to chassis power commands" },
-	// { ipmi_event_main,   "event",   "Send pre-defined events to MC" },
-//	{ ipmi_mc_main,      "mc",      "Management Controller status and global enables" },
-//	{ ipmi_mc_main,      "bmc",     NULL },	/* for backwards compatibility */
-//	{ ipmi_sdr_main,     "sdr",     "Print Sensor Data Repository entries and readings" },
-//	{ ipmi_sensor_main,  "sensor",  "Print detailed sensor information" },
-//	{ ipmi_fru_main,     "fru",     "Print built-in FRU and scan SDR for FRU locators" },
-//	{ ipmi_gendev_main,  "gendev",  "Read/Write Device associated with Generic Device locators sdr" },
-//	{ ipmi_sel_main,     "sel",     "Print System Event Log (SEL)" },
-//	{ ipmi_pef_main,     "pef",     "Configure Platform Event Filtering (PEF)" },
-//	{ ipmi_sol_main,     "sol",     "Configure and connect IPMIv2.0 Serial-over-LAN" },
-//	{ ipmi_tsol_main,    "tsol",    "Configure and connect with Tyan IPMIv1.5 Serial-over-LAN" },
-//	{ ipmi_isol_main,    "isol",    "Configure IPMIv1.5 Serial-over-LAN" },
-	// { ipmi_user_main,    "user",    "Configure Management Controller users" },
-	// { ipmi_channel_main, "channel", "Configure Management Controller channels" },
-	// { ipmi_session_main, "session", "Print session information" },
-	// { ipmi_dcmi_main,    "dcmi",    "Data Center Management Interface"},
-	// { ipmi_nm_main,      "nm",      "Node Manager Interface"},
-	// { ipmi_sunoem_main,  "sunoem",  "OEM Commands for Sun servers" },
-	// { ipmi_kontronoem_main, "kontronoem", "OEM Commands for Kontron devices"},
-	// { ipmi_picmg_main,   "picmg",   "Run a PICMG/ATCA extended cmd"},
-	// { ipmi_fwum_main,    "fwum",	"Update IPMC using Kontron OEM Firmware Update Manager" },
-	// { ipmi_firewall_main,"firewall","Configure Firmware Firewall" },
-	// { ipmi_delloem_main, "delloem", "OEM Commands for Dell systems" },
-	// { ipmi_exec_main,    "exec",    "Run list of commands from file" },
-	// { ipmi_set_main,     "set",     "Set runtime variable for shell and exec" },
-	// { ipmi_echo_main,    "echo",    NULL }, /* for echoing lines to stdout in scripts */
-	// { ipmi_hpmfwupg_main,"hpm", "Update HPM components using PICMG HPM.1 file"},
-	// { ipmi_ekanalyzer_main,"ekanalyzer", "run FRU-Ekeying analyzer using FRU files"},
-	// { ipmi_ime_main,          "ime", "Update Intel Manageability Engine Firmware"},
-	// { ipmi_vita_main,   "vita",   "Run a VITA 46.11 extended cmd"},
-	// { ipmi_lan6_main,   "lan6",   "Configure IPv6 LAN Channels"},
- 	{ NULL },
+ //	{ ipmi_rawi2c_main,  "i2c",     "Send an I2C Master Write-Read command and print response" },
+ //	{ ipmi_rawspd_main,  "spd",     "Print SPD info from remote I2C device" },
+ //	{ ipmi_lanp_main,    "lan",     "Configure LAN Channels" },
+ 	{ ipmi_chassis_main, "chassis", "Get chassis status and set power state" },
+ 	{ ipmi_power_main,   "power",   "Shortcut to chassis power commands" },
+ //	{ ipmi_event_main,   "event",   "Send pre-defined events to MC" },
+ 	{ ipmi_mc_main,      "mc",      "Management Controller status and global enables" },
+ //	{ ipmi_mc_main,      "bmc",     NULL },	/* for backwards compatibility */
+ 	{ ipmi_sdr_main,     "sdr",     "Print Sensor Data Repository entries and readings" },
+ 	{ ipmi_sensor_main,  "sensor",  "Print detailed sensor information" },
+ 	{ ipmi_fru_main,     "fru",     "Print built-in FRU and scan SDR for FRU locators" },
+ //	{ ipmi_gendev_main,  "gendev",  "Read/Write Device associated with Generic Device locators sdr" },
+ 	{ ipmi_sel_main,     "sel",     "Print System Event Log (SEL)" },
+ //	{ ipmi_pef_main,     "pef",     "Configure Platform Event Filtering (PEF)" },
+// 	{ ipmi_sol_main,     "sol",     "Configure and connect IPMIv2.0 Serial-over-LAN" },
+// 	{ ipmi_tsol_main,    "tsol",    "Configure and connect with Tyan IPMIv1.5 Serial-over-LAN" },
+// 	{ ipmi_isol_main,    "isol",    "Configure IPMIv1.5 Serial-over-LAN" },
+ 	{ ipmi_user_main,    "user",    "Configure Management Controller users" },
+ //	{ ipmi_channel_main, "channel", "Configure Management Controller channels" },
+ //	{ ipmi_session_main, "session", "Print session information" },
+ //	{ ipmi_dcmi_main,    "dcmi",    "Data Center Management Interface"},
+// 	{ ipmi_nm_main,      "nm",      "Node Manager Interface"},
+// 	{ ipmi_sunoem_main,  "sunoem",  "OEM Commands for Sun servers" },
+// 	{ ipmi_kontronoem_main, "kontronoem", "OEM Commands for Kontron devices"},
+// 	{ ipmi_picmg_main,   "picmg",   "Run a PICMG/ATCA extended cmd"},
+// 	{ ipmi_fwum_main,    "fwum",	"Update IPMC using Kontron OEM Firmware Update Manager" },
+// 	{ ipmi_firewall_main,"firewall","Configure Firmware Firewall" },
+// 	{ ipmi_delloem_main, "delloem", "OEM Commands for Dell systems" },
+// #ifdef HAVE_READLINE
+// 	{ ipmi_shell_main,   "shell",   "Launch interactive IPMI shell" },
+// #endif
+// 	{ ipmi_exec_main,    "exec",    "Run list of commands from file" },
+// 	{ ipmi_set_main,     "set",     "Set runtime variable for shell and exec" },
+// 	{ ipmi_echo_main,    "echo",    NULL }, /* for echoing lines to stdout in scripts */
+// 	{ ipmi_hpmfwupg_main,"hpm", "Update HPM components using PICMG HPM.1 file"},
+// 	{ ipmi_ekanalyzer_main,"ekanalyzer", "run FRU-Ekeying analyzer using FRU files"},
+// 	{ ipmi_ime_main,          "ime", "Update Intel Manageability Engine Firmware"},
+// 	{ ipmi_vita_main,   "vita",   "Run a VITA 46.11 extended cmd"},
+// 	{ ipmi_lan6_main,   "lan6",   "Configure IPv6 LAN Channels"},
+	{ NULL },
 };
 
 int
 main(int argc, char ** argv)
 {
-	int rc = EXIT_SUCCESS;
-	printf("Hello ipmitool\n");
+	int rc = 0;
 	rc = ipmi_main(argc, argv, ipmitool_cmd_list, NULL);
 
 	if (rc < 0)

+ 1 - 0
app/ipmitool-1.8.18/src/plugins/.libs/libintf.la

@@ -0,0 +1 @@
+../libintf.la

+ 0 - 43
app/ipmitool-1.8.18/src/plugins/Makefile.am

@@ -1,43 +0,0 @@
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-MAINTAINERCLEANFILES		= Makefile.in
-
-AM_CPPFLAGS			= -I$(top_srcdir)/include
-
-SUBDIRS				= @INTF_LAN@ @INTF_LANPLUS@ @INTF_OPEN@ @INTF_LIPMI@ @INTF_IMB@ @INTF_BMC@ @INTF_FREE@ @INTF_SERIAL@ @INTF_DUMMY@ @INTF_USB@
-DIST_SUBDIRS			= lan lanplus open lipmi imb bmc free serial dummy usb
-
-noinst_LTLIBRARIES		= libintf.la
-libintf_la_SOURCES		= ipmi_intf.c
-libintf_la_LDFLAGS		= -export-dynamic
-libintf_la_LIBADD		= @IPMITOOL_INTF_LIB@
-libintf_la_DEPENDENCIES		= @IPMITOOL_INTF_LIB@
-

+ 0 - 757
app/ipmitool-1.8.18/src/plugins/Makefile.in

@@ -1,757 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = src/plugins
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
-	$(top_srcdir)/depcomp
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LTLIBRARIES = $(noinst_LTLIBRARIES)
-am_libintf_la_OBJECTS = ipmi_intf.lo
-libintf_la_OBJECTS = $(am_libintf_la_OBJECTS)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 = 
-libintf_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
-	$(libintf_la_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
-	$(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo "  CC      " $@;
-am__v_CC_1 = 
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo "  CCLD    " $@;
-am__v_CCLD_1 = 
-SOURCES = $(libintf_la_SOURCES)
-DIST_SOURCES = $(libintf_la_SOURCES)
-RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
-	ctags-recursive dvi-recursive html-recursive info-recursive \
-	install-data-recursive install-dvi-recursive \
-	install-exec-recursive install-html-recursive \
-	install-info-recursive install-pdf-recursive \
-	install-ps-recursive install-recursive installcheck-recursive \
-	installdirs-recursive pdf-recursive ps-recursive \
-	tags-recursive uninstall-recursive
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
-  distclean-recursive maintainer-clean-recursive
-am__recursive_targets = \
-  $(RECURSIVE_TARGETS) \
-  $(RECURSIVE_CLEAN_TARGETS) \
-  $(am__extra_recursive_targets)
-AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
-	distdir
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates.  Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
-  BEGIN { nonempty = 0; } \
-  { items[$$0] = 1; nonempty = 1; } \
-  END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique.  This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
-  list='$(am__tagged_files)'; \
-  unique=`for i in $$list; do \
-    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-  done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-am__relativize = \
-  dir0=`pwd`; \
-  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
-  sed_rest='s,^[^/]*/*,,'; \
-  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
-  sed_butlast='s,/*[^/]*$$,,'; \
-  while test -n "$$dir1"; do \
-    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
-    if test "$$first" != "."; then \
-      if test "$$first" = ".."; then \
-        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
-        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
-      else \
-        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
-        if test "$$first2" = "$$first"; then \
-          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
-        else \
-          dir2="../$$dir2"; \
-        fi; \
-        dir0="$$dir0"/"$$first"; \
-      fi; \
-    fi; \
-    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
-  done; \
-  reldir="$$dir2"
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-ARCH = @ARCH@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BASEDIR = @BASEDIR@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DISTRO = @DISTRO@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTF_BMC = @INTF_BMC@
-INTF_BMC_LIB = @INTF_BMC_LIB@
-INTF_DUMMY = @INTF_DUMMY@
-INTF_DUMMY_LIB = @INTF_DUMMY_LIB@
-INTF_FREE = @INTF_FREE@
-INTF_FREE_LIB = @INTF_FREE_LIB@
-INTF_IMB = @INTF_IMB@
-INTF_IMB_LIB = @INTF_IMB_LIB@
-INTF_LAN = @INTF_LAN@
-INTF_LANPLUS = @INTF_LANPLUS@
-INTF_LANPLUS_LIB = @INTF_LANPLUS_LIB@
-INTF_LAN_LIB = @INTF_LAN_LIB@
-INTF_LIPMI = @INTF_LIPMI@
-INTF_LIPMI_LIB = @INTF_LIPMI_LIB@
-INTF_OPEN = @INTF_OPEN@
-INTF_OPEN_LIB = @INTF_OPEN_LIB@
-INTF_SERIAL = @INTF_SERIAL@
-INTF_SERIAL_LIB = @INTF_SERIAL_LIB@
-INTF_USB = @INTF_USB@
-INTF_USB_LIB = @INTF_USB_LIB@
-IPMITOOL_INTF_LIB = @IPMITOOL_INTF_LIB@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS = @OS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-POW_LIB = @POW_LIB@
-PSTAMP = @PSTAMP@
-RANLIB = @RANLIB@
-RPMBUILD = @RPMBUILD@
-RPM_RELEASE = @RPM_RELEASE@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_configure_args = @ac_configure_args@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-MAINTAINERCLEANFILES = Makefile.in
-AM_CPPFLAGS = -I$(top_srcdir)/include
-SUBDIRS = @INTF_LAN@ @INTF_LANPLUS@ @INTF_OPEN@ @INTF_LIPMI@ @INTF_IMB@ @INTF_BMC@ @INTF_FREE@ @INTF_SERIAL@ @INTF_DUMMY@ @INTF_USB@
-DIST_SUBDIRS = lan lanplus open lipmi imb bmc free serial dummy usb
-noinst_LTLIBRARIES = libintf.la
-libintf_la_SOURCES = ipmi_intf.c
-libintf_la_LDFLAGS = -export-dynamic
-libintf_la_LIBADD = @IPMITOOL_INTF_LIB@
-libintf_la_DEPENDENCIES = @IPMITOOL_INTF_LIB@
-all: all-recursive
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/plugins/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign src/plugins/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLTLIBRARIES:
-	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
-	@list='$(noinst_LTLIBRARIES)'; \
-	locs=`for p in $$list; do echo $$p; done | \
-	      sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
-	      sort -u`; \
-	test -z "$$locs" || { \
-	  echo rm -f $${locs}; \
-	  rm -f $${locs}; \
-	}
-
-libintf.la: $(libintf_la_OBJECTS) $(libintf_la_DEPENDENCIES) $(EXTRA_libintf_la_DEPENDENCIES) 
-	$(AM_V_CCLD)$(libintf_la_LINK)  $(libintf_la_OBJECTS) $(libintf_la_LIBADD) $(LIBS)
-
-mostlyclean-compile:
-	-rm -f *.$(OBJEXT)
-
-distclean-compile:
-	-rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipmi_intf.Plo@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run 'make' without going through this Makefile.
-# To change the values of 'make' variables: instead of editing Makefiles,
-# (1) if the variable is set in 'config.status', edit 'config.status'
-#     (which will cause the Makefiles to be regenerated when you run 'make');
-# (2) otherwise, pass the desired values on the 'make' command line.
-$(am__recursive_targets):
-	@fail=; \
-	if $(am__make_keepgoing); then \
-	  failcom='fail=yes'; \
-	else \
-	  failcom='exit 1'; \
-	fi; \
-	dot_seen=no; \
-	target=`echo $@ | sed s/-recursive//`; \
-	case "$@" in \
-	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
-	  *) list='$(SUBDIRS)' ;; \
-	esac; \
-	for subdir in $$list; do \
-	  echo "Making $$target in $$subdir"; \
-	  if test "$$subdir" = "."; then \
-	    dot_seen=yes; \
-	    local_target="$$target-am"; \
-	  else \
-	    local_target="$$target"; \
-	  fi; \
-	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
-	  || eval $$failcom; \
-	done; \
-	if test "$$dot_seen" = "no"; then \
-	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
-	fi; test -z "$$fail"
-
-ID: $(am__tagged_files)
-	$(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-recursive
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	set x; \
-	here=`pwd`; \
-	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
-	  include_option=--etags-include; \
-	  empty_fix=.; \
-	else \
-	  include_option=--include; \
-	  empty_fix=; \
-	fi; \
-	list='$(SUBDIRS)'; for subdir in $$list; do \
-	  if test "$$subdir" = .; then :; else \
-	    test ! -f $$subdir/TAGS || \
-	      set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
-	  fi; \
-	done; \
-	$(am__define_uniq_tagged_files); \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: ctags-recursive
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	$(am__define_uniq_tagged_files); \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-recursive
-
-cscopelist-am: $(am__tagged_files)
-	list='$(am__tagged_files)'; \
-	case "$(srcdir)" in \
-	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
-	  *) sdir=$(subdir)/$(srcdir) ;; \
-	esac; \
-	for i in $$list; do \
-	  if test -f "$$i"; then \
-	    echo "$(subdir)/$$i"; \
-	  else \
-	    echo "$$sdir/$$i"; \
-	  fi; \
-	done >> $(top_builddir)/cscope.files
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-	@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
-	  if test "$$subdir" = .; then :; else \
-	    $(am__make_dryrun) \
-	      || test -d "$(distdir)/$$subdir" \
-	      || $(MKDIR_P) "$(distdir)/$$subdir" \
-	      || exit 1; \
-	    dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
-	    $(am__relativize); \
-	    new_distdir=$$reldir; \
-	    dir1=$$subdir; dir2="$(top_distdir)"; \
-	    $(am__relativize); \
-	    new_top_distdir=$$reldir; \
-	    echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
-	    echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
-	    ($(am__cd) $$subdir && \
-	      $(MAKE) $(AM_MAKEFLAGS) \
-	        top_distdir="$$new_top_distdir" \
-	        distdir="$$new_distdir" \
-		am__remove_distdir=: \
-		am__skip_length_check=: \
-		am__skip_mode_fix=: \
-	        distdir) \
-	      || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-recursive
-all-am: Makefile $(LTLIBRARIES)
-installdirs: installdirs-recursive
-installdirs-am:
-install: install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-recursive
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-recursive
-
-clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
-	mostlyclean-am
-
-distclean: distclean-recursive
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
-	distclean-tags
-
-dvi: dvi-recursive
-
-dvi-am:
-
-html: html-recursive
-
-html-am:
-
-info: info-recursive
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-recursive
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-recursive
-
-install-html-am:
-
-install-info: install-info-recursive
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-recursive
-
-install-pdf-am:
-
-install-ps: install-ps-recursive
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-recursive
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
-	mostlyclean-libtool
-
-pdf: pdf-recursive
-
-pdf-am:
-
-ps: ps-recursive
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: $(am__recursive_targets) install-am install-strip
-
-.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
-	check-am clean clean-generic clean-libtool \
-	clean-noinstLTLIBRARIES cscopelist-am ctags ctags-am distclean \
-	distclean-compile distclean-generic distclean-libtool \
-	distclean-tags distdir dvi dvi-am html html-am info info-am \
-	install install-am install-data install-data-am install-dvi \
-	install-dvi-am install-exec install-exec-am install-html \
-	install-html-am install-info install-info-am install-man \
-	install-pdf install-pdf-am install-ps install-ps-am \
-	install-strip installcheck installcheck-am installdirs \
-	installdirs-am maintainer-clean maintainer-clean-generic \
-	mostlyclean mostlyclean-compile mostlyclean-generic \
-	mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
-	uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:

+ 0 - 41
app/ipmitool-1.8.18/src/plugins/bmc/Makefile.am

@@ -1,41 +0,0 @@
-# Copyright (c) 2004 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-MAINTAINERCLEANFILES	= Makefile.in
-
-AM_CPPFLAGS		= -I$(top_srcdir)/include
-
-EXTRA_LTLIBRARIES	= libintf_bmc.la
-noinst_LTLIBRARIES	= @INTF_BMC_LIB@
-libintf_bmc_la_LIBADD	= $(top_builddir)/lib/libipmitool.la
-libintf_bmc_la_SOURCES	= \
-				bmc.c bmc.h \
-				bmc_intf.h
-

+ 0 - 640
app/ipmitool-1.8.18/src/plugins/bmc/Makefile.in

@@ -1,640 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Copyright (c) 2004 Sun Microsystems, Inc.  All Rights Reserved.
-# 
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 
-# Redistribution of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistribution in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 
-# Neither the name of Sun Microsystems, Inc. or the names of
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# 
-# This software is provided "AS IS," without a warranty of any kind.
-# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
-# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
-# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
-# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
-# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
-# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
-# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
-# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
-# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
-# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
-# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = src/plugins/bmc
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
-	$(top_srcdir)/depcomp
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LTLIBRARIES = $(noinst_LTLIBRARIES)
-libintf_bmc_la_DEPENDENCIES = $(top_builddir)/lib/libipmitool.la
-am_libintf_bmc_la_OBJECTS = bmc.lo
-libintf_bmc_la_OBJECTS = $(am_libintf_bmc_la_OBJECTS)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 = 
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
-	$(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo "  CC      " $@;
-am__v_CC_1 = 
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo "  CCLD    " $@;
-am__v_CCLD_1 = 
-SOURCES = $(libintf_bmc_la_SOURCES)
-DIST_SOURCES = $(libintf_bmc_la_SOURCES)
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates.  Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
-  BEGIN { nonempty = 0; } \
-  { items[$$0] = 1; nonempty = 1; } \
-  END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique.  This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
-  list='$(am__tagged_files)'; \
-  unique=`for i in $$list; do \
-    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-  done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-ARCH = @ARCH@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BASEDIR = @BASEDIR@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DISTRO = @DISTRO@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTF_BMC = @INTF_BMC@
-INTF_BMC_LIB = @INTF_BMC_LIB@
-INTF_DUMMY = @INTF_DUMMY@
-INTF_DUMMY_LIB = @INTF_DUMMY_LIB@
-INTF_FREE = @INTF_FREE@
-INTF_FREE_LIB = @INTF_FREE_LIB@
-INTF_IMB = @INTF_IMB@
-INTF_IMB_LIB = @INTF_IMB_LIB@
-INTF_LAN = @INTF_LAN@
-INTF_LANPLUS = @INTF_LANPLUS@
-INTF_LANPLUS_LIB = @INTF_LANPLUS_LIB@
-INTF_LAN_LIB = @INTF_LAN_LIB@
-INTF_LIPMI = @INTF_LIPMI@
-INTF_LIPMI_LIB = @INTF_LIPMI_LIB@
-INTF_OPEN = @INTF_OPEN@
-INTF_OPEN_LIB = @INTF_OPEN_LIB@
-INTF_SERIAL = @INTF_SERIAL@
-INTF_SERIAL_LIB = @INTF_SERIAL_LIB@
-INTF_USB = @INTF_USB@
-INTF_USB_LIB = @INTF_USB_LIB@
-IPMITOOL_INTF_LIB = @IPMITOOL_INTF_LIB@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS = @OS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-POW_LIB = @POW_LIB@
-PSTAMP = @PSTAMP@
-RANLIB = @RANLIB@
-RPMBUILD = @RPMBUILD@
-RPM_RELEASE = @RPM_RELEASE@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_configure_args = @ac_configure_args@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-MAINTAINERCLEANFILES = Makefile.in
-AM_CPPFLAGS = -I$(top_srcdir)/include
-EXTRA_LTLIBRARIES = libintf_bmc.la
-noinst_LTLIBRARIES = @INTF_BMC_LIB@
-libintf_bmc_la_LIBADD = $(top_builddir)/lib/libipmitool.la
-libintf_bmc_la_SOURCES = \
-				bmc.c bmc.h \
-				bmc_intf.h
-
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/plugins/bmc/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign src/plugins/bmc/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLTLIBRARIES:
-	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
-	@list='$(noinst_LTLIBRARIES)'; \
-	locs=`for p in $$list; do echo $$p; done | \
-	      sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
-	      sort -u`; \
-	test -z "$$locs" || { \
-	  echo rm -f $${locs}; \
-	  rm -f $${locs}; \
-	}
-
-libintf_bmc.la: $(libintf_bmc_la_OBJECTS) $(libintf_bmc_la_DEPENDENCIES) $(EXTRA_libintf_bmc_la_DEPENDENCIES) 
-	$(AM_V_CCLD)$(LINK)  $(libintf_bmc_la_OBJECTS) $(libintf_bmc_la_LIBADD) $(LIBS)
-
-mostlyclean-compile:
-	-rm -f *.$(OBJEXT)
-
-distclean-compile:
-	-rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bmc.Plo@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-
-ID: $(am__tagged_files)
-	$(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	set x; \
-	here=`pwd`; \
-	$(am__define_uniq_tagged_files); \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	$(am__define_uniq_tagged_files); \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
-	list='$(am__tagged_files)'; \
-	case "$(srcdir)" in \
-	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
-	  *) sdir=$(subdir)/$(srcdir) ;; \
-	esac; \
-	for i in $$list; do \
-	  if test -f "$$i"; then \
-	    echo "$(subdir)/$$i"; \
-	  else \
-	    echo "$$sdir/$$i"; \
-	  fi; \
-	done >> $(top_builddir)/cscope.files
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LTLIBRARIES)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
-	mostlyclean-am
-
-distclean: distclean-am
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
-	distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
-	mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
-	clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
-	ctags-am distclean distclean-compile distclean-generic \
-	distclean-libtool distclean-tags distdir dvi dvi-am html \
-	html-am info info-am install install-am install-data \
-	install-data-am install-dvi install-dvi-am install-exec \
-	install-exec-am install-html install-html-am install-info \
-	install-info-am install-man install-pdf install-pdf-am \
-	install-ps install-ps-am install-strip installcheck \
-	installcheck-am installdirs maintainer-clean \
-	maintainer-clean-generic mostlyclean mostlyclean-compile \
-	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
-	tags tags-am uninstall uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:

+ 0 - 8
app/ipmitool-1.8.18/src/plugins/dummy/Makefile.am

@@ -1,8 +0,0 @@
-MAINTAINERCLEANFILES	= Makefile.in
-
-AM_CPPFLAGS		= -I$(top_srcdir)/include
-
-EXTRA_LTLIBRARIES	= libintf_dummy.la
-noinst_LTLIBRARIES	= @INTF_DUMMY_LIB@
-libintf_dummy_la_LIBADD	= $(top_builddir)/lib/libipmitool.la
-libintf_dummy_la_SOURCES	= dummy.c dummy.h

+ 0 - 607
app/ipmitool-1.8.18/src/plugins/dummy/Makefile.in

@@ -1,607 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = src/plugins/dummy
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
-	$(top_srcdir)/depcomp
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LTLIBRARIES = $(noinst_LTLIBRARIES)
-libintf_dummy_la_DEPENDENCIES = $(top_builddir)/lib/libipmitool.la
-am_libintf_dummy_la_OBJECTS = dummy.lo
-libintf_dummy_la_OBJECTS = $(am_libintf_dummy_la_OBJECTS)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 = 
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
-	$(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo "  CC      " $@;
-am__v_CC_1 = 
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo "  CCLD    " $@;
-am__v_CCLD_1 = 
-SOURCES = $(libintf_dummy_la_SOURCES)
-DIST_SOURCES = $(libintf_dummy_la_SOURCES)
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates.  Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
-  BEGIN { nonempty = 0; } \
-  { items[$$0] = 1; nonempty = 1; } \
-  END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique.  This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
-  list='$(am__tagged_files)'; \
-  unique=`for i in $$list; do \
-    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-  done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-ARCH = @ARCH@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BASEDIR = @BASEDIR@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DISTRO = @DISTRO@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTF_BMC = @INTF_BMC@
-INTF_BMC_LIB = @INTF_BMC_LIB@
-INTF_DUMMY = @INTF_DUMMY@
-INTF_DUMMY_LIB = @INTF_DUMMY_LIB@
-INTF_FREE = @INTF_FREE@
-INTF_FREE_LIB = @INTF_FREE_LIB@
-INTF_IMB = @INTF_IMB@
-INTF_IMB_LIB = @INTF_IMB_LIB@
-INTF_LAN = @INTF_LAN@
-INTF_LANPLUS = @INTF_LANPLUS@
-INTF_LANPLUS_LIB = @INTF_LANPLUS_LIB@
-INTF_LAN_LIB = @INTF_LAN_LIB@
-INTF_LIPMI = @INTF_LIPMI@
-INTF_LIPMI_LIB = @INTF_LIPMI_LIB@
-INTF_OPEN = @INTF_OPEN@
-INTF_OPEN_LIB = @INTF_OPEN_LIB@
-INTF_SERIAL = @INTF_SERIAL@
-INTF_SERIAL_LIB = @INTF_SERIAL_LIB@
-INTF_USB = @INTF_USB@
-INTF_USB_LIB = @INTF_USB_LIB@
-IPMITOOL_INTF_LIB = @IPMITOOL_INTF_LIB@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS = @OS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-POW_LIB = @POW_LIB@
-PSTAMP = @PSTAMP@
-RANLIB = @RANLIB@
-RPMBUILD = @RPMBUILD@
-RPM_RELEASE = @RPM_RELEASE@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_configure_args = @ac_configure_args@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-MAINTAINERCLEANFILES = Makefile.in
-AM_CPPFLAGS = -I$(top_srcdir)/include
-EXTRA_LTLIBRARIES = libintf_dummy.la
-noinst_LTLIBRARIES = @INTF_DUMMY_LIB@
-libintf_dummy_la_LIBADD = $(top_builddir)/lib/libipmitool.la
-libintf_dummy_la_SOURCES = dummy.c dummy.h
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/plugins/dummy/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign src/plugins/dummy/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLTLIBRARIES:
-	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
-	@list='$(noinst_LTLIBRARIES)'; \
-	locs=`for p in $$list; do echo $$p; done | \
-	      sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
-	      sort -u`; \
-	test -z "$$locs" || { \
-	  echo rm -f $${locs}; \
-	  rm -f $${locs}; \
-	}
-
-libintf_dummy.la: $(libintf_dummy_la_OBJECTS) $(libintf_dummy_la_DEPENDENCIES) $(EXTRA_libintf_dummy_la_DEPENDENCIES) 
-	$(AM_V_CCLD)$(LINK)  $(libintf_dummy_la_OBJECTS) $(libintf_dummy_la_LIBADD) $(LIBS)
-
-mostlyclean-compile:
-	-rm -f *.$(OBJEXT)
-
-distclean-compile:
-	-rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Plo@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-
-ID: $(am__tagged_files)
-	$(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	set x; \
-	here=`pwd`; \
-	$(am__define_uniq_tagged_files); \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	$(am__define_uniq_tagged_files); \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
-	list='$(am__tagged_files)'; \
-	case "$(srcdir)" in \
-	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
-	  *) sdir=$(subdir)/$(srcdir) ;; \
-	esac; \
-	for i in $$list; do \
-	  if test -f "$$i"; then \
-	    echo "$(subdir)/$$i"; \
-	  else \
-	    echo "$$sdir/$$i"; \
-	  fi; \
-	done >> $(top_builddir)/cscope.files
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LTLIBRARIES)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
-	mostlyclean-am
-
-distclean: distclean-am
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
-	distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
-	mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
-	clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
-	ctags-am distclean distclean-compile distclean-generic \
-	distclean-libtool distclean-tags distdir dvi dvi-am html \
-	html-am info info-am install install-am install-data \
-	install-data-am install-dvi install-dvi-am install-exec \
-	install-exec-am install-html install-html-am install-info \
-	install-info-am install-man install-pdf install-pdf-am \
-	install-ps install-ps-am install-strip installcheck \
-	installcheck-am installdirs maintainer-clean \
-	maintainer-clean-generic mostlyclean mostlyclean-compile \
-	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
-	tags tags-am uninstall uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:

+ 0 - 9
app/ipmitool-1.8.18/src/plugins/free/Makefile.am

@@ -1,9 +0,0 @@
-MAINTAINERCLEANFILES           = Makefile.in
-
-AM_CPPFLAGS                       = -I$(top_srcdir)/include
-
-EXTRA_LTLIBRARIES              = libintf_free.la
-noinst_LTLIBRARIES             = @INTF_FREE_LIB@
-libintf_free_la_LIBADD         = $(top_builddir)/lib/libipmitool.la
-libintf_free_la_SOURCES        = free.c
-libintf_free_la_LDFLAGS        = -lfreeipmi

+ 0 - 612
app/ipmitool-1.8.18/src/plugins/free/Makefile.in

@@ -1,612 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-subdir = src/plugins/free
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
-	$(top_srcdir)/depcomp
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LTLIBRARIES = $(noinst_LTLIBRARIES)
-libintf_free_la_DEPENDENCIES = $(top_builddir)/lib/libipmitool.la
-am_libintf_free_la_OBJECTS = free.lo
-libintf_free_la_OBJECTS = $(am_libintf_free_la_OBJECTS)
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 = 
-libintf_free_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
-	$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
-	$(AM_CFLAGS) $(CFLAGS) $(libintf_free_la_LDFLAGS) $(LDFLAGS) \
-	-o $@
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
-	$(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo "  CC      " $@;
-am__v_CC_1 = 
-CCLD = $(CC)
-LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo "  CCLD    " $@;
-am__v_CCLD_1 = 
-SOURCES = $(libintf_free_la_SOURCES)
-DIST_SOURCES = $(libintf_free_la_SOURCES)
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates.  Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
-  BEGIN { nonempty = 0; } \
-  { items[$$0] = 1; nonempty = 1; } \
-  END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique.  This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
-  list='$(am__tagged_files)'; \
-  unique=`for i in $$list; do \
-    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-  done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-ARCH = @ARCH@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BASEDIR = @BASEDIR@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DISTRO = @DISTRO@
-DLLTOOL = @DLLTOOL@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTF_BMC = @INTF_BMC@
-INTF_BMC_LIB = @INTF_BMC_LIB@
-INTF_DUMMY = @INTF_DUMMY@
-INTF_DUMMY_LIB = @INTF_DUMMY_LIB@
-INTF_FREE = @INTF_FREE@
-INTF_FREE_LIB = @INTF_FREE_LIB@
-INTF_IMB = @INTF_IMB@
-INTF_IMB_LIB = @INTF_IMB_LIB@
-INTF_LAN = @INTF_LAN@
-INTF_LANPLUS = @INTF_LANPLUS@
-INTF_LANPLUS_LIB = @INTF_LANPLUS_LIB@
-INTF_LAN_LIB = @INTF_LAN_LIB@
-INTF_LIPMI = @INTF_LIPMI@
-INTF_LIPMI_LIB = @INTF_LIPMI_LIB@
-INTF_OPEN = @INTF_OPEN@
-INTF_OPEN_LIB = @INTF_OPEN_LIB@
-INTF_SERIAL = @INTF_SERIAL@
-INTF_SERIAL_LIB = @INTF_SERIAL_LIB@
-INTF_USB = @INTF_USB@
-INTF_USB_LIB = @INTF_USB_LIB@
-IPMITOOL_INTF_LIB = @IPMITOOL_INTF_LIB@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MANIFEST_TOOL = @MANIFEST_TOOL@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OS = @OS@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-POW_LIB = @POW_LIB@
-PSTAMP = @PSTAMP@
-RANLIB = @RANLIB@
-RPMBUILD = @RPMBUILD@
-RPM_RELEASE = @RPM_RELEASE@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_configure_args = @ac_configure_args@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-MAINTAINERCLEANFILES = Makefile.in
-AM_CPPFLAGS = -I$(top_srcdir)/include
-EXTRA_LTLIBRARIES = libintf_free.la
-noinst_LTLIBRARIES = @INTF_FREE_LIB@
-libintf_free_la_LIBADD = $(top_builddir)/lib/libipmitool.la
-libintf_free_la_SOURCES = free.c
-libintf_free_la_LDFLAGS = -lfreeipmi
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/plugins/free/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign src/plugins/free/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLTLIBRARIES:
-	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
-	@list='$(noinst_LTLIBRARIES)'; \
-	locs=`for p in $$list; do echo $$p; done | \
-	      sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
-	      sort -u`; \
-	test -z "$$locs" || { \
-	  echo rm -f $${locs}; \
-	  rm -f $${locs}; \
-	}
-
-libintf_free.la: $(libintf_free_la_OBJECTS) $(libintf_free_la_DEPENDENCIES) $(EXTRA_libintf_free_la_DEPENDENCIES) 
-	$(AM_V_CCLD)$(libintf_free_la_LINK)  $(libintf_free_la_OBJECTS) $(libintf_free_la_LIBADD) $(LIBS)
-
-mostlyclean-compile:
-	-rm -f *.$(OBJEXT)
-
-distclean-compile:
-	-rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/free.Plo@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-
-ID: $(am__tagged_files)
-	$(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	set x; \
-	here=`pwd`; \
-	$(am__define_uniq_tagged_files); \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	$(am__define_uniq_tagged_files); \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
-	list='$(am__tagged_files)'; \
-	case "$(srcdir)" in \
-	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
-	  *) sdir=$(subdir)/$(srcdir) ;; \
-	esac; \
-	for i in $$list; do \
-	  if test -f "$$i"; then \
-	    echo "$(subdir)/$$i"; \
-	  else \
-	    echo "$$sdir/$$i"; \
-	  fi; \
-	done >> $(top_builddir)/cscope.files
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
-	list='$(DISTFILES)'; \
-	  dist_files=`for file in $$list; do echo $$file; done | \
-	  sed -e "s|^$$srcdirstrip/||;t" \
-	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
-	case $$dist_files in \
-	  */*) $(MKDIR_P) `echo "$$dist_files" | \
-			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
-			   sort -u` ;; \
-	esac; \
-	for file in $$dist_files; do \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  if test -d $$d/$$file; then \
-	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
-	    if test -d "$(distdir)/$$file"; then \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
-	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
-	    fi; \
-	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
-	  else \
-	    test -f "$(distdir)/$$file" \
-	    || cp -p $$d/$$file "$(distdir)/$$file" \
-	    || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LTLIBRARIES)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
-	mostlyclean-am
-
-distclean: distclean-am
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
-	distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
-	mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
-	clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
-	ctags-am distclean distclean-compile distclean-generic \
-	distclean-libtool distclean-tags distdir dvi dvi-am html \
-	html-am info info-am install install-am install-data \
-	install-data-am install-dvi install-dvi-am install-exec \
-	install-exec-am install-html install-html-am install-info \
-	install-info-am install-man install-pdf install-pdf-am \
-	install-ps install-ps-am install-strip installcheck \
-	installcheck-am installdirs maintainer-clean \
-	maintainer-clean-generic mostlyclean mostlyclean-compile \
-	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
-	tags tags-am uninstall uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:

+ 1 - 0
app/ipmitool-1.8.18/src/plugins/imb/.libs/libintf_imb.la

@@ -0,0 +1 @@
+../libintf_imb.la

Some files were not shown because too many files changed in this diff