发布时间:2020-01-09 17:37:52
ubuntu下获取设备硬件信息包括CPU,内存,RAID卡,网卡,HBA卡,电源,硬盘(大小,转速)信息。lshw >tmp001cat tmp001|grep -A10 "\-disk"|egrep "size|capabilities"cat tmp001|grep -A10 "\-cpu"|grep "product"cat tmp001|grep -A10 "\-memory"|egrep "description|size|clock"cat tmp001|grep -A10 "\-storage"|.........【阅读全文】
发布时间:2019-11-22 14:29:41
老脚本,分享一下,df -h发现使用率告警,找出占用空间的大文件的shell脚本。#!/bin/ksh#Authorname :wangt009#Scriptname :pwdanalyse.sh#Version :v1.0 20170825 #create#Description:analyse pwd 's usageexport PATH=/usr/lib64/qt-3.3/bin:/usr/local/python27/bin:/usr/local.........【阅读全文】
发布时间:2019-10-23 15:52:30
方法如下:sz180001:wangt009@/adusr/wangt009>su - rootsz180001:root@/root>ps -ef|grep "su -"|grep -v grep|grep -v sudoroot 17961 17960 0 14:36 pts/28 00:00:00 su -root 22736 22735 0 15:41 pts/8 00:00:00 /bin/su - rootroot.........【阅读全文】
发布时间:2016-10-25 16:38:58
查看dm设备信息命令。[root@cnsz031722 ~]#dmsetup lsmpath2 (253, 8)VolGroup02-LVcustomer (253, 11)VolGroup00-LVwls (253, 5)VolGroup04-lv_ldap4 (253, 15)VolGro.........【阅读全文】