0
点赞
收藏
分享

微信扫一扫

Linux常用技巧(十三)

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

举报

相关推荐

0 条评论