查看linux机器版本脚本
时间:2010-02-26 来源:night85
#!/bin/sh
for i in `/bin/cat /sysman/common/linux.lst`
do
a1=$(/usr/bin/rsh $i hostname)
a2=$(/usr/bin/rsh $i /bin/cat /etc/issue | sed -n 1p)
echo "$a1,$i,$a2"
done
for i in `/bin/cat /sysman/common/linux.lst`
do
a1=$(/usr/bin/rsh $i hostname)
a2=$(/usr/bin/rsh $i /bin/cat /etc/issue | sed -n 1p)
echo "$a1,$i,$a2"
done
相关阅读 更多 +