问:就是在AIX系统中,我不知道这个系统中有多少块网卡,但是我希望每块网卡都执行下lsattr -El ent0 这样的命令答:lsdev -Cc adapter |grep ent| awk '{print $1}'| while read i; do lsattr -El $i;done问:还有我不知道有多少块FC卡,但是我希望每块fc卡都执行下lscfg -vpl fcs0...
显示全部问:就是在AIX系统中,我不知道这个系统中有多少块网卡,但是我希望每块网卡都执行下lsattr -El ent0 这样的命令
答:lsdev -Cc adapter |grep ent| awk '{print $1}'| while read i; do lsattr -El $i;done
问:还有我不知道有多少块FC卡,但是我希望每块fc卡都执行下lscfg -vpl fcs0这样的命令
答:方法1,跟上面的类似:
lsdev -Cc adapter |grep fcs| awk '{print $1}'| while read i; do lscfg -vpl $i;done
方法2, lscfg -vpl fcs*
收起