fosshelp
Friday, November 20, 2015
ipmitool find Serial Number of all servers in a network
1)
for ip in $(nmap -sP 192.204.122.64/27 | grep "Nmap scan report for" | awk '{print $5}')
do
echo "IP: "$ip
echo "SNO: "$(ipmitool -I lanplus -H $ip -U username -P password fru | grep "Product Serial")
echo "--------"
done
2)
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment