ITPub博客

首页 > IT基础架构 > 服务器/存储 > 常用OS获取信息命令

常用OS获取信息命令

原创 服务器/存储 作者:sqysl 时间:2016-06-07 22:32:14 0 删除 编辑

一、linux
#CPU信息(总核心数和型号)
 cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

#物理CPU数及每颗物理CPU中核心数(可能有超线)
 cat /proc/cpuinfo | grep physical | uniq -c

#系统位数
 getconf LONG_BIT

#CPU是否支持64位运算(大于零就支持)
 cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l

#cpu完整信息(root)
 dmidecode | grep 'Processor Information'

#内存信息(各项)
 cat /proc/meminfo

#OS内核信息
 uname -a

#linux版本信息 
 cat /etc/issue | grep Linux

#机器型号(root)
 dmidecode | grep "Product Name" 

#网卡信息
 dmesg | grep -i eth

二、solaris
#查看CPU
 /usr/platform/sun4u/sbin/prtdiag –v|more
 或
  psrinfo -v
#查看内存 
 prtconf | grep 'Memory'
 /usr/platform/sun4u/sbin/prtdiag -v
#查看硬盘信息
 iostat -E

 

三、AIX

#物理cpu数 
1.prtconf

2.lsdev 
  lsdev -Cc processor

#逻辑cpu数 
3.bindprocessor 
  bindprocessor -q

4.vmstat

5.smtctl(root权限)

#查看内存
1.lsattr 
  lsdev -Cc memory

  lsattr -El L2cache0

  lsattr -El mem0

2.prtconf 
  prtconf|grep Memory|grep -v + 
 
3.vmstat 

4.topas 

#查看交换分区
1.lsps 
  lsps -a

2.lsps 
  lsps -s

3.prtconf 
 
4.topas

 

 

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8484829/viewspace-2117133/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
大学毕业至今,一直深耕于数据库领域20余载,擅长数据库优化、数据库分析诊断、数据库规划设计等,曾任职多家知名大型企业,多次独立承担并成功上线关键大型项目。

注册时间:2008-06-27

  • 博文量
    365
  • 访问量
    725294