1、点亮指定硬盘:定位,磁盘闪灯
/opt/MegaRAID/MegaCli/MegaCli64 -PdLocate -start -physdrv[E:S] -a0
/opt/MegaRAID/MegaCli/MegaCli64 -PdLocate -stop -physdrv[E:S] -a0
2、查看证书过期时间
echo | openssl s_client -servername ${domain} -connect ${domain}:443 2>/dev/null | openssl x509 -noout -dates
openssl x509 -in ${public} -noout -dates
3、查看磁盘SN
smartctl --all /dev/sd*
4、for循环遍历数组
a=("Fdf" "df" "fd")
for str in ${a[@]};
do
echo $str
done
标签:domain,PdLocate,技巧,十三,physdrv,openssl,echo,x509,Linux
From: https://blog.51cto.com/zzzhao/6223675