HPããã®çŽ¹ä»ïŒ ãã®æçš¿ã¯ãå€åäžã«å¿åãåžæããã客æ§ã®1人ã«ãã£ãŠæžãããŸããã ååãšIPã®äžèŽã¯ãã¹ãŠã©ã³ãã ãšèŠãªãããŸãã ã¢ã¹ã¯ã¯ã®ãã¢ã»ã³ã¿ãŒã§ãã€ã§ãåãããšãè©Šãããšãã§ããŸãããåžæã®æ¹ã¯ã³ã¡ã³ãæ¬ã«ãèšå
¥ãã ããããæšæ¶ã ç§ã®ååã¯ãšãã¯ãŒãã§ãããITã€ã³ãã©ã¹ãã©ã¯ãã£ã®ç®¡çãå€éšå§èšããå°ããªäŒç€Ÿã®ã·ã¹ãã 管çè
ã§ãã Ahem ...ãã§ã«åé¡ã®ããã¯ã©ãã®å¿åã®èª°ãã®ããã«èŠããŸããïŒ ããŠã倧äžå€«ãç§ãã¡ã¯æ¬åœã«1ã€ã®èå³æ·±ãåé¡ãæ±ããŠããŸãããä»æ¥ã¯ãã©ã®ããã«åé¡ã«ééããã©ã®ããã«èª€ã£ãŠè§£æ±ºãããã説æããŸãã
ãŸããå°ãã®èæ¯ã ããã«ãé¢ãããã圌ãã¯ã5ã8幎ã»ã©åã«é éã®éã管çããã®ãã©ãã ã楜ããã£ããèŠããŠããŸããïŒ DCã®ãšã³ãžãã¢ã«ã¢ããªã±ãŒã·ã§ã³ãäœæããKVMã®æ¥ç¶ãBIOS / CMOSã®èšå®ããããã¯ãŒã¯ããŒãã®èšå®ãã·ã¹ãã ã®èšå®ãåŸ
æ©ããŸãïŒèª°ããæ¢ã«preseed / kickstartãã¡ã€ã«ãžã§ãã¬ãŒã¿ãäœæããDCã«DHCP / PXEãããã°ãããµãŒããŒïŒã ãããŠããã¹ãŠã®ãµãŒããŒã§ipmiãååŸããŸããïŒæéãçµã€ã«ã€ããŠïŒã ãããæåã¯ã©ãã»ã©å¹žãã§ãããïŒ
ipmitool -U user -P password power up -H XXX ipmitool -U user -P password password bootdev pxe -H XXX ipmitool -U user -P password power reset -H XXX
ãããŠããµãŒããŒã¯ãã§ã«OSãå
¥ããŠããããã§ãã éå±ãªå Žåã¯ãã³ã³ãœãŒã«ã§ãããèŠãã ãã§ãã å¯äžã®æ²ããããšã¯ãBIOSãæåã§æŽæ°ããæ§æããå¿
èŠããã£ãããšã§ãïŒå°ãªããšããHT / VT-dãæå¹ã«ããŸãïŒã ãã®çµæãã€ã³ã¹ããŒã«ãããååæã«å¿ããŠããã¹ãŠã®ãµãŒããŒã®æ§æãç°ãªããŸããã ããŠãããªãã¯æãè¥ã管çè
ãåžžã«ãµãŒããŒãèšå®ããããšãç解ããŠããŸãã
äœãéèŠãªãã®ãèŠã€ãããšããç§ãã¡ã¯æ©ããŠãæã§èšå®ãåãæ¿ããŸããã æ··ä¹±ããå¯äžã®ã ããããäžè¬çã«ãããããã¹ãŠã¯ãç§ãã¡ã«è©±ãèµ·ããåã«ç§ãã¡ã«åã£ããã®ã§ããã
ã¯ã©ã€ã¢ã³ãã®äžéšãããŒããŠã§ã¢äžã«çŽæ¥é
眮ããããšã«æ³šæãã䟡å€ããããŸãïŒããæ£ç¢ºã«ã¯ããã®ããŒããŠã§ã¢äžã®ä»®æ³ãã·ã³äžã«ãããŸãã æ³åããããããã«ãç§ãã¡ã®ã·ã¹ãã ã¯OpenStackã«éåžžã«ãã䌌ãŠããŸãã ãããŠãããæŽããæ¥ã顧客ãç§ãã¡ã®ãšããã«æ¥ãŠãã
ãã©ã€ããŒãã¯ã©ãŠãã§ä»®æ³ãã·ã³ã管çããã·ã¹ãã ãäœãããã«èªåã®ããŒããŠã§ã¢ã§ ããšå°ã
ãŸãã ã ç§ãã¡ã¯åãã§ãå¥çŽãšäœæ¥æ现æžã«çœ²åããåŸã圌ã«åœŒã®æ±ºå®ã瀺ãå§ããŸããã圌ã¯ãã¹ãŠã奜ãã§ããã ç§ã¯ãã¹ãŠã奜ãã§ããããŒãžã£ãŒã¯ãã§ã«ã·ã£ã³ãã³ãéããŠããŸãïŒããããç§ãã¡ã®åºæºã«ããå¥çŽã¯éåžžã«è¯ãã£ããšèšããªããã°ãªããŸããïŒã ãããŠãããã§ã¯ã©ã€ã¢ã³ãã¯ã¢ã€ãã TKã«æãåããŠå°ããŸã-ã
ãããŠããã§ã©ããã£ãŠïŒ ãã ãã®æç¹ã§ã管çè
ã¯åº§ã£ãŠå°æããŠã
ãŸã ãã
ã€ã³ãã³ããªãã©ãã¯ãžã®ã€ã³ã¹ããŒã«ãé»æºãããã¯ãŒã¯ã®æ¥ç¶åŸãæ°ãããµãŒããŒãèªåçã«ã¯ã©ãŠãã«è¿œå ããå¿
èŠããããŸã ãã ç§ãã¡ã¯èŠãå§ããŸãã-èŠãŠãããã«ãµãŒããŒãèšé²ããŸãïŒ1cïŒãããã«ãã®MACã¢ãã¬ã¹ãè¿œå ãïŒdhcpãµãŒããŒãšpxeã管çããããã®èªå·±èšè¿°Webãã§ã€ã¹ïŒãã¹ã¯ãªãããå®è¡ãããããã¯ãŒã¯çµç±ã§ãµãŒããŒãèµ·åããã·ã¹ãã ãã€ã³ã¹ããŒã«ãããŸãïŒç§ãã¡ã¯å®å¿ããŸããïŒå°ãªããšãã·ã¹ãã ãèªåçã«ã€ã³ã¹ããŒã«ãããŠããããšã«æ°ä»ããŠããæ¯ãåãããã®åŸããµãŒããŒãåèµ·åããŠãã£ããããDelããŒã匷ãæŒããŸã...äžè¬çã«ãã¯ã©ã€ã¢ã³ãã®æ
åœè
ã¯ãããèŠãŠãé ããããäŒè©±ãæ©ãåããèãããŸãšããŠèšããŸããã
ããã«èªåçã«ïŒ ããŠã1C以å€ã®ãã¹ãŠãæããŸãããããã¹ãŠåãããã«ãäŒèšå£«ã¯ç§ã§ã¯ãªãããã«ããããŠããªããMACã¢ãã¬ã¹ãæžããå Žæã«ãµãŒããŒã眮ããŸã ãã ãŸãããããŠããã«åœŒã¯å»ããç§ãã¡ããŸã åé¡ã解決ããããšãæãã§ãããšä»ãå ããŸããã
ããããããã€ãã®ããã«ãTORãèªãããšã«ããŸããã ç§ãã¡ã¯ãïŒç§ãã¡ã«ãµã€ã³ããŠãç§ãã¡ã«ãããæžãçŽãã人ã§ã¯ãªããã¿ã¹ã¯ãå®è¡ãã人ãã¡ãïŒåããŠç®ã«ããããããçš®é¡ã®èå³æ·±ãç¹ãèŠã€ããŸããã ããšãã°ãOSããã€ãã¹ãã枩床ç£èŠãé»åæ¶è²»ç£èŠãèªåBIOSã»ããã¢ãããªã©ãèãå§ããŸããã æåã¯ãipmitoolãããããã¹ãŠå®è¡ã§ãããšèããåŸåããããŸããã ããããã圌ãã¯ãããã©ã®ããã«èŠãããã瀺ããŸããã èšå®ãæŽæ°ããæ¹æ³ãã»ã³ãµãŒãç£èŠããæ¹æ³ã«ã€ããŠèããŸãã...äžè¬çã«ãé±æ«ã«ãå¯èœãªéãipmiã®ä»£æ¿æ段ãæ¢ããŠGoogleå
šäœãæ¢çŽ¢ããããšããã¿ã¹ã¯ãææŸããŸããã
ç§ãã¡ã¯æææ¥ã«å°çããŸãã誰ããæ²ãããæã£ãŠããŸãã ãããŠãäžäººã®ç®¡çè
ã座ã£ãŠç¬ã£ãŠããŸãã ç§ãã¡ããã®ãããªçœå®³ã«éã£ããšãã«åœŒããããèªãçç±ã«ã€ããŠã®è³ªåã§åœŒãæ©ãŸããã®ã¯è«ççã§ããã å€æããããã«ã圌ã¯ãããèµ·ãã£ãã®ã§ã¯ãªããRedfishãµãŒããŒç®¡çä»æ§v 1.0ïŒ
ãããèªãã§ãã ãã ïŒã
èªãã ããšãããããã£ãã§ãã 圌ãã¯ãã¹ãŠã声ãåºããŠäžç·ã«èªã¿ãæã£ãããšããããŸããã Redfishã¯ãŸãã«ç§ãã¡ãå¿
èŠãšããŠãããã®ã§ããããšãããããŸããã 圌ãã¯ãããŒãžã£ãŒãéããRedfishãå®è£
ãããŠããããŒããŠã§ã¢ãèŠã€ããããã«ãã¹ãŠã®ãµãŒããŒã¡ãŒã«ãŒã«é»è©±ããããŸããã 圌ãã¯1æéåŸã«æ¥ãŠãç¬ããå
¥ãå£ã®ç®±ãæããŠãã
ãã¹ãŠãèŠã€ããããšèšã
ãŸã ã å®éããã®ããã¯ã¹ã¯HP Proliant Gen9ã®ããã¯ã¹ã§ããããšãå€æããŸããã ç§ãã¡ã¯ãµãŒããŒãèŠã€ããå®éšå®€ã«è¿ããŸããïŒãããŠãDCã«ããã«ã¢ã¯ã»ã¹ã§ããææ°ã®æªæ¢çŽ¢ãµãŒããŒãæšæž¬ãã人ãããŸã...ïŒãHP REST APIïŒHPãµãŒããŒã§ã®Redfishã®å®è£
ïŒã«ã€ããŠç¥ãå§ããŸããã
ç§ãã¡ã¯ç®¡çè
ã§ããããïŒããã¯åŸã«pythonistã«ãã£ãŠäžãããã圌ã¯ãã¹ãŠãæžããŠçŸããWebã€ã³ã¿ãŒãã§ã€ã¹ãäœæããŸããïŒãæåã«ããããšã¯å¿
èŠãªããšãããsh-nicknamesãæžãããšã§ããã ãã¡ãããã³ã³ãœãŒã«curlã䜿çšããŠRest APIã«ã¢ã¯ã»ã¹ãããšã³ãŒçµç±ã§JSONãçæããããšã¯ãå§ãããŸããïŒãŸããå°ãªããšãåŸã§èª°ã«ã衚瀺ããªãïŒããã ããHP ProLiant REST APIãšã®çžäºäœçšã®äŸãå
±æã§ããŸãïŒç¹ã«ä»£è¡šè
èªèº«ããïŒ HPããããã«ã€ããŠå°ããããŸããïŒã
å®éãããã«ã¯å€ãã®å¯èœæ§ããããŸããããã¥ã¡ã³ãã«ã¯ããªããžã§ã¯ãã®ãªã¹ãã®200ããŒãžãšãããã®ç°¡åãªèª¬æããããŸãã æŠå¿µå®èšŒãšããŠãäž»ãªã¿ã¹ã¯ãéæããããšããæåã®ããšã ãã¡ããããããã®ããã€ãã¯IPMIãä»ããŠå®è¡ã§ããŸããã1ã€ã®ããŒã«ãã€ãŸãAPIã䜿çšããããšã«ããŸããã
ãŸããïŒã©ãã¯ã«ãµãŒããŒãæ¥ç¶ããåŸãHP iLOãIPã¢ãã¬ã¹ãåä¿¡ããåŸïŒããã¹ãŠã®BIOSèšå®ãèŠå®ããŸãã
# echo '{"AcpiRootBridgePxm":"Enabled","AcpiRtcSupport":"Disabled","AcpiSlit":"Enabled","AdjSecPrefetch":"Enabled","AdminEmail":"","AdminName":"","AdminOtherInfo":"","AdminPassword":"","AdminPhone":"","AdvancedMemProtection":"AdvancedEcc","AsrStatus":"Enabled","AsrTimeoutMinutes":"10","AssetTagProtection":"Unlocked","AttributeRegistry":"HpBiosAttributeRegistryP86.1.1.0","AutoPowerOn":"RestoreLastState","BootMode":"LegacyBios","BootOrderPolicy":"RetryIndefinitely","ChannelInterleaving":"Enabled","CollabPowerControl":"Enabled","ConsistentDevNaming":"LomsOnly","CustomPostMessage":"","DcuIpPrefetcher":"Enabled","DcuStreamPrefetcher":"Enabled","Description":"This is the Platform/BIOS Configuration (RBSU) Current Settings","Dhcpv4":"Enabled","DynamicPowerCapping":"Auto","DynamicPowerResponse":"Fast","EmbNicEnable":"Enabled","EmbSata1Enable":"Enabled","EmbSata2Enable":"Enabled","EmbVideoConnection":"Auto","EmbeddedDiagnostics":"Enabled","EmbeddedDiagsMode":"Auto","EmbeddedSata":"Raid","EmbeddedUefiShell":"Enabled","EmsConsole":"Disabled","EnergyPerfBias":"BalancedPerf","EraseUserDefaults":"No","ExtendedAmbientTemp":"Disabled","ExtendedMemTest":"Disabled","F11BootMenu":"Enabled","FanFailPolicy":"Shutdown","FanInstallReq":"EnableMessaging","HwPrefetcher":"Enabled","IntelDmiLinkFreq":"Auto","IntelPerfMonitoring":"Disabled","IntelProcVtd":"Enabled","IntelQpiFreq":"Auto","IntelQpiPowerManagement":"Enabled","IntelTxt":"Disabled","IntelligentProvisioning":"Enabled","Ipv4Address":"0.0.0.0","Ipv4Gateway":"0.0.0.0","Ipv4PrimaryDNS":"0.0.0.0","Ipv4SecondaryDNS":"0.0.0.0","Ipv4SubnetMask":"0.0.0.0","MaxMemBusFreqMHz":"Auto","MaxPcieSpeed":"MaxSupported","MemFastTraining":"Enabled","MinProcIdlePkgState":"C6Retention","MinProcIdlePower":"C6","MixedPowerSupplyReportngi":"Enabled","Modified":"2015-02-12T20:16:59+00:00","Name":"BIOS Current Settings","NetworkBootRetry":"Enabled","NicBoot1":"NetworkBoot","NicBoot2":"Disabled","NmiDebugButton":"Enabled","NodeInterleaving":"Disabled","OldAdminPassword":"","OldPowerOnPassword":"","PciBusPadding":"Enabled","PostF1Prompt":"Delayed20Sec","PowerButton":"Enabled","PowerOnDelay":"None","PowerOnLogo":"Enabled","PowerOnPassword":"","PowerProfile":"BalancedPowerPerf","PowerRegulator":"DynamicPowerSavings","PreBootNetwork":"EmbNic","ProcCoreDisable":0,"ProcHyperthreading":"Enabled","ProcNoExecute":"Enabled","ProcTurbo":"Enabled","ProcVirtualization":"Disabled","ProcX2Apic":"Enabled","ProductId":"777424-AA1","QpiBandwidthOpt":"Balanced","QpiSnoopConfig":"Standard","RedundantPowerSupply":"BalancedMode","RemovableFlashBootSeq":"ExternalKeysFirst","RestoreDefaults":"No","RestoreManufacturingDefaults":"No","RomSelection":"CurrentRom","SataSecureErase":"Disabled","SaveUserDefaults":"No","SecureBoot":"Disabled","SerialConsoleBaudRate":"115200","SerialConsoleEmulation":"Vt100Plus","SerialConsolePort":"Auto","SerialNumber":"8CW4340081","ServerAssetTag":"","ServerName":"","ServerOtherInfo":"","ServerPrimaryOs":"","ServiceEmail":"","ServiceName":"","ServiceOtherInfo":"","ServicePhone":"","SettingsResult":{"ETag":"","Messages":[{"MessageArgs":[],"MessageID":"Base.1.0:Success"}],"Time":""},"Sriov":"Enabled","ThermalConfig":"OptimalCooling","ThermalShutdown":"Enabled","TimeZone":"Utc0","TpmBinding":"Disabled","TpmOperation":"Disable","TpmState":"NotPresent","TpmType":"NoTpm","TpmVisibility":"Visible","Type":"HpBios.1.0.0","UefiOptimizedBoot":"Enabled","UefiPxeBoot":"Auto","UefiShellBootOrder":"Disabled","UefiShellStartup":"Disabled","UefiShellStartupLocation":"AttachedMedia","UefiShellStartupUri":"","UrlBootFile":"","Usb3Mode":"Auto","UsbBoot":"Enabled","UsbControl":"UsbEnabled","UtilityLang":"English","VideoOptions":"BothVideoEnabled","VirtualInstallDisk":"Disabled","VirtualSerialPort":"Com2Irq3","WakeOnLan":"Enabled","links":{"BaseConfigs":{"href":"/rest/v1/systems/1/bios/BaseConfigs"},"Boot":{"href":"/rest/v1/systems/1/bios/Boot"},"Mappings":{"href":"/rest/v1/systems/1/bios/Mappings"},"Settings":{"href":"/rest/v1/systems/1/bios/Settings"}}}' | curl -v -k -X PATCH https://Administrator:Password@192.168.2.250/rest/v1/systems/1/Bios/Settings -H "Content-Type: application/json" --data-binary @- ; echo
é£ç©ã管çããããšãåŠã³ãŸãã ããã¿ã³ã§ãåèµ·åããŸãã
# echo '{"Action":"Reset","ResetType":"ForceRestart"}' | curl -v -k -X POST https://Administrator:Password@192.168.2.250/rest/v1/systems/1 -H "Content-Type: application/json" --data-binary @- ; echo
ãã³ã³ã»ã³ãããã±ãŒãã«ãåŒãåºããŸããïŒ
# echo '{"Action":"Reset","ResetType":"ForceOff"}' | curl -v -k -X POST https://Administrator:Password@192.168.2.250/rest/v1/systems/1 -H "Content-Type: application/json" --data-binary @- ; echo
ãµãŒããŒã®é»æºãå
¥ããŸãã
# echo '{"Action":"Reset","ResetType":"On"}' | curl -v -k -X POST https://Administrator:Password@192.168.2.250/rest/v1/systems/1 -H "Content-Type: application/json" --data-binary @- ; echo
ãé»æºãã¿ã³ãæŒããããã«ãšã³ãžãã¢ãéããŸãïŒ
# echo '{"Action":"Reset","ResetType":"PushPowerButton"}' | curl -v -k -X POST https://Administrator:D3BFF4AE@192.168.2.250/rest/v1/systems/1 -H "Content-Type: application/json" --data-binary @- ; echo
ãµãŒããŒã«åœŒã誰ã§ããããå°ããŸãã
# curl -v -k -X GET https://Administrator:Password@192.168.2.250/rest/v1 -H "Content-Type: application/json" {"Name":"HP RESTful Root Service","Oem":{"Hp":{"Manager":[{"DefaultLanguage":"en","FQDN":"ILO8CW4340081.","HostName":"ILO8CW4340081","Languages":[{"Language":"en","TranslationName":"English","Version":"2.02"}],"ManagerFirmwareVersion":"2.02","ManagerType":"iLO 4"}],"Sessions":{"CertCommonName":"ILO8CW4340081","KerberosEnabled":false,"LDAPAuthLicenced":false,"LDAPEnabled":false,"LocalLoginEnabled":true,"LoginFailureDelay":0,"LoginHint":{"Hint":"POST to /Sessions to login using the following JSON object:","HintPOSTData":{"Password":"password","UserName":"username"}},"SecurityOverride":true,"ServerName":""},"Type":"HpiLOServiceExt.0.9.5","links":{"Providers":{"href":"/rest/v1/Providers"}}}},"ServiceVersion":"0.9.5","Time":"2015-05-06T18:01:55Z","Type":"ServiceRoot.0.9.5","links":{"AccountService":{"href":"/rest/v1/AccountService"},"Chassis":{"href":"/rest/v1/Chassis"},"Managers":{"href":"/rest/v1/Managers"},"Registries":{"href":"/rest/v1/Registries"},"Schemas":{"href":"/rest/v1/Schemas"},"Sessions":{"href":"/rest/v1/Sessions"},"Systems":{"href":"/rest/v1/Systems"},"self":{"href":"/rest/v1/root"}}}
åããã³ã§PATCHãªã¯ãšã¹ãã䜿çšãããšãiLoå
ã®ãµãŒããŒæ
å ±ãå€æŽã§ããŸãã
ãµãŒããŒã®MACã¢ãã¬ã¹ã確èªããŸãããïŒããã§ããå¥ã®VLANã§èŠæ
£ããªãiLOãèŠã€ãã£ãå ŽåãæåŸã«DHCPãµãŒããŒèªäœãæ°ãããµãŒããŒã®ã€ã³ãã³ããªãååŸããŸãããiLOã®åçã¢ãã¬ã¹ãæäŸãã次ã«éçã¢ãã¬ã¹ã®èšé²ãéå§ããŸããµãŒããŒããã³iLoã€ã³ã¿ãŒãã§ã€ã¹ã®ãããã¯ãŒã¯ã«ãŒãïŒïŒ
# curl -v -k -X GET https://Administrator:Password@192.168.2.250/rest/v1/systems/1 -H "Content-Type: application/json" {"AvailableActions":[{"Action":"Reset","Capabilities":[{"AllowableValues":["On","ForceOff","ForceRestart","Nmi","PushPowerButton"],"PropertyName":"ResetType"}]}],"Bios":{"Current":{"VersionString":"P86 v1.30 (09/04/2014)"}},"Boot":{"BootSourceOverrideEnabled":"Disabled","BootSourceOverrideSupported":["None","Floppy","Cd","Hdd","Usb","Utilities","Diags","BiosSetup","Pxe","UefiShell","UefiTarget"],"BootSourceOverrideTarget":"None","UefiTargetBootSourceOverride":"None","UefiTargetBootSourceOverrideSupported":["NIC.LOM.1.1.IPv4","NIC.LOM.1.1.IPv6"]},"Description":"Computer System View","HostCorrelation":{"HostMACAddress":["14:58:d0:d3:20:8e","14:58:d0:d3:20:8f"],"HostName":"","IPAddress":[""]},"IndicatorLED":"Off","Manufacturer":"HP","Memory":{"TotalSystemMemoryGB":32},"Model":"ProLiant DL120 Gen9","Name":"Computer System","Oem":{"Hp":{"AvailableActions":[{"Action":"PowerButton","Capabilities":[{"AllowableValues":["Press","PressAndHold"],"PropertyName":"PushType"},{"AllowableValues":["/Oem/Hp"],"PropertyName":"Target"}]}],"Bios":{"Backup":{"Date":"v1.30 (09/04/2014)","Family":"P86","VersionString":"P86 v1.30 (09/04/2014)"},"Bootblock":{"Date":"","Family":"P86","VersionString":"P86 "},"Current":{"Date":"09/04/2014","Family":"P86","VersionString":"P86 v1.30 (09/04/2014)"},"UefiClass":2},"PowerAllocationLimit":900,"PowerAutoOn":"Restore","PowerOnDelay":"Minimum","PowerRegulatorMode":"Dynamic","PowerRegulatorModesSupported":["OSControl","Dynamic","Max","Min"],"Type":"HpComputerSystemExt.0.10.0","VirtualUUID":null,"links":{"BIOS":{"href":"/rest/v1/systems/1/bios"},"PCIDevices":{"href":"/rest/v1/Systems/1/PCIDevices"},"PCISlots":{"href":"/rest/v1/Systems/1/PCISlots"},"SecureBoot":{"href":"/rest/v1/Systems/1/SecureBoot"}}}},"Power":"Off","Processors":{"Count":1,"ProcessorFamily":"Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz"},"SKU":"777424-AA1","SerialNumber":"8CW4340081","Status":{"Health":"OK","State":"Disabled"},"SystemType":"Physical","Type":"ComputerSystem.0.9.5","UUID":"34373737-3432-4338-5734-333430303831","links":{"Chassis":[{"href":"/rest/v1/Chassis/1"}],"Manager":[{"href":"/rest/v1/Managers/1"}],"self":{"href":"/rest/v1/Systems/1"}}}
åã®JSONããCPUã¢ãã«ã䜿çšããŠã¡ã¢ãªéãåŒãåºããåŸãéçºè
ã¯1Cãšçµ±åãããµãŒããŒã¯èªèº«ã«é¢ããããŒã¿ãéä¿¡ããŸããã ããã§ã¯ãå€ãïŒãŸãã¯åã«ã¯ã©ã¹ã¿ãŒãç°ãªãïŒããŒãžã§ã³ãåªãBIOSããŒãžã§ã³ã決å®ããŸããã
REST APIã䜿çšããŠããé»åã¡ããªãã¯ã®èªã¿åãå€ãååŸã§ããŸãïŒæ®å¿µãªãããiLOã©ã€ã»ã³ã¹ã®ãã¹ãŠã®ãã¬ãã«ãã§ã¯ãããŸããïŒã
# curl -v -k -X GET https://Administrator:Password@192.168.2.250/rest/v1/chassis/1/PowerMetrics -H "Content-Type: application/json"
ãŸãããµãŒããŒã®ç¶æ
ãè¡šãäœããã®äžæ°å³ãªãã³ãèŠã€ããŸãã-ãã¡ã³ã®é床ã枩床ãããã³ãµãŒããŒå
ã®ããŸããŸãªéçã®ç¶æ
ã
# curl -v -k -X GET https://Administrator:Password@192.168.1.235/rest/v1/Chassis/1/ThermalMetrics -H "Content-Type: application/json" {"Fans":[{"CurrentReading":33,"FanName":"Fan 1","Oem":{"Hp":{"Location":"System","Type":"HpServerFan.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Percent"},{"CurrentReading":33,"FanName":"Fan 2","Oem":{"Hp":{"Location":"System","Type":"HpServerFan.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Percent"},{"CurrentReading":33,"FanName":"Fan 3","Oem":{"Hp":{"Location":"System","Type":"HpServerFan.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Percent"},{"CurrentReading":33,"FanName":"Fan 4","Oem":{"Hp":{"Location":"System","Type":"HpServerFan.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Percent"},{"CurrentReading":33,"FanName":"Fan 5","Oem":{"Hp":{"Location":"System","Type":"HpServerFan.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Percent"},{"CurrentReading":33,"FanName":"Fan 6","Oem":{"Hp":{"Location":"System","Type":"HpServerFan.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Percent"}],"Name":"ThermalMetrics","Temperatures":[{"Context":"Ambient","CurrentReading":21,"LowerThresholdCritical":46,"LowerThresholdNonCritical":42,"Name":"01-Inlet Ambient","Oem":{"Hp":{"LocationXmm":11,"LocationYmm":0,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"CPU","CurrentReading":40,"LowerThresholdCritical":0,"LowerThresholdNonCritical":70,"Name":"02-CPU 1","Oem":{"Hp":{"LocationXmm":7,"LocationYmm":9,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"CPU","CurrentReading":40,"LowerThresholdCritical":0,"LowerThresholdNonCritical":70,"Name":"03-CPU 2","Oem":{"Hp":{"LocationXmm":12,"LocationYmm":9,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"GPU","CurrentReading":27,"LowerThresholdCritical":0,"LowerThresholdNonCritical":87,"Name":"04-P1 DIMM 1-2","Oem":{"Hp":{"LocationXmm":10,"LocationYmm":10,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"GPU","CurrentReading":0,"LowerThresholdCritical":0,"LowerThresholdNonCritical":87,"Name":"05-P1 DIMM 3-4","Oem":{"Hp":{"LocationXmm":5,"LocationYmm":10,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"State":"Absent"},"Units":"Celsius"},{"Context":"GPU","CurrentReading":28,"LowerThresholdCritical":0,"LowerThresholdNonCritical":87,"Name":"06-P2 DIMM 1-2","Oem":{"Hp":{"LocationXmm":14,"LocationYmm":10,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"GPU","CurrentReading":0,"LowerThresholdCritical":0,"LowerThresholdNonCritical":87,"Name":"07-P2 DIMM 3-4","Oem":{"Hp":{"LocationXmm":11,"LocationYmm":10,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"State":"Absent"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":0,"LowerThresholdCritical":0,"LowerThresholdNonCritical":60,"Name":"08-HD Max","Oem":{"Hp":{"LocationXmm":4,"LocationYmm":2,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"State":"Absent"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":41,"LowerThresholdCritical":0,"LowerThresholdNonCritical":105,"Name":"09-Chipset","Oem":{"Hp":{"LocationXmm":7,"LocationYmm":13,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":40,"LowerThresholdCritical":0,"LowerThresholdNonCritical":0,"Name":"10-P/S 1","Oem":{"Hp":{"LocationXmm":1,"LocationYmm":14,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":0,"LowerThresholdCritical":0,"LowerThresholdNonCritical":0,"Name":"11-P/S 2","Oem":{"Hp":{"LocationXmm":2,"LocationYmm":14,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"State":"Absent"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":30,"LowerThresholdCritical":120,"LowerThresholdNonCritical":115,"Name":"12-VR P1","Oem":{"Hp":{"LocationXmm":7,"LocationYmm":8,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":30,"LowerThresholdCritical":120,"LowerThresholdNonCritical":115,"Name":"13-VR P2","Oem":{"Hp":{"LocationXmm":12,"LocationYmm":8,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":26,"LowerThresholdCritical":120,"LowerThresholdNonCritical":115,"Name":"14-VR P1 Zone","Oem":{"Hp":{"LocationXmm":7,"LocationYmm":7,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":25,"LowerThresholdCritical":120,"LowerThresholdNonCritical":115,"Name":"15-VR P2 Zone","Oem":{"Hp":{"LocationXmm":12,"LocationYmm":7,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":26,"LowerThresholdCritical":120,"LowerThresholdNonCritical":115,"Name":"16-VR P1 Mem","Oem":{"Hp":{"LocationXmm":8,"LocationYmm":7,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":26,"LowerThresholdCritical":120,"LowerThresholdNonCritical":115,"Name":"17-VR P2 Mem","Oem":{"Hp":{"LocationXmm":13,"LocationYmm":7,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":0,"LowerThresholdCritical":0,"LowerThresholdNonCritical":60,"Name":"18-Storage Batt","Oem":{"Hp":{"LocationXmm":0,"LocationYmm":7,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"State":"Absent"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":30,"LowerThresholdCritical":85,"LowerThresholdNonCritical":80,"Name":"19-iLO Zone","Oem":{"Hp":{"LocationXmm":12,"LocationYmm":13,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":30,"LowerThresholdCritical":105,"LowerThresholdNonCritical":100,"Name":"20-System Board","Oem":{"Hp":{"LocationXmm":7,"LocationYmm":14,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":28,"LowerThresholdCritical":105,"LowerThresholdNonCritical":100,"Name":"21-System Board","Oem":{"Hp":{"LocationXmm":11,"LocationYmm":13,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":24,"LowerThresholdCritical":127,"LowerThresholdNonCritical":126,"Name":"22-P/S Zone","Oem":{"Hp":{"LocationXmm":4,"LocationYmm":9,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":28,"LowerThresholdCritical":0,"LowerThresholdNonCritical":126,"Name":"23-System Board","Oem":{"Hp":{"LocationXmm":4,"LocationYmm":15,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":29,"LowerThresholdCritical":0,"LowerThresholdNonCritical":126,"Name":"24-System Board","Oem":{"Hp":{"LocationXmm":9,"LocationYmm":15,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":29,"LowerThresholdCritical":0,"LowerThresholdNonCritical":126,"Name":"25-System Board","Oem":{"Hp":{"LocationXmm":10,"LocationYmm":15,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"Expansion Bay","CurrentReading":0,"LowerThresholdCritical":0,"LowerThresholdNonCritical":100,"Name":"26-PCI 1","Oem":{"Hp":{"LocationXmm":4,"LocationYmm":13,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"State":"Absent"},"Units":"Celsius"},{"Context":"Expansion Bay","CurrentReading":0,"LowerThresholdCritical":0,"LowerThresholdNonCritical":100,"Name":"27-PCI 2","Oem":{"Hp":{"LocationXmm":10,"LocationYmm":13,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"State":"Absent"},"Units":"Celsius"},{"Context":"Expansion Bay","CurrentReading":0,"LowerThresholdCritical":0,"LowerThresholdNonCritical":100,"Name":"28-PCI 3","Oem":{"Hp":{"LocationXmm":10,"LocationYmm":13,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"State":"Absent"},"Units":"Celsius"},{"Context":"Expansion Bay","CurrentReading":26,"LowerThresholdCritical":0,"LowerThresholdNonCritical":126,"Name":"29-PCI 1 Zone","Oem":{"Hp":{"LocationXmm":4,"LocationYmm":15,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"Expansion Bay","CurrentReading":24,"LowerThresholdCritical":0,"LowerThresholdNonCritical":126,"Name":"30-PCI 2 Zone","Oem":{"Hp":{"LocationXmm":10,"LocationYmm":15,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"Expansion Bay","CurrentReading":25,"LowerThresholdCritical":0,"LowerThresholdNonCritical":126,"Name":"31-PCI 3 Zone","Oem":{"Hp":{"LocationXmm":10,"LocationYmm":15,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"Health":"OK","State":"Enabled"},"Units":"Celsius"},{"Context":"Expansion Bay","CurrentReading":0,"LowerThresholdCritical":0,"LowerThresholdNonCritical":100,"Name":"32-LOM Card","Oem":{"Hp":{"LocationXmm":10,"LocationYmm":13,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"State":"Absent"},"Units":"Celsius"},{"Context":"Expansion Bay","CurrentReading":0,"LowerThresholdCritical":0,"LowerThresholdNonCritical":126,"Name":"33-I/O Board","Oem":{"Hp":{"LocationXmm":10,"LocationYmm":15,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"State":"Absent"},"Units":"Celsius"},{"Context":"System Board","CurrentReading":0,"LowerThresholdCritical":0,"LowerThresholdNonCritical":100,"Name":"34-LOM","Oem":{"Hp":{"LocationXmm":6,"LocationYmm":14,"Type":"HpSeaOfSensors.0.9.5"}},"Status":{"State":"Absent"},"Units":"Celsius"}],"Type":"ThermalMetrics.0.9.5","links":{"self":{"href":"/rest/v1/Chassis/1/ThermalMetrics"}}}
ãŸãããµãŒããŒå
šäœã®ã¹ããŒã¿ã¹ïŒOK /倱æïŒãšçŸåšäœãããŠããã®ãïŒãã®äŸã§ã¯èªã¿èŸŒã¿äžïŒã瀺ããªããžã§ã¯ããèŠã€ããŸããã
# curl -v -k -X GET https://Administrator:Password@192.168.1.235/rest/v1/Chassis/1 -H "Content-Type: application/json" ... "Status":{"Health":"OK","State":"Starting"} ...
äžè¬çã«ãæçµçã«sh-nickãäœæããŠéçºè
ã«æž¡ããŸããã 圌ã¯ç§ãã¡ã«ç¬ããç§ãã¡ã¯åœŒãforããæ ¹ãäžãããšè
ãã...ãããã圌ã¯RedfishïŒããã³HP REST APIïŒãä»ããŠãµãŒããŒãè¿œå ããã³ç®¡çã§ããã¯ã©ãŠãã«ã¢ãžã¥ãŒã«ãæžããã ãŸããç§ãã¡ã¯æçµçã«æ³šæãå®äºããŸããã
ããããããã¯åæšäºå
¥ããæéã§ãã ãã®ã¹ããŒãªãŒå
šäœã§äž»èŠãªåœ¹å²ãæããã人ã
ã«ã€ããŠè©±ããŸãããã
- ãã¡ããã ProLiant DL60 Gen9ãµãŒããŒã«æãéèŠãªåœ¹å²ãå²ãåœãŠãŸã ã
- ãŸãã hprestãŠãŒãã£ãªãã£ã®ãããã§ããã®straceãã³ãã¯ãäžè¬çã«ã³ã³ãœãŒã«ãããã®ããã¯ã¹ã«ã¢ã¯ã»ã¹ããåŽãç解ããã®ã«åœ¹ç«ã¡ãŸããã
- HP Restfull APIããã¥ã¡ã³ã
- Python-ProLiant-SDK㯠ãããã«ã¯èŠã€ãããŸããã§ããããREST APIã®äžã«éçšãœãªã¥ãŒã·ã§ã³ãäœæããã®ã«åœ¹ç«ã¡ãŸããã
- DMTF.org Redfishä»æ§ã®èª¬æ-HPã䞻匵ããããã«ãHP ProLiantçšã®ç¬èªã®REST APIã®éçºã«å€§éšåãåºã¥ããŠããŸã
- ãããŠããã¡ãããRedfishããµããŒããããµãŒããŒãæåã«çºå£²ããHPã¯ããããã«æè¬ããŠããŸãã
ãæž
èŽããããšãããããŸããïŒ