#重定向文件输出到sysinfo_kxb.log
exec 3>&1
exec 1>sysinfo_kxb.log
echo "************************************hostname"
hostname
echo "************************************uname -a"
uname -a
echo "************************************bdf"
bdf
echo "************************************ioscan -fC disk"
ioscan -fC disk
echo "************************************ioscan -funC disk"
ioscan -funC disk
echo "************************************dmesg"
dmesg
echo "************************************print_manifest "
print_manifest
echo "************************************lanscan"
lanscan
echo "************************************netstat -in"
netstat -in
echo "************************************ioscan -fnCprocessor"
ioscan -fnCprocessor
echo "************************************ioscan -fnkCdisk"
ioscan -fnkCdisk
echo "************************************vgdisplay"
vgdisplay|grep "VG Name"|awk '{print $3}'|xargs vgdisplay -v
echo "********************************ifconfig -a"
ifconfig -a
echo "********************************cat /etc/hosts"
cat /etc/hosts
echo "********************************是否存在oracle用户存在的话一般该机器上会有数据库"
cat /etc/passwd |grep oracle
exec 1>&3 3>&-
ioscan -fnC fc
Class I H/W Path Driver S/W State H/W Type Description
=========================================================================================================================
fc 2 0/0/2/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd2
fc 0 0/0/4/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd0
fc 1 1/0/4/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd1
# 说明:根据输出,确认HBA卡的个数,如上例,该主机共配置3 块HBA 卡,分别为/dev/fcd0,/dev/fcd1 及/dev/fcd2.
# fcmsutil /dev/fcd0 #显示名为/dev/fcd0 的HBA 卡详细信息 (分别查所有的/dev/fcd1, /dev/fcd2)
阅读(1047) | 评论(0) | 转发(0) |