ipmitool查询服务器功耗
通过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查询服务器功耗的更多相关文章
- 16进制ascii码转化为对应的字符,付ipmitool查询硬件信息
最近工作需要在用ipmitool查询服务器硬件信息.ipmitool查询硬件信息 比如电源,使用命令: 获取PSU0信息:Ipmitool raw 0x3a 0x71 0x00: 获取PSU1信息:I ...
- MySQL执行SHOW STATUS查询服务器状态状态之Handler_read_* 详解
在MySQL里,我们一般使用SHOW STATUS查询服务器状态,语法一般来说如下: SHOW [GLOBAL | SESSION] STATUS [LIKE ‘pattern’ | WHERE ex ...
- Linux——查询服务器公网IP
前言 服务器查看IP,十分简单,但是如何查看公网IP呢? 步骤 网站:http://www.cip.cc/ 命令行查询(详细): UNIX/Linux: #curl cip.cc Windows: & ...
- MySQL学习笔记(3) - 查询服务器版本,当前时间,当前用户
SELECT VERSION(); --显示当前服务器版本 SELECT NOW(); --显示当前日期时间 SELECT USER(); --显示当前用户 MySQL中语句规范: 1.关键字和函数名 ...
- iOS 上线因iPv6被拒,查询服务器是否支持iPv6,mac设置iPv6网络,手机测试iPv6
一. iOS----如何检查域名是否支持ipv6 iOS----------如何检查域名是否支持ipv6 1.检查你所用到的库,像af 3.0以上什么的(不用改),其他的库自己去搜下是否支持ipv6吧 ...
- Linux 查询服务器序列号命令
1.查看服务器型号:dmidecode | grep 'Product Name' 2.查看主板的序列号:dmidecode |grep 'Serial Number' 3.查看系统序列号:dmi ...
- sql语句查询服务器的数据库,数据库的全部表和表的全部列
下面是数据库的结构: 数据库名是:edushi_zixunok;表名是infoArticle --获取所有用户名 SELECT * FROM sys.sysusers --获取所有用户数据库 SELE ...
- ipmitool获取服务器信息
https://www.annhe.net/article-2987.html https://blog.csdn.net/wolovexiexiongfei/article/details/8270 ...
- 001、MySQL查询服务器版本号和当前日期
SELECT VERSION(), CURRENT_DATE; 不忘初心,如果您认为这篇文章有价值,认同作者的付出,可以微信二维码打赏任意金额给作者(微信号:382477247)哦,谢谢.
随机推荐
- js整数千分化
function numToQfh(num){ var num_str = num.toString(); var strTo = " "; while(num_str.lengt ...
- http请求在asp.net中的请求过程
当请求一个*.aspx文件的时候,这个请求会被inetinfo.exe进程截获,它判断文件的后缀(aspx)之后,将这个请求转交给 ASPNET_ISAPI.dll,ASPNET_ISAPI.dll会 ...
- 如何批量清除128组节点db上面的过期的binlog,释放磁盘空间。(转)
如果10台以内的db的话,自己手动ssh进去,clean就足以,但是上百台呢,就要写脚本了.大概思路:在 一台db跳转机上面, 写一个脚本,访问slave,远程获取正在复制的master上面的binl ...
- Python使用类
#coding:utf8 from selenium import webdriverfrom time import sleep class urlpage(object): #创建浏览器对象 de ...
- java代码流类
总结:读取到的是字节型转换成字符串. package com.c2; import java.io.*; public class tkrp { public static void main(Str ...
- windows下socket编程:区分shutdown()及closesocket()
以下描述主要是针对windows平台下的TCP socket而言. 首先需要区分一下关闭socket和关闭TCP连接的区别,关闭TCP连接是指TCP协议层的东西,就是两个TCP端之间交换了一些协议包( ...
- Python多进程-进程间数据的共享
不同的进程不能同时修改一份数据,但是不同的进程能对一份数据进行修改 可通过Manager来实现进程间的数据共享 # -*- coding:utf-8 -*- __author__ = "Mu ...
- paramiko连接方式
链接方法: 方式一: ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh. ...
- Linux 对mysql远程授权连接操作 和 查看mysql数据库和表 基本命令
Linux 对mysql远程连接的授权操作 首先linux连接mysql数据库 授权: grant all on *.* to ' with grant option; //允许账户root从任何主机 ...
- 部署和调优 1.5 vsftp部署和优化-1
系统自带的ftp服务软件.vsftpd 安装vsftpd yum install -y vsftpd 启动vsftpd /etc/init.d/vsftpd start 如果启动失败,可能是端口被占用 ...