On Tue, Oct 27, 2020 at 04:43:34PM +0800, Zhang Yu wrote:
On Tue, Oct 27, 2020 at 02:06:57PM +0800, Zhang Dewan wrote:
--- /dev/null +++ b/hosts/p @@ -0,0 +1,10 @@ +#!/bin/bash
+while read line +do
- i=$(echo $line | awk '{print $2}')
- j=$(echo $line | awk '{print $1}')
- ip=$(grep $i /home/dewan/servers.info | head -n 1 |awk '{print $1}')
- echo "ipmi_ip: $ip" >> $j
+done < m
This is a temporary script? what does it do?
yes, it's temporary script, for the host-file which not have ipmi ip. -- i will move it to somewhere else.
thanks to zhangyu, xueliang, yukui ~