HPE 在Gen9服务器的iLO中加入了 RESTful API ,可以用来批量修改服务器设置。
HPE官方提供的 HPE RESTful Interface Tool (以下简称tool) http://www.hpe.com/info/resttool

演示使用的服务器为 HPE BL660c Gen9 (E5 V4 CPU)
有数百台服务器需要更改如下BIOS设置
System Configuration→BIOS/Platform Configuration(RBSU)→Power Management Options→Power Profile→Maximum Performance
System Configuration→BIOS/Platform Configuration(RBSU)→Power Management Options→Advanced Power Management Options→ Collaborative Power Control→ disabled
官方提供的tool登录慢效率低 iLO的REST API支持使用curl发送数据
查询当前BIOS设置
登录的用户需要 Administer User Accounts权限
返回的数据为JSON格式 可以用python -m json.tool处理
curl -s --insecure -u [username]:[password] -L https://[iLO IP]/rest/v1/Systems/1/Bios|python -m json.tool


{"AcpiRootBridgePxm": "Enabled", "AcpiSlit": "Enabled", "AdjSecPrefetch": "Enabled", "AdminEmail": "", "AdminName": "", "AdminOtherInfo": "", "AdminPassword": null, "AdminPhone": "", "AdvancedMemProtection": "AdvancedEcc", "AsrStatus": "Disabled", "AsrTimeoutMinutes": "10", "AssetTagProtection": "Locked", "AttributeRegistry": "HpBiosAttributeRegistryI38.1.1.52", "AutoPowerOn": "AlwaysPowerOn", "BootMode": "Uefi", "BootOrderPolicy": "RetryIndefinitely", "ChannelInterleaving": "Enabled", "CollabPowerControl": "Enabled", "ConsistentDevNaming": "LomsOnly", "CustomPostMessage": "", "DaylightSavingsTime": "Disabled", "DcuIpPrefetcher": "Enabled", "DcuStreamPrefetcher": "Enabled", "Description": "This is the Platform/BIOS Configuration (RBSU) Current Settings", "Dhcpv4": "Enabled", "DynamicPowerResponse": "Fast", "EmbSasEnable": "Enabled", "EmbSata1Enable": "Enabled", "EmbSata2Enable": "Enabled", "EmbVideoConnection": "Auto", "EmbeddedDiagnostics": "Enabled", "EmbeddedDiagsMode": "Auto", "EmbeddedSata": "Ahci", "EmbeddedSerialPort": "Com2Irq3", "EmbeddedUefiShell": "Enabled", "EmbeddedUserPartition": "Disabled", "EmsConsole": "Com1Irq4", "EnergyPerfBias": "MaxPerf", "EraseUserDefaults": "No", "ExtendedAmbientTemp": "Disabled", "ExtendedMemTest": "Disabled", "F11BootMenu": "Enabled", "FCScanPolicy": "CardConfig", "FanFailPolicy": "Shutdown", "FanInstallReq": "EnableMessaging", "FlexLom1Enable": "Enabled", "FlexLom2Enable": "Enabled", "HwPrefetcher": "Enabled", "IntelDmiLinkFreq": "Auto", "IntelNicDmaChannels": "Enabled", "IntelPerfMonitoring": "Disabled", "IntelProcVtd": "Enabled", "IntelQpiFreq": "Auto", "IntelQpiPowerManagement": "Disabled", "IntelligentProvisioning": "Enabled", "InternalSDCardSlot": "Enabled", "IoNonPostedPrefetching": "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", "Ipv6Duid": "Auto", "MaxMemBusFreqMHz": "Auto", "MaxPcieSpeed": "MaxSupported", "MemFastTraining": "Enabled", "MinProcIdlePkgState": "NoState", "MinProcIdlePower": "NoCStates", "MixedPowerSupplyReporting": "Enabled", "Modified": "2018-03-12T08:45:27+00:00", "Name": "BIOS Current Settings", "NetworkBootRetry": "Enabled", "NicBoot1": "NetworkBoot", "NicBoot10": "Disabled", "NicBoot11": "Disabled", "NicBoot12": "Disabled", "NicBoot13": "Disabled", "NicBoot14": "Disabled", "NicBoot15": "Disabled", "NicBoot16": "Disabled", "NicBoot2": "Disabled", "NicBoot3": "Disabled", "NicBoot4": "Disabled", "NicBoot5": "Disabled", "NicBoot6": "Disabled", "NicBoot7": "Disabled", "NicBoot8": "Disabled", "NicBoot9": "NetworkBoot", "NmiDebugButton": "Enabled", "NodeInterleaving": "Disabled", "NumaGroupSizeOpt": "Clustered", "OldAdminPassword": null, "OldPowerOnPassword": null, "PciBusPadding": "Enabled", "PciSlot1Enable": "Enabled", "PciSlot2Enable": "Enabled", "PcieExpressEcrcSupport": "Disabled", "PostF1Prompt": "Disabled", "PowerButton": "Enabled", "PowerOnLogo": "Enabled", "PowerOnPassword": null, "PowerProfile": "BalancedPowerPerf", "PowerRegulator": "StaticHighPerf", "PreBootNetwork": "Auto", "ProcAes": "Enabled", "ProcCoreDisable": 0, "ProcHyperthreading": "Enabled", "ProcNoExecute": "Enabled", "ProcTurbo": "Enabled", "ProcVirtualization": "Enabled", "ProcX2Apic": "Enabled", "ProductId": "Q1C54A", "QpiBandwidthOpt": "Balanced", "QpiSnoopConfig": "Standard", "RemovableFlashBootSeq": "ExternalKeysFirst", "RestoreDefaults": "No", "RestoreManufacturingDefaults": "No", "RomSelection": "CurrentRom", "SataSecureErase": "Disabled", "SaveUserDefaults": "No", "SecureBootStatus": "Disabled", "SerialConsoleBaudRate": "115200", "SerialConsoleEmulation": "Vt100Plus", "SerialConsolePort": "Auto", "SerialNumber": "********", "ServerAssetTag": "", "ServerName": "", "ServerOtherInfo": "", "ServerPrimaryOs": "", "ServiceEmail": "", "ServiceName": "", "ServiceOtherInfo": "", "ServicePhone": "", "SettingsResult": {"ETag": "877AAC20", "Messages": [{"MessageArgs": ["NicBoot4"], "MessageID": "Base.1.0:PropertyUnknown"}, {"MessageArgs": ["NicBoot8"], "MessageID": "Base.1.0:PropertyUnknown"}, {"MessageArgs": ["NicBoot15"], "MessageID": "Base.1.0:PropertyUnknown"}, {"MessageArgs": ["NicBoot3"], "MessageID": "Base.1.0:PropertyUnknown"}, {"MessageArgs": ["NicBoot5"], "MessageID": "Base.1.0:PropertyUnknown"}, {"MessageArgs": ["NicBoot16"], "MessageID": "Base.1.0:PropertyUnknown"}, {"MessageArgs": ["NicBoot14"], "MessageID": "Base.1.0:PropertyUnknown"}, {"MessageArgs": ["NicBoot12"], "MessageID": "Base.1.0:PropertyUnknown"}, {"MessageArgs": ["NicBoot11"], "MessageID": "Base.1.0:PropertyUnknown"}, {"MessageArgs": ["NicBoot13"], "MessageID": "Base.1.0:PropertyUnknown"}, {"MessageArgs": ["NicBoot6"], "MessageID": "Base.1.0:PropertyUnknown"}, {"MessageArgs": ["NicBoot7"], "MessageID": "Base.1.0:PropertyUnknown"}, {"MessageArgs": [], "MessageID": "Base.1.0:Success"}], "Time": "1987-03-12T08:41:55+00:00"}, "Slot1NicBoot1": "NetworkBoot", "Slot1NicBoot2": "Disabled", "Slot1NicBoot3": "Disabled", "Slot1NicBoot4": "Disabled", "Sriov": "Enabled", "ThermalConfig": "OptimalCooling", "ThermalShutdown": "Enabled", "TimeFormat": "Utc", "TimeZone": "Utc0", "TpmState": "NotPresent", "TpmType": "NoTpm", "Type": "HpBios.1.2.0", "UefiOptimizedBoot": "Enabled", "UefiPxeBoot": "Auto", "UefiShellBootOrder": "Disabled", "UefiShellStartup": "Disabled", "UefiShellStartupLocation": "Auto", "UefiShellStartupUrl": "", "UrlBootFile": "", "Usb3Mode": "Auto", "UsbBoot": "Enabled", "UsbControl": "UsbEnabled", "UtilityLang": "English", "VirtualInstallDisk": "Disabled", "VirtualSerialPort": "Com1Irq4", "VlanControl": "Disabled", "VlanId": 0, "VlanPriority": 0, "WakeOnLan": "Disabled", "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"}, "iScsi": {"href": "/rest/v1/systems/1/bios/iScsi"}, "self": {"href": "/rest/v1/systems/1/bios"}}
}

转载于:https://blog.51cto.com/gregdefanhua/2089399

HPE Gen9 使用 RESTful API 管理服务器相关推荐

  1. Backbone的RESTFUL API 解释

    RESTFUL API 从服务器获取模型:collection.fetch();//发送GET请求 地址为collection.url; 存取模型至服务器: model.save();//发送PUT请 ...

  2. node aws 内存溢出_如何使用Node.js和AWS快速创建无服务器RESTful API

    node aws 内存溢出 by Mark Hopson 马克·霍普森(Mark Hopson) 如何使用Node.js和AWS快速创建无服务器RESTful API (How to quickly ...

  3. 启动服务错误5拒绝访问_【Go API 开发实战 5】基础1:启动一个最简单的 RESTful API 服务器...

    启动一个最简单的 RESTful API 服务器 本节核心内容 启动一个最简单的 RESTful API 服务器 设置 HTTP Header API 服务器健康检查和状态查询 编译并测试 API 本 ...

  4. 【Go API 开发实战 5】基础1:启动一个最简单的 RESTful API 服务器

    本节核心内容 启动一个最简单的 RESTful API 服务器 设置 HTTP Header API 服务器健康检查和状态查询 编译并测试 API 本小节源码下载路径:demo01 可先下载源码到本地 ...

  5. 微软为无服务器架构引入新API管理消费层

    摘要: 在最近的一篇博客文章中,微软宣布了一个新的Azure API Management消费层.这个新的使用层允许针对"基于微"的计费,并遵循了无服务器架构原则,包括自动化的伸缩 ...

  6. 使用WebApiClient请求和管理Restful Api

    前言 本篇文章的内容是WebApiClient应用说明篇,如果你没有了解过WebApiClient,可以先阅读以下相关文章: WebApi client 的面向切面编程 我来给.Net设计一款Http ...

  7. 基于轻量型Web服务器Raspkate的RESTful API的实现

    在上一篇文章<Raspkate - 基于.NET的可运行于树莓派的轻量型Web服务器>中,我们已经了解了Raspkate这一轻量型Web服务器,今天,我们再一起了解下如何基于Raspkat ...

  8. azure api 管理_具有Azure功能的无服务器API

    azure api 管理 在这篇文章中,我将研究一个非常简单的用例. 在执行部署管道时, FlexDeploy可能会产生一些应被批准或拒绝的人工任务. 例如,某人必须批准对生产环境的部署. 可以在Fl ...

  9. Azure 5月新发布:CDN图片处理功能, CDN Restful API, 新版CDN管理门户, 计量名称变更延期

    备注:Blog具有时效性, 内容随着更新会发现变化,目前时间是2017年5月18日 世界变化很快,Azure变化也很快,5月我们又迎来一大波的更新!Azure注定越来越好! Azure CDN图片处理 ...

  10. Golang Beego使用Casbin进行Restful Api权限管理教程

    Beego使用Casbin进行权限管理(MySQL)入门 前言 网上关于Casbin的教程都比较麻烦,上手难度大,此篇仅供初学者学习,主要是将晦涩难懂的原理简单化,下面将分为8个知识点来应用Casbi ...

最新文章

  1. javascript addEventListener()
  2. 【EASYDOM系列教程】之 DOM 元素树
  3. dsst依赖opencv
  4. JSON——Java中的使用
  5. 嵌入式开发的职业前景分析
  6. 使用异步存储提升 Web 应用程序的离线体验
  7. 网页测速 php,2020年8月更新 站长必备/测速工具网站推荐
  8. 7-5 华氏度转摄氏度(四舍五入) (5分)_PTA_Java基础练习
  9. win10永久设置护眼颜色
  10. stm32 /*入门1~100步要点全记录
  11. 软件公司如何才能留住员工
  12. 小程序***已设置仅在企业微信中运行,请前往企业微信打开该小程序,企业微信设置显示小程序。
  13. 同城双活与异地多活架构分析
  14. 面试了一位 46 岁的程序员,思绪万千,最后结局竟让我大惊失色!
  15. 【ESP 保姆级教程】玩转emqx认证篇③ ——认证安全之使用 MySQL 的密码认证
  16. 微信双开还是微信定时炸弹?- 关于非越狱iOS上微信分身高危插件ImgNaix的分析...
  17. HTML5期末大作业——HTML+CSS+JavaScript平遥古城旅游景点介绍(6页)
  18. html 当当网页面,静态网页当当网(HTML源码)
  19. win7和ubuntu实现相互复制粘贴文件
  20. happens-before规则——理解happens-before规则

热门文章

  1. 【U8+】用友U816.1版本和天高联用,不显示“实施导航”功能模块
  2. [奶奶看了都会]京东自动签到薅羊毛-完整教程
  3. mysql 多表查询 like_MYSQL多表联合查询的问题
  4. 纯前端播放文件流视频并预览并截取视频第一帧
  5. 添加Android手机 CA系统根证书
  6. VHDL——JK触发器
  7. Apache Hive 下载与安装
  8. 思考的乐趣-Matrix67数学笔记
  9. 马尔科夫蒙特卡洛算法(MCMC)
  10. [编程思想] POP OOP AOP