通过ipmitool查看服务器功耗

ipmitool -H $ip -I lanplus -U $user -P $password sdr elist | grep "Pwr Consumption"
Pwr Consumption  | 77h | ok  |  7.1 |  Watts

使用脚本批量查看功耗输入到log.csv

user=user
password=password
while read ip; do
echo -n ${ip}, >> log.csv
ipmitool -H $ip -I lanplus -U $user -P $password sdr elist | grep "Pwr Consumption" | awk -F"|" '{print $5}' >> log.csv
done < ./ip.conf

ip.conf

192.168.100.80
192.168.100.81
192.168.100.82

log.csv

192.168.100.80,  Watts
192.168.100.81, Watts
192.168.100.82, Watts

戴尔服务器执行racadm查看功耗

racadm -r $ip -u $username -p $password --nocertwarn get System.Power
#Avg.LastDay= W |  Btu/hr               #最近24小时
#Avg.LastHour= W | Btu/hr        #最近1小时
#Avg.LastWeek= W | Btu/hr        #最近168小时
#Cap.ActivePolicy.BtuHr=N/A
#Cap.ActivePolicy.Name=N/A
#Cap.ActivePolicy.Watts=N/A
Cap.BtuHr= btu/hr
Cap.Enable=Disabled
#Cap.MaxThreshold= W | Btu/hr
#Cap.MinThreshold= W | Btu/hr
Cap.Percent=
Cap.Watts= W
#EnergyConsumption=3124.331 KWh | Btu
#EnergyConsumption.Clear=******** (Write-Only)
#EnergyConsumption.StarttimeStamp=Thu Jan ::
HotSpare.Enable=Disabled
HotSpare.PrimaryPSU=PSU1
#Max.Amps=2.6 Amps
#Max.Amps.Timestamp=Thu Jan ::
#Max.Headroom= W | Btu/hr
#Max.LastDay= W | Btu/hr
#Max.LastDay.Timestamp=Wed Aug ::
#Max.LastHour= W | Btu/hr
#Max.LastHour.Timestamp=Wed Aug ::
#Max.LastWeek= W | Btu/hr
#Max.LastWeek.Timestamp=Sat Jul ::
#Max.Power= W | Btu/hr
#Max.Power.Timestamp=Thu Jan ::
#Max.PowerClear=******** (Write-Only)
#Min.LastDay= W | Btu/hr
#Min.LastDay.Timestamp=Tue Aug ::
#Min.LastHour= W | Btu/hr
#Min.LastHour.Timestamp=Wed Aug ::
#Min.LastWeek= W | Btu/hr
#Min.LastWeek.Timestamp=Wed Jul ::
PFCEnable=Disabled
#Realtime.Amps=1.7 Amps
#Realtime.Headroom= W | Btu/hr
#Realtime.Power= W | Btu/hr
#RedundancyCapabilities=Not Redundant,Input Power Redundant
RedundancyPolicy=Input Power Redundant
#Status=

戴尔服务器执行racadm查看BIOS对CPU节能模式设置,看到SysProfile=Custom 说明是自定义不是节能模式

racadm -r $ip -u $username -p $password --nocertwarn get bios.sysprofilesettings | grep "SysProfile"
SysProfile=Custom

ipmitool查询服务器功耗的更多相关文章

  1. 16进制ascii码转化为对应的字符,付ipmitool查询硬件信息

    最近工作需要在用ipmitool查询服务器硬件信息.ipmitool查询硬件信息 比如电源,使用命令: 获取PSU0信息:Ipmitool raw 0x3a 0x71 0x00: 获取PSU1信息:I ...

  2. MySQL执行SHOW STATUS查询服务器状态状态之Handler_read_* 详解

    在MySQL里,我们一般使用SHOW STATUS查询服务器状态,语法一般来说如下: SHOW [GLOBAL | SESSION] STATUS [LIKE ‘pattern’ | WHERE ex ...

  3. Linux——查询服务器公网IP

    前言 服务器查看IP,十分简单,但是如何查看公网IP呢? 步骤 网站:http://www.cip.cc/ 命令行查询(详细): UNIX/Linux: #curl cip.cc Windows: & ...

  4. MySQL学习笔记(3) - 查询服务器版本,当前时间,当前用户

    SELECT VERSION(); --显示当前服务器版本 SELECT NOW(); --显示当前日期时间 SELECT USER(); --显示当前用户 MySQL中语句规范: 1.关键字和函数名 ...

  5. iOS 上线因iPv6被拒,查询服务器是否支持iPv6,mac设置iPv6网络,手机测试iPv6

    一. iOS----如何检查域名是否支持ipv6 iOS----------如何检查域名是否支持ipv6 1.检查你所用到的库,像af 3.0以上什么的(不用改),其他的库自己去搜下是否支持ipv6吧 ...

  6. Linux 查询服务器序列号命令

      1.查看服务器型号:dmidecode | grep 'Product Name' 2.查看主板的序列号:dmidecode |grep 'Serial Number' 3.查看系统序列号:dmi ...

  7. sql语句查询服务器的数据库,数据库的全部表和表的全部列

    下面是数据库的结构: 数据库名是:edushi_zixunok;表名是infoArticle --获取所有用户名 SELECT * FROM sys.sysusers --获取所有用户数据库 SELE ...

  8. ipmitool获取服务器信息

    https://www.annhe.net/article-2987.html https://blog.csdn.net/wolovexiexiongfei/article/details/8270 ...

  9. 001、MySQL查询服务器版本号和当前日期

    SELECT VERSION(), CURRENT_DATE; 不忘初心,如果您认为这篇文章有价值,认同作者的付出,可以微信二维码打赏任意金额给作者(微信号:382477247)哦,谢谢.

随机推荐

  1. puppeteer

    const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch(); ...

  2. bzoj 1009 [HNOI2008]GT考试——kmp+矩阵优化dp

    题目:https://www.lydsy.com/JudgeOnline/problem.php?id=1009 首先想到 确保模式串不出现 就是 确保每个位置的后缀不是该模式串. 为了dp,需要记录 ...

  3. Mac上制作Centos7系统U盘安装盘

    Centos7 下载地址: http://101.110.118.47/isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD- ...

  4. 使用cef

    win10的同学注意了按右键以管理员模式启动cmake-gui.exe在Where is the source code:里填上你解压的CEF3路径,如:F:\cef3\cef_binary_3.23 ...

  5. UIAlertController UIAlertView用法

    项目中很多地方会出现弹出框框,来做个判断 基本方法如下 UIAlertController *alertC = [UIAlertController alertControllerWithTitle: ...

  6. C# 单例模式代码

    原文地址:http://blog.jobbole.com/101746/ 代码一: public sealed class Singleton     {         static Singlet ...

  7. 基于TCP协议 I/O多路转接(select) 的高性能回显服务器客户端模型

    服务端代码: myselect.c #include <stdio.h> #include <netinet/in.h> #include <arpa/inet.h> ...

  8. git教程(远程仓库和管理分支)

    在github上新建了一个仓库,然后相与本地的仓库联系起来 $ Git remote add origin https://github.com/liona329/learngit.git fatal ...

  9. 图解JVM和Tomcat类加载机制

    说到本篇的tomcat类加载机制,不得不说翻译学习tomcat的初衷. 之前实习的时候学习javaMelody的源码,但是它是一个Maven的项目,与我们自己的web项目整合后无法直接断点调试.后来同 ...

  10. 阿里云服务器ubuntu安装redis2.8.13

    阿里云服务器ubuntu安装redis2.8.13 2014-09-04 16:14 |  coding云 |  2198次阅读 | 暂无评论   一.下载redis 可以先下载到本地,然后ftp到服 ...