73
70

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

HW保守でよく使うcommandまとめ

Last updated at Posted at 2014-12-20

HW保守周りで使用するcommandを列挙していく
追記アレば随時。

omreport/omconfig

# How to install 
$ wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
$ yum install -y srvadmin-base srvadmin-storageservices srvadmin-omcommon
$ /opt/dell/srvadmin/sbin/srvadmin-services.sh start

# Alert Logかくにん
$ omreport system alertlog

# 故障確認
$ omreport chassis

# 故障詳細確認
$ omreport chassis Memory/nics/fans/pwrsupplies/-?

# RaidCard電源確認 
$ omreport storage battery

# 電源確認 
$ omreport chassis pwrsupplies

# controller確認
$ omreport storage controller

# vdiskかくにん
$ omreport storage vdisk controller=0

# pdiskかくにん
$ omreport storage pdisk controller=0 | egrep '^(Name|State)' 

# ランプ付けたり消したりヤーツ
$ omconfig storage pdisk action=blink/unblink controller=0 pdisk=[id]

MegaCli

# How to install
$ rpm -Uhv https://ginernet.com/downloads/MegaCli-8.07.14-1.noarch.rpm

# pdiskかくにん
$ MegaCli64 -PDList -aALL

# vdiskかくにん
$ MegaCli64 -LDInfo -Lall -aALL
[‘Primary-0, Secondary-0, RAID Level Qualifier-0′] = RAID-0
[‘Primary-1, Secondary-0, RAID Level Qualifier-0′] = RAID-1
[‘Primary-5, Secondary-0, RAID Level Qualifier-3′] = RAID-5
[‘Primary-6, Secondary-0, RAID Level Qualifier-3′] = RAID-6
[‘Primary-1, Secondary-3, RAID Level Qualifier-0′] = RAID-10

# ランプ付けたりするヤーツ。ピカーって光る
$ MegaCli64 -Pdlocate start/stop physdrv[E:S] -a0

# Diskオフラインヤーツ
$ MegaCli64 -PDOffline -PhysDrv[E:S] -a0

# Disk抜く前の削除のおまじないヤーツ・・・?
$ MegaCli64 -PDPrpRmv -PhysDrv[E:S] -a0

# Rebuildの情報確認
$ MegaCli64 -PDRBLD -showprog -physdrv [E:S] -a0

# Alert 止める
$ MegaCli64 -AdpSetProp AlarmSilence -aALL

# Disk情報イッキ見、便利d
$ MegaCli64 -PDList -a0 | egrep '^(Slot|Firm|Link)'

# DiskのerrorCount確認したい
MegaCli64 -PDList -aAll |grep 'Error Count'

# MegaCli log
$ MegaCli64 -FwTermLog -Dsply -aALL -nolog

ipmitool

# How to install 
$ yum install OpenIPMI.x86_64 OpenIPMI-tools.x86_64
$ modprobe ipmi_devintf
$ modprobe ipmi_si

# 鯖の情報
$ ipmitool lan print

# System_log
$ ipmitool sel list/elist

# ハードの状態見るヤーツ
$ ipmitool chassis status
$ ipmitool sdr elist

# alert clear
$ ipmitool sel clear

dmidecode


# 機種名
$ dmidecode -s system-product-name

# Serial
$ dmidecode -s system-serial-number 

# システム情報系
$ dmidecode -s

# デバイスごとの情報系
$ dmidecode -t

sas2ircu

# Disk確認
$ sas2ircu 0 DISPLAY | grep State

arcconf

# 情報表示 アダプタ情報のみ/論理ドライブ情報のみ/物理デバイス情報のみ/maxCache の情報のみ/all
/usr/StorMan/arcconf getconfig <Controller#:だいたい1> AD/LD/PD/AL

# raid ok?
/usr/StorMan/arcconf getconfig <Controller#> | grep 'Status of logical device'

# ピーピーウルサイ時に音止めたい
/usr/StorMan/arcconf setalarm <Controller#> silence

# 壊れてるDiskいないかな?
/usr/StorMan/arcconf getconfig <Controller#> | egrep '(Device #|Device\(|State|S.M.A.R.T)'

# ピカーって光らせる。上のcommandでchannel id確認してから打ってね
/usr/StorMan/arcconf identify <Controller#> device <Channel#> <ID>

nvme-cli

# how to install
git clone https://github.com/linux-nvme/nvme-cli.git 
cd nvme-cli/
make && make install

# show smart log
nvme smart-log /dev/nvme0n1p1 


73
70
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
73
70

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?