Could sed work in post install to replace IP HOST with IP FQDN HOST?
echo "sed -i 's/find/replace-with/g' /etc/hosts" >> /root/provscript
so by default bsa is putting duplicate entries in the /etc/hosts files ? what version of bsa is this ?
Bill, technically, yes bsa is putting two entries in the hosts file, but it is only because on the Post Install scripts tab I have this line:
"echo ??DEVICE.IP_ADDRESS?? ??DEVICE.FQDN?? ??DEVICE.SHORTNAME?? >> /etc/hosts" >> /root/provscript
To resolve this, I used sed to delete the lines I do not want (also wanted to delete the line for ::1, since we dont use ipv6 and then echoed in what i want to the /etc/hosts file.