Appendix IAccessing Power and Performance DataThis chapter describes how to collect the power and performance data, including powerconsumption, inlet air temperature, and processor utilization of NEC Express server in usualoperation. These are defined in ENERGY STAR® Program Requirements for Computer Serversand must be available to users.The sample program shown below is verified to be run normally on Windows Server® 2008Enterprise 32bit (x86) Edition.POWER CONSUMPTIONRun the following commands to access power consumption readings on BMC (BaseboardManagement Controller) via IPMI (Intelligen Platform Management Interface).Network Function Code: 3Eh (Controller-specific OEM)Command Code: 0Bh (Get Current Sensor Data)Shown below is a sample file created by Visual Basic Script (e.g. Power.vbs).' Start ScriptOption Explicit' Prepare for IPMI DriverDim osvc, oclassDim oinstance, oipmiset osvc = getobject("winmgmts:root\wmi")set oclass = osvc.get("microsoft_ipmi")for each oinstance in osvc.instancesof("microsoft_ipmi")set oipmi = oinstancenext'Format the IPMI command requestDim oinparamsset oinparams = oclass.methods_("requestresponse").inparametersoinparams.networkfunction = &h3e ‘ OEM NetworkFunctionoinparams.lun = 0oinparams.responderaddress = &h20oinparams.command = &h0b ‘ Get Current Sensor Data Commandoinparams.requestdatasize = 0